- kind: Deployment
- apiVersion: apps/v1
-
- metadata:
- name: egg-admin
- namespace: egg
- labels:
- app: egg-admin
- annotations:
- kubesphere.io/creator: dengbiao
- kubesphere.io/description: egg-admin
-
- spec:
- replicas: 1
- selector:
- matchLabels:
-
- app: egg-admin
- template:
- metadata:
- labels:
-
- app: egg-admin
- spec:
-
- volumes:
-
- - name: host-time
- hostPath:
- path: /etc/localtime
- type: ''
-
- - name: egg-admin-cfg
- configMap:
-
- name: egg-admin-cfg
- defaultMode: 420
-
- - name: egg-admin
- persistentVolumeClaim:
- claimName: egg-admin
-
- - name: egg-admin-nginx
- configMap:
- name: egg-admin-nginx
- items:
- - key: go.conf
- path: default.conf
- containers:
-
- - name: egg-admin-container
-
- image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/egg-admin:20241205-01'
- ports:
- - name: egg-admin-4010
-
- containerPort: 4010
- protocol: TCP
-
- volumeMounts:
- - name: host-time
- readOnly: true
- mountPath: /etc/localtime
- - name: egg-admin-cfg
- readOnly: true
-
- mountPath: /var/egg
- 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: egg-admin
- mountPath: /usr/share/nginx/html
- - name: egg-admin-nginx
- readOnly: true
- mountPath: /etc/nginx/conf.d/default.conf
- subPath: default.conf
- restartPolicy: Always
- terminationGracePeriodSeconds: 30
- dnsPolicy: ClusterFirst
|