forked from djccarew/get-started-java-icp
-
Notifications
You must be signed in to change notification settings - Fork 6
/
deployment.yaml
48 lines (48 loc) · 1.31 KB
/
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
47
48
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ .Release.Name }}-web-deployment
labels:
app: "{{ .Release.Name }}-app"
tier: frontend
spec:
replicas: 1
template:
metadata:
labels:
app: "{{ .Release.Name }}-app"
tier: frontend
spec:
containers:
- name: "{{ .Release.Name }}-web"
image: jzaccone/guestbook
imagePullPolicy: Always
ports:
- name: http
containerPort: 9080
env:
- name: CLOUDANT_USER
valueFrom:
secretKeyRef:
name: {{ .Values.secretsConfig }}
key: cloudant-username
- name: CLOUDANT_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.secretsConfig }}
key: cloudant-password
- name: CLOUDANT_HOST
valueFrom:
configMapKeyRef:
name: "{{ .Release.Name }}-configmap"
key: cloudant-host
- name: CLOUDANT_PORT
valueFrom:
configMapKeyRef:
name: "{{ .Release.Name }}-configmap"
key: cloudant-port
- name: CLOUDANT_DB_NAME
valueFrom:
configMapKeyRef:
name: "{{ .Release.Name }}-configmap"
key: cloudant-db-name