1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- ---
- apiVersion: extensions/v1beta1
- kind: Ingress
- metadata:
- name: bdtp-digital-front
- annotations:
- kubernetes.io/ingress.class: traefik
- traefik.frontend.rule.type: PathPrefix
- spec:
- rules:
- - host: develop.persagy.com
- http:
- paths:
- - path: /bdtp-digital-front
- backend:
- serviceName: bdtp-digital-front
- servicePort: server-port
- ---
- 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
- volumes:
- - name: config
- configMap:
- name: nginx-web-conf
- defaultMode: 0777
- items:
- - key: nginx.conf
- path: path/to/nginx.conf.js
|