Docker(二十一)k8s deployment 的yaml 文件
spec:template:spec:terminationGracePeriodSeconds:30containers:-volumeMounts:-name:config-volumemountPath:/pos_server/cos/conf...
·
spec: template: spec: terminationGracePeriodSeconds: 30 containers: - volumeMounts: - name: config-volume mountPath: /pos_server/cos/config resources: {} ports: - protocol: TCP containerPort: 3000 terminationMessagePolicy: File imagePullPolicy: IfNotPresent name: pos-django image: >- registry-vpc.cn-hangzhou.aliyuncs.com/jian24/pos:prod-pos-server_django_v20 terminationMessagePath: /dev/termination-log - volumeMounts: - name: config-volume mountPath: /pos_server/cos/config resources: {} stdin: true terminationMessagePolicy: File imagePullPolicy: IfNotPresent name: pos-celery tty: true image: >- registry-vpc.cn-hangzhou.aliyuncs.com/jian24/pos:prod-pos-server_celery_v20 terminationMessagePath: /dev/termination-log - volumeMounts: - name: config-volume mountPath: /pos_server/cos/config resources: {} ports: - protocol: TCP containerPort: 8000 stdin: true terminationMessagePolicy: File imagePullPolicy: IfNotPresent name: pos-channel tty: true image: >- registry-vpc.cn-hangzhou.aliyuncs.com/jian24/pos:prod-pos-server_channel_v20 terminationMessagePath: /dev/termination-log - volumeMounts: - name: config-volume mountPath: /pos_server/cos/config resources: {} stdin: true terminationMessagePolicy: File imagePullPolicy: IfNotPresent name: pos-runworker tty: true image: >- registry-vpc.cn-hangzhou.aliyuncs.com/jian24/pos:prod-pos-server_runworker_v20 terminationMessagePath: /dev/termination-log - volumeMounts: - name: config-volume mountPath: /etc/nginx/conf.d resources: {} ports: - protocol: TCP containerPort: 80 stdin: true terminationMessagePolicy: File imagePullPolicy: IfNotPresent name: pos-nginx tty: true image: >- registry-vpc.cn-hangzhou.aliyuncs.com/jian24/pos:prod-pos-server_static_v20 terminationMessagePath: /dev/termination-log schedulerName: default-scheduler securityContext: {} dnsPolicy: ClusterFirst imagePullSecrets: - name: regsecret restartPolicy: Always volumes: - name: config-volume configMap: defaultMode: 420 name: posconfigv1 metadata: labels: app: prod-pos-server selector: matchLabels: app: prod-pos-server replicas: 4 strategy: rollingUpdate: maxUnavailable: 25% maxSurge: 25% type: RollingUpdate revisionHistoryLimit: 10 progressDeadlineSeconds: 600 apiVersion: apps/v1beta2 status: conditions: - message: >- ReplicaSet "prod-pos-server-deployment-5d6466866d" has successfully progressed. reason: NewReplicaSetAvailable status: 'True' lastUpdateTime: '2018-06-15T08:48:40Z' lastTransitionTime: '2018-05-24T14:39:47Z' type: Progressing - message: Deployment has minimum availability. reason: MinimumReplicasAvailable status: 'True' lastUpdateTime: '2018-06-15T08:59:16Z' lastTransitionTime: '2018-06-15T08:59:16Z' type: Available updatedReplicas: 4 replicas: 4 availableReplicas: 4 readyReplicas: 4 observedGeneration: 32 kind: Deployment metadata: uid: 4e818e35-5f60-11e8-b460-00163e1253fe resourceVersion: '9730298' labels: app: prod-pos-server name: prod-pos-server-deployment annotations: deployment.kubernetes.io/revision: '10' creationTimestamp: '2018-05-24T14:39:47Z' selfLink: /apis/apps/v1beta2/namespaces/default/deployments/prod-pos-server-deployment generation: 32 namespace: default
转载于:https://blog.51cto.com/wks97/2133615
更多推荐
已为社区贡献466条内容
所有评论(0)