-
Notifications
You must be signed in to change notification settings - Fork 8
/
utility-deploy-privileged.yaml
48 lines (48 loc) · 1.09 KB
/
utility-deploy-privileged.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/v1
kind: Deployment
metadata:
name: utilities
labels:
app: utilities
spec:
replicas: 1
selector:
matchLabels:
app: utilities
template:
metadata:
labels:
app: utilities
spec:
hostNetwork: true
containers:
- name: utilities
image: quay.io/sudermanjr/utilities:2.0
# Just spin & wait forever
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
securityContext:
readOnlyRootFilesystem: false
privileged: true
allowPrivilegeEscalation: true
runAsNonRoot: false
runAsUser: 0
resources:
requests:
cpu: 30m
memory: 64Mi
limits:
cpu: 100m
memory: 128Mi
volumeMounts:
- name: dockersock
mountPath: "/var/run/docker.sock"
- name: root
mountPath: "/host"
volumes:
- name: dockersock
hostPath:
path: /var/run/docker.sock
- name: root
hostPath:
path: /