Cannot install RKE2 bootstrap and control-plane providers into an RKE2 cluster with cisProfile set #384
Labels
kind/bug
Something isn't working
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened:
I used this provider to create an RKE2 cluster with the
cisProfile
set, but was unable to then pivot my management cluster to it sinceclusterctl init --bootstrap rke2 --control-plane rke2
was erroring out due to nosecurityContext
being set for the manager pods for the rke2-bootstrap-controller-manager and rke2-control-plane-manager:How to reproduce it:
--kubernetes-version v1.29.1+rke2r1
) withcis-1.23
for bothRKE2ConfigTemplate.spec.template.spec.agentConfig.cisProfile
andRKE2ControlPlane.spec.agentConfig.cisProfile
clusterctl get kubeconfig rke2-mgmt-cluster > kubeconfig.yaml
clusterctl init --kubeconfig=kubeconfig.yaml
clusterctl init --bootstrap rke2 --control-plane rke2 --kubeconfig=kubeconfig.yaml
<-- this part will fail due to missingsecurityContexts
Anything else you would like to add:
I was able to successfully install the bootstrap and control-plane providers and then pivot my management cluster into the RKE2 cluster by using a local version of the providers that included this in both manager containers:
Environment:
The text was updated successfully, but these errors were encountered: