-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment-users.yaml
93 lines (93 loc) · 4.91 KB
/
deployment-users.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
apiVersion: apps/v1
kind: Deployment
metadata:
name: msvc-users
labels:
run: msvc-users
spec:
replicas: 1
selector:
matchLabels:
app: msvc-users
template:
metadata:
labels:
app: msvc-users
spec:
containers:
- image: titotxema/users:latest
name: users
ports:
- containerPort: 8001
env:
- name: LB_AUTH_ISSUER_URI
valueFrom:
configMapKeyRef:
name: msvc-users
key: lb_auth_issuer_uri
- name: LB_USERS_URI
valueFrom:
configMapKeyRef:
name: msvc-users
key: lb_users_uri
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: PORT
valueFrom:
configMapKeyRef:
name: msvc-users
key: port
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: msvc-users
key: db_host
- name: DB_DATABASE
valueFrom:
configMapKeyRef:
name: msvc-users
key: database
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: msvc-users
key: username
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: msvc-users
key: password
- name: COURSES_URL
valueFrom:
configMapKeyRef:
name: msvc-users
key: courses_url
# readinessProbe:
# httpGet:
# path: /actuator/health/readiness
# port: 8001
# scheme: HTTP
# initialDelaySeconds: 5
# periodSeconds: 20
# timeoutSeconds: 10
# livenessProbe:
# httpGet:
# path: /actuator/health/liveness
# port: 8001
# scheme: HTTP
# initialDelaySeconds: 5
# periodSeconds: 20
# timeoutSeconds: 10
# resources:
# requests:
# memory: "512Mi"
# cpu: "400m"
# limits:
# memory: "800Mi"
# cpu: "500m"