-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yml
90 lines (89 loc) · 2.17 KB
/
deploy.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
apiVersion: apps/v1
kind: Deployment
metadata:
name: gangplank
labels:
app: gangplank
spec:
replicas: 1
selector:
matchLabels:
app: gangplank
template:
metadata:
labels:
app: gangplank
spec:
containers:
- name: gangplank
image: "registry.sighup.io/fury/gangplank"
imagePullPolicy: Always
command: ["gangplank", "-config", "/gangplank/gangplank.yml"]
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 20
timeoutSeconds: 3
periodSeconds: 60
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: http
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 3
ports:
- name: http
containerPort: 8080
protocol: TCP
resources:
requests:
cpu: "100m"
memory: "100Mi"
limits:
cpu: "100m"
memory: "100Mi"
securityContext:
privileged: false
runAsNonRoot: true
runAsUser: 150000
runAsGroup: 250000
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
volumeMounts:
- name: gangplank
mountPath: /gangplank/
- name: html-templates
mountPath: /custom-templates
volumes:
- name: gangplank
secret:
secretName: gangplank
- name: html-templates
configMap:
name: html-templates
---
kind: Service
apiVersion: v1
metadata:
name: gangplank-svc
labels:
app: gangplank
spec:
ports:
- name: http
protocol: TCP
port: 80
targetPort: http
selector:
app: gangplank