kind: Deployment apiVersion: apps/v1 metadata: name: zhios-app-comm namespace: zhios labels: app: zhios-app-comm annotations: kubesphere.io/creator: wuhanqin kubesphere.io/description: 智莺生活 app 公共模块 spec: replicas: 1 selector: matchLabels: app: zhios-app-comm template: metadata: labels: app: zhios-app-comm spec: volumes: - name: host-time hostPath: path: /etc/localtime type: '' - name: zhios-app-comm-cfg configMap: name: zhios-app-comm defaultMode: 420 containers: - name: container-app-comm image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/app-comm:0.1' ports: - name: httpcomm5003 containerPort: 5003 protocol: TCP volumeMounts: - name: host-time readOnly: true mountPath: /etc/localtime - name: zhios-app-comm-cfg readOnly: true mountPath: /var/zyos imagePullPolicy: Always restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst