forked from Redislabs-Solution-Architects/redisbank
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy-on-k8s.yaml
37 lines (37 loc) · 890 Bytes
/
deploy-on-k8s.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: redisbank-deployment
spec:
selector:
matchLabels:
app: redisbank
replicas: 1
template:
metadata:
labels:
app: redisbank
spec:
containers:
- name: redisbank
image: <yourimageurl>
imagePullPolicy: Always
ports:
- name: redisbank
containerPort: 8080
env:
- name: SPRING_REDIS_HOST
valueFrom:
secretKeyRef:
name: redb-redis-enterprise-database
key: service_name
- name: SPRING_REDIS_PORT
valueFrom:
secretKeyRef:
name: redb-redis-enterprise-database
key: port
- name: SPRING_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redb-redis-enterprise-database
key: password