|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- kind: Deployment
- apiVersion: apps/v1
-
- metadata:
- name: bakery
- namespace: zhios
- labels:
- app: bakery
- annotations:
- kubesphere.io/creator: dengbiao
- kubesphere.io/description: 面包店
-
- spec:
- replicas: 1
- selector:
- matchLabels:
-
- app: bakery
- template:
- metadata:
- labels:
-
- app: bakery
- spec:
-
- volumes:
-
- - name: host-time
- hostPath:
- path: /etc/localtime
- type: ''
-
- - name: bakery-cfg
- configMap:
-
- name: bakery-cfg
- defaultMode: 420
-
- - name: bakery
- persistentVolumeClaim:
- claimName: bakery
-
- - name: bakery-nginx
- configMap:
- name: bakery-nginx
- items:
- - key: go.conf
- path: default.conf
- containers:
-
- - name: bakery
-
- image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/bakery:24043014'
- ports:
- - name: httpsupply4001
-
- containerPort: 4001
- protocol: TCP
-
- volumeMounts:
- - name: host-time
- readOnly: true
- mountPath: /etc/localtime
- - name: bakery-cfg
- readOnly: true
-
- mountPath: /var/zyos
-
- - name: bakery
- mountPath: /data
- imagePullPolicy: Always
-
- - name: container-nginx
- image: nginx
- ports:
- - name: http-80
- containerPort: 80
- protocol: TCP
- volumeMounts:
-
- - name: host-time
- readOnly: true
- mountPath: /etc/localtime
-
- - name: bakery
- mountPath: /usr/share/nginx/html
- - name: bakery-nginx
- readOnly: true
- mountPath: /etc/nginx/conf.d/default.conf
- subPath: default.conf
- restartPolicy: Always
- terminationGracePeriodSeconds: 30
- dnsPolicy: ClusterFirst
|