-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment-example.yaml
48 lines (48 loc) · 1.12 KB
/
deployment-example.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: apps/v1beta2
kind: Deployment
metadata:
name: graphip
spec:
selector:
matchLabels:
app: graphip
replicas: 1
template:
metadata:
labels:
app: graphip
env: development
spec:
imagePullSecrets:
- name: gitlab-private-registry
containers:
- name: graphip
image: registry.gitlab.com/graphip/node-server:v0.2.0
readinessProbe:
httpGet:
path: /health
ports:
- containerPort: 3000
envFrom:
- configMapRef:
name: graphip-config
- secretRef:
name: graphip-secret
- image: postgres:12
imagePullPolicy: "IfNotPresent"
name: postgres
envFrom:
- configMapRef:
name: postgres-config
ports:
- containerPort: 5432
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: postgredb
# [END proxy_container]
# [START volumes]
volumes:
- name: postgredb
persistentVolumeClaim:
claimName: postgres-pv-claim
# [END volumes]