–
apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" creationTimestamp: 2020-07-30T10:30:25Z generation: 2 labels: app: azeroth andy.com/clusterId: prod andy.com/domain: azeroth.kp.andy.com andy.com/https: "false" andy.com/port: "8081" andy.com/svcName: azeroth name: canary-azeroth-deployment-104541 namespace: crm-prod ownerReferences: - apiVersion: canarycontroller.andy.com/v1alpha1 blockOwnerDeletion: true controller: true kind: Canary name: azeroth-canary uid: 5b39137b-bc82-11ea-8fef-e4434b7c7170 resourceVersion: "100773966" selfLink: /apis/extensions/v1beta1/namespaces/crm-prod/deployments/canary-azeroth-deployment-104541 uid: adedfa5a-d24f-11ea-84bb-e4434b62f7bc spec: progressDeadlineSeconds: 600 replicas: 2 revisionHistoryLimit: 10 selector: matchLabels: app: azeroth strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 0 type: RollingUpdate template: metadata: creationTimestamp: null labels: app: azeroth random: "1" andy.com/clusterId: prod andy.com/deploymentName: azeroth-deployment andy.com/domain: azeroth.kp.andy.com andy.com/https: "false" andy.com/port: "8081" andy.com/svcName: azeroth spec: containers: - env: - name: APOLLO_META value: http://apollometa.andy.com - name: TRACING_OPEN value: "true" - name: APPLICATION_NAME value: azeroth - name: env value: prod - name: GAMMA_NACOS_SERVER_ADDR value: registry.gamma.andy.com:8848 - name: GAMMA_NACOS_SERVER_HOST value: registry.gamma.andy.com - name: GAMMA_NACOS_SERVER_PORT value: "8848" - name: GAMMA_NACOS_NAMESPACE value: gamma-prod image: harbor.andy.com/rent-crm/azeroth:release_20200730113040_prod-104541 imagePullPolicy: IfNotPresent lifecycle: preStop: exec: command: - /bin/sh - -c - /app/bin/omega-stop.sh livenessProbe: failureThreshold: 20 httpGet: path: /goods/showGoodsOperatorHistory port: 8081 scheme: HTTP initialDelaySeconds: 30 periodSeconds: 30 successThreshold: 1 timeoutSeconds: 1 name: omega-image ports: - containerPort: 8081 protocol: TCP readinessProbe: failureThreshold: 6 httpGet: path: /goods/showGoodsOperatorHistory port: 8081 scheme: HTTP initialDelaySeconds: 25 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 resources: limits: cpu: 5200m memory: 8Gi requests: cpu: 50m memory: 1Gi securityContext: capabilities: add: - NET_ADMIN - SYS_TIME procMount: Default terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /etc/localtime name: host-time - mountPath: /home/andy/logs name: applogs - mountPath: /app/conf name: config-volume - mountPath: /home/andy/graylog name: graylog - mountPath: /etc/resolv.conf name: dns - mountPath: /home/andy/audit name: auditlog dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: fsGroup: 1000 runAsUser: 1000 terminationGracePeriodSeconds: 30 volumes: - hostPath: path: /etc/localtime type: "" name: host-time - hostPath: path: /data/k8s-applogs/crm-prod/azeroth-deployment type: "" name: applogs - configMap: defaultMode: 420 name: azeroth-config name: config-volume - hostPath: path: /data/graylog/crm-prod/azeroth-deployment type: "" name: graylog - hostPath: path: /etc/resolv.conf type: "" name: dns - hostPath: path: /data/auditlog/crm-prod/azeroth-deployment type: "" name: auditlog
–
–
评论前必须登录!
注册