-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdp.yaml
34 lines (33 loc) · 912 Bytes
/
dp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuber-dp
labels:
app: kuber-dp
spec:
replicas: 1
selector:
matchLabels:
env: dev
template:
metadata:
labels:
env: dev
spec:
containers:
- name: app-kuber-container
image: stepchig/testproject:latest
imagePullPolicy: "Always"
ports:
- containerPort: 8000
env:
- name: databaseName
valueFrom:
configMapKeyRef:
name: my-mongodb-config
key: databaseName
- name: collectionName
valueFrom:
configMapKeyRef:
name: my-mongodb-config
key: collectionName