--- 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: ConfigMap metadata: name: bdtp-digital-front labels: name: bdtp-digital-front data: --- 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