Skip to content

Instantly share code, notes, and snippets.

@samos123
Created January 27, 2020 17:26
Show Gist options
  • Save samos123/a505eab03c4dcf885161c005659322d7 to your computer and use it in GitHub Desktop.
Save samos123/a505eab03c4dcf885161c005659322d7 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: customizations
labels:
app: customizations
spec:
selector:
matchLabels:
app: customizations
template:
metadata:
labels:
app: customizations
spec:
hostNetwork: true
hostPID: true
containers:
- name: customizations
image: customization-image
volumeMounts:
- name: etc
mountPath: "/mnt/etc"
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
volumes:
- name: etc
hostPath:
path: /etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment