• Kubernetes Submit Queue's avatar
    Merge pull request #40682 from dgoodwin/pod-security-context · 1bc78add
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 38443, 40145, 40701, 40682)
    
    Move kubeadm etcd SELinux options from container to pod.
    
    **What this PR does / why we need it**:
    
    Works around a bug that surfaces in Docker 1.12+ related to the pause
    container's namespace and selinux labels being transferred to the etcd
    container when it runs.
    
    At present it appears that applying selinux options to a container may
    be broken, or perhaps shouldn't be supported at all. Moving these to the
    pod causes all containers (including pause) to run with the correct
    labels.
    
    
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
    
    **Special notes for your reviewer**:
    
    Related to and partial fix for https://github.com/kubernetes/kubeadm/issues/107
    
    This is one of several selinux related fixes in flight for upcoming releases, and newer versions of Docker. To successfully run kubeadm with selinux enforcing right now would like require a recent container-selinux build as uncovered in https://github.com/kubernetes/kubeadm/issues/107, a bugfix for the format labels in #40179, and finally this fix.
    
    **Release note**:
    
    ```release-note
    Fixed an SELinux issue in kubeadm on Docker 1.12+ by moving etcd SELinux options from container to pod.
    ```
    1bc78add
Name
Last commit
Last update
..
clicheck Loading commit data...
cloud-controller-manager Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genslateyaml Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
hyperkube Loading commit data...
kube-aggregator Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-discovery Loading commit data...
kube-proxy Loading commit data...
kubeadm Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
libs/go2idl Loading commit data...
linkcheck Loading commit data...
mungedocs Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...