kind: Deployment apiVersion: apps/v1 metadata: name: egg-pc-h5 namespace: egg labels: app: egg-pc-h5 annotations: kubesphere.io/creator: dengbiao kubesphere.io/description: egg-pc-h5 spec: replicas: 1 selector: matchLabels: app: egg-pc-h5 template: metadata: labels: app: egg-pc-h5 spec: volumes: - name: host-time hostPath: path: /etc/localtime type: '' - name: egg-pc-h5-nginx configMap: name: egg-pc-h5-nginx items: - key: pc.conf path: default.conf defaultMode: 420 - name: egg-pc-h5 persistentVolumeClaim: claimName: egg-pc-h5 containers: - name: container-pc-h5 image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/nginx:latest' ports: - name: tcp-80 containerPort: 80 protocol: TCP resources: {} volumeMounts: - name: host-time readOnly: true mountPath: /etc/localtime - name: egg-pc-h5-nginx readOnly: true mountPath: /etc/nginx/conf.d/default.conf subPath: default.conf - name: egg-pc-h5 mountPath: /usr/share/nginx/html restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst