You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
531 B
YAML
28 lines
531 B
YAML
3 years ago
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: backend
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: backend
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: backend
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: phico/backend:2.0
|
||
|
imagePullPolicy: Always
|
||
|
name: backend
|
||
|
ports:
|
||
|
- name: backend
|
||
|
containerPort: 3000
|
||
|
env:
|
||
|
- name: MONGODB_URI
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: backend-secret
|
||
|
key: mongodb-uri
|