From 39d45fcceff5d7f6074c2952fae4e7f6fd72b360 Mon Sep 17 00:00:00 2001 From: Vinayak Goyal Date: Tue, 1 Jun 2021 09:17:00 -0700 Subject: [PATCH] Add user and group name constants for kubeadm rootless control-plane. --- cmd/kubeadm/app/constants/constants.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cmd/kubeadm/app/constants/constants.go b/cmd/kubeadm/app/constants/constants.go index 68ae1265f4c..a9d7f6c7c6d 100644 --- a/cmd/kubeadm/app/constants/constants.go +++ b/cmd/kubeadm/app/constants/constants.go @@ -398,6 +398,17 @@ const ( // CgroupDriverSystemd holds the systemd driver type CgroupDriverSystemd = "systemd" + + // The username of the user that kube-controller-manager runs as. + KubeControllerManagerUserName string = "kubeadm-kcm" + // The username of the user that kube-apiserver runs as. + KubeAPIServerUserName string = "kubeadm-kas" + // The username of the user that kube-scheduler runs as. + KubeSchedulerUserName string = "kubeadm-ks" + // The username of the user that etcd runs as. + EtcdUserName string = "kubeadm-etcd" + // The group of users that are allowed to read the service account private key. + ServiceAccountKeyReadersGroupName string = "kubeadm-sa-key-readers" ) var (