pacoxu / kubeadm-operator

Test work on the design of kubeadm operator. Also you can try https://github.com/chendave/kubeadm-operator
Apache License 2.0
10 stars 2 forks source link

use non-root user: currently the /etc/kubernetes need root permissions #34

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

use non-root user: currently the /etc/kubernetes need root permissions

RunAsUser: pointer.Int64Ptr(0),

https://github.com/pacoxu/kubeadm-operator/blob/8f3b2f906aadd6f739b7244b9d2f5fc3f8d4a936/controllers/util.go#L160

                            SecurityContext: &corev1.SecurityContext{
                                Privileged: pointer.BoolPtr(true),
                                // TODO use non-root user: currently the /etc/kubernetes need root permissions
                                // RunAsUser: pointer.Int64Ptr(0),
                            },
                            VolumeMounts: []corev1.VolumeMount{
                                {

2cdaccdec792eca7c2ebda6c296d62304b23d60b