Skip to content

Instantly share code, notes, and snippets.

@kouk
Created July 31, 2019 16:02
Show Gist options
  • Save kouk/af7396db7df6a5c805fb90a9277bc6d8 to your computer and use it in GitHub Desktop.
Save kouk/af7396db7df6a5c805fb90a9277bc6d8 to your computer and use it in GitHub Desktop.
---
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
name: whoami-daemonset
labels:
k8s-app: whoami
spec:
template:
metadata:
labels:
k8s-app: whoami
name: whoami
spec:
terminationGracePeriodSeconds: 60
containers:
- image: containous/whoami
name: whoami
ports:
- name: http
containerPort: 8999
hostPort: 8999
args:
- --port
- "8999"
securityContext:
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment