-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.yml
99 lines (97 loc) · 2.13 KB
/
kubernetes.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
91
92
93
94
95
96
97
98
99
---
apiVersion: v1
kind: Secret
metadata:
name: volatile
labels:
component: backend
environment: production
managed-by: "volatile"
name: volatile
release: "1.0.0-170-g2a9a73f"
who: lujeni
data:
GITLAB_PRIVATE_TOKEN: "<change-me>"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: volatile
labels:
component: backend
environment: production
managed-by: "volatile"
name: volatile
release: "1.0.0-170-g2a9a73f"
who: lujeni
data:
GITLAB_URL: "https://gitlab.com"
GITLAB_TARGET_FILE: ".gitlab-ci.yml"
VOLATILE_TEMPLATE_PATH: "volatile/templates/example.yml"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: volatile
labels:
component: backend
environment: production
managed-by: "volatile"
name: volatile
release: "1.0.0-170-g2a9a73f"
who: lujeni
spec:
selector:
matchLabels:
component: backend
environment: production
name: volatile
replicas: 1
template:
metadata:
name: backend-volatile
annotations:
logging.active: "true"
prometheus.io/scrape: "true"
prometheus.io/port: "8000"
prometheus.io/path: "/metrics"
labels:
component: backend
environment: production
managed-by: "volatile"
name: volatile
release: "1.0.0-170-g2a9a73f"
who: lujeni
spec:
containers:
- name: volatile
securityContext:
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 65534
image: "docker.io/lujenii/volatile:latest"
imagePullPolicy: always
ports:
- name: http
containerPort: 8000
protocol: TCP
resources:
limits:
memory: 256Mi
requests:
memory: 256Mi
envFrom:
- configMapRef:
name: volatile
- secretRef:
name: volatile
livenessProbe:
httpGet:
path: /health-check
port: 8000
initialDelaySeconds: 20
failureThreshold: 3
periodSeconds: 3
timeoutSeconds: 10