123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: bdtp-digital-front
- labels:
- app: bdtp-digital-front
- spec:
- selector:
- app: bdtp-digital-front
- ports:
- - port: 80
- targetPort: 80
- name: server-port
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: bdtp-digital-front
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: bdtp-digital-front
- template:
- metadata:
- labels:
- app: bdtp-digital-front
- spec:
- containers:
- - name: bdtp-digital-front
- image: labisenlin.persagy.com/library/bdtp-digital-front:latest
- imagePullPolicy: Always
- ports:
- - containerPort: 80
- name: server-port
- resources:
- limits:
- memory: 1Gi
- requests:
- memory: 512Mi
- env:
- - name: TZ
- value: Asia/Shanghai
- - name: SERVER_PORT
- value: "80"
- volumeMounts:
- - name: config
- mountPath: /etc/nginx/nginx.conf
- subPath: path/to/nginx.conf.js
- - name: vueconf
- mountPath: /usr/persagy/saas-web/bdtp-digital-front/vue.config.js
- subPath: path/to/vue.config.js
- volumes:
- - name: config
- configMap:
- name: bdtp-digital-front
- defaultMode: 0777
- items:
- - key: nginx.conf
- path: path/to/nginx.conf.js
- - name: vueconf
- configMap:
- name: bdtp-digital-front
- defaultMode: 0777
- items:
- - key: vue.config.js
- path: path/to/vue.config.js
|