diff --git a/examples/cloud/nginx.yaml b/examples/cloud/nginx.yaml index 1e3d9e10..22a0fee3 100644 --- a/examples/cloud/nginx.yaml +++ b/examples/cloud/nginx.yaml @@ -1,31 +1,72 @@ -description: 1031 -name: myapp-1031 +description: sealos-task-zw3 +name: sealos-task-zw3 +nsID: ns-admin tasks: - taskType: cloud -# participantId: 1713882658292895744 + replicas: 2 matchLabels: - cloud: ali + cloud: sealos metadata: - apiVersion: apps/v1 - kind: Deployment - metadata: - name: myapp-1031 - namespace: default - spec: - replicas: 2 - selector: - matchLabels: - app: myapp - version: v1 - template: - metadata: - labels: - app: myapp - version: v1 - spec: - containers: - - image: nginx - imagePullPolicy: IfNotPresent - name: myapp - ports: - - containerPort: 80 \ No newline at end of file + - apiVersion: v1 + kind: Service + metadata: + namespace: ns-admin + name: hello-world-3 + labels: + cloud.sealos.io/app-deploy-manager: hello-world-3 + spec: + ports: + - port: 80 + targetPort: 80 + name: rcszabasszit + selector: + app: hello-world-3 + + - apiVersion: apps/v1 + kind: Deployment + metadata: + namespace: ns-admin + name: hello-world-3 + annotations: + originImageName: nginx + deploy.cloud.sealos.io/minReplicas: '1' + deploy.cloud.sealos.io/maxReplicas: '1' + labels: + cloud.sealos.io/app-deploy-manager: hello-world-3 + app: hello-world-3 + spec: + replicas: 1 + revisionHistoryLimit: 1 + selector: + matchLabels: + app: hello-world-3 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 0 + maxSurge: 1 + template: + metadata: + labels: + app: hello-world-3 + restartTime: '20231129185132' + spec: + containers: + - name: hello-world-3 + image: nginx + env: [] + resources: + requests: + cpu: 10m + memory: 6Mi + limits: + cpu: 100m + memory: 64Mi + ports: + - containerPort: 80 + name: rcszabasszit + imagePullPolicy: Always + volumeMounts: [] + volumes: [] + +