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