forked from guyeisenkot/supplygoat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment-kind.yaml
44 lines (44 loc) · 900 Bytes
/
deployment-kind.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: health-check-deployment
spec:
selector:
matchLabels:
app: health-check
template:
metadata:
labels:
app: health-check
spec:
containers:
- name: health-check
image: madhuakula/k8s-goat-health-check
resources:
limits:
memory: "100Mi"
cpu: "30m"
ports:
- containerPort: 80
# Custom Stuff
securityContext:
privileged: true
volumeMounts:
- mountPath: /custom/docker/docker.sock
name: docker-sock-volume
volumes:
- name: docker-sock-volume
hostPath:
path: /var/run/docker.sock
---
apiVersion: v1
kind: Service
metadata:
name: health-check-service
spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
selector:
app: health-check