skirda-backend/.k8s/node.deployment.yml

46 lines
836 B
YAML
Raw Permalink Normal View History

2022-08-24 12:08:22 +00:00
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: node-env
name: env-vars
data:
NODE_ENV: "production"
CONTAINER: "true"
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: node
name: node
spec:
replicas: 1
selector:
matchLabels:
app: node
template:
metadata:
labels:
app: node
spec:
containers:
- env:
- name: NODE_ENV
valueFrom:
configMapKeyRef:
key: NODE_ENV
name: env-vars
- name: CONTAINER
valueFrom:
configMapKeyRef:
key: CONTAINER
name: env-vars
image: node-service-jumpstart
imagePullPolicy: IfNotPresent
name: node-service-jumpstart
ports:
- containerPort: 8080
resources: {}