-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yaml
70 lines (70 loc) · 1.66 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
##---
# Source: bluecompute-ce/charts/web/templates/deployment.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: web
labels:
app: "web"
tier: "frontend"
version: "v1"
heritage: "Tiller"
release: "bluecompute"
chart: web-0.6.0
spec:
replicas: 4
selector:
matchLabels:
app: "web"
template:
metadata:
labels:
app: "web"
tier: "frontend"
version: "v1"
heritage: "Tiller"
release: "bluecompute"
chart: web-0.6.0
spec:
containers:
- name: "web"
image: us.icr.io/devops-gse-poc/devops-demo-bluecompute-web:6edb32bcc1a23c7abae013b52dba4c126b20549d
imagePullPolicy: "Always"
volumeMounts:
- name: config-volume
mountPath: /app/config
ports:
- containerPort: 8000
protocol: TCP
readinessProbe:
httpGet:
path: /health
port: 9000
initialDelaySeconds: 20
periodSeconds: 10
failureThreshold: 6
livenessProbe:
httpGet:
path: /health
port: 9000
initialDelaySeconds: 35
periodSeconds: 20
failureThreshold: 6
resources:
limits:
memory: 128Mi
requests:
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsUser: 2000
volumes:
- name: config-volume
configMap:
name: web-config
items:
- key: checks
path: checks
- key: default.json
path: default.json