-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment-cursos.yaml
50 lines (50 loc) · 2.62 KB
/
deployment-cursos.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: apps/v1
kind: Deployment
metadata:
name: msvc-cursos
spec:
replicas: 1
selector:
matchLabels:
app: msvc-cursos
template:
metadata:
labels:
app: msvc-cursos
spec:
containers:
- name: cursos
image: estefiturin/cursos:v2
ports:
- containerPort: 8002
env:
- name: PORT
valueFrom:
configMapKeyRef:
name: msvc-cursos
key: port
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: msvc-cursos
key: db_host
- name: DB_DATABASE
valueFrom:
configMapKeyRef:
name: msvc-cursos
key: database
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: msvc-cursos
key: username
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: msvc-cursos
key: password
- name: USUARIOS_URL
valueFrom:
configMapKeyRef:
name: msvc-cursos
key: usuario_url