Skip to content

Commit

Permalink
Add docker/default seccomp profile to control plane pods
Browse files Browse the repository at this point in the history
* By default, Kubernetes starts containers without the Docker
runtime's default seccomp profile (e.g. seccomp=unconfined)
* https://docs.docker.com/engine/security/seccomp/#pass-a-profile-for-a-container
  • Loading branch information
dghubble committed Oct 14, 2018
1 parent 4e0ad77 commit 2437023
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/bootstrap-manifests/bootstrap-apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Pod
metadata:
name: bootstrap-kube-apiserver
namespace: kube-system
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
containers:
- name: kube-apiserver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Pod
metadata:
name: bootstrap-kube-controller-manager
namespace: kube-system
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
containers:
- name: kube-controller-manager
Expand Down
2 changes: 2 additions & 0 deletions resources/bootstrap-manifests/bootstrap-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Pod
metadata:
name: bootstrap-kube-scheduler
namespace: kube-system
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
containers:
- name: kube-scheduler
Expand Down
2 changes: 2 additions & 0 deletions resources/calico/calico.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ spec:
metadata:
labels:
k8s-app: calico-node
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
hostNetwork: true
serviceAccountName: calico-node
Expand Down
2 changes: 2 additions & 0 deletions resources/flannel/flannel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
labels:
tier: node
k8s-app: flannel
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
serviceAccountName: flannel
containers:
Expand Down
1 change: 1 addition & 0 deletions resources/manifests/kube-apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
k8s-app: kube-apiserver
annotations:
checkpointer.alpha.coreos.com/checkpoint: "true"
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
containers:
- name: kube-apiserver
Expand Down
2 changes: 2 additions & 0 deletions resources/manifests/kube-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ spec:
labels:
tier: control-plane
k8s-app: kube-controller-manager
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
affinity:
podAntiAffinity:
Expand Down
2 changes: 2 additions & 0 deletions resources/manifests/kube-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
labels:
tier: node
k8s-app: kube-proxy
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
containers:
- name: kube-proxy
Expand Down
2 changes: 2 additions & 0 deletions resources/manifests/kube-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ spec:
labels:
tier: control-plane
k8s-app: kube-scheduler
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions resources/manifests/pod-checkpointer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
k8s-app: pod-checkpointer
annotations:
checkpointer.alpha.coreos.com/checkpoint: "true"
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
containers:
- name: pod-checkpointer
Expand Down

0 comments on commit 2437023

Please sign in to comment.