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