- kind: Deployment
- apiVersion: apps/v1
-
- metadata:
- name: egg-admin-task
- namespace: egg
- labels:
- app: egg-admin-task
- annotations:
- kubesphere.io/creator: admin
- kubesphere.io/description: egg-admin-task
-
- spec:
- replicas: 1
- selector:
- matchLabels:
-
- app: egg-admin-task
- template:
- metadata:
- labels:
-
- app: egg-admin-task
- spec:
-
- volumes:
-
- - name: host-time
- hostPath:
- path: /etc/localtime
- type: ''
-
- - name: egg-admin-task-cfg
- configMap:
-
- name: egg-admin-task-cfg
- defaultMode: 420
- containers:
-
- - name: egg-admin-task-container
-
- image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/egg-admin-task:0.0.1'
-
- volumeMounts:
- - name: host-time
- readOnly: true
- mountPath: /etc/localtime
- - name: egg-admin-task-cfg
- readOnly: true
-
- mountPath: /var/egg
- imagePullPolicy: Always
- restartPolicy: Always
- terminationGracePeriodSeconds: 30
- dnsPolicy: ClusterFirst
|