-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappt-dir-deployment.yaml
48 lines (45 loc) · 1.24 KB
/
appt-dir-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: appointment-directory-deployment
namespace: app-poc
labels:
app: appointment-directory-app
spec:
replicas: 2
selector:
matchLabels:
app: appointment-directory-app
template:
metadata:
labels:
app: appointment-directory-app
spec:
containers:
- name: appointment-directory
image: abhishekcoder/appointment-directory
ports:
- name: http
containerPort: 8080
imagePullPolicy: IfNotPresent
env:
- name: SPRING_REDIS_HOST
valueFrom:
configMapKeyRef:
name: my-config
key: SPRING_REDIS_HOST
- name: SPRING_REDIS_PORT
valueFrom:
configMapKeyRef:
name: my-config
key: SPRING_REDIS_PORT
- name: SPRING_REDIS_PASSWORD
valueFrom:
configMapKeyRef:
name: my-config
key: SPRING_REDIS_PASSWORD
- name: SPRING_REDIS_AUTH
valueFrom:
configMapKeyRef:
name: my-config
key: SPRING_REDIS_AUTH