apiVersion: apps/v1 kind: Deployment metadata: name: lina-web labels: app: lina-web spec: selector: matchLabels: app: lina-web role: master tier: frontend replicas: 2 template: metadata: labels: app: lina-web role: master tier: frontend spec: containers: - name: lina-web image: imagePullPolicy: Always ports: - containerPort: 3000 volumeMounts: - name: run-config mountPath: '/etc/run_config/' readOnly: true env: - name: HTTP_PROXY value: "" - name: http_proxy value: "" - name: HTTPS_PROXY value: "" - name: https_proxy value: "" - name: NO_PROXY value: "" - name: no_proxy value: "" volumes: - name: run-config secret: secretName: --- apiVersion: v1 kind: Service metadata: name: lina-web spec: selector: app: lina-web ports: - protocol: TCP port: 3000 targetPort: 3000 type: NodePort