fix: stop overriding kubelet config in kubeadm init
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
Remove custom KubeletConfiguration from init config so kubeadm uses default kubelet authn/authz settings and bootstrap registration path. This avoids the standalone-style kubelet behavior where the node never appears in the API.
This commit is contained in:
@@ -175,14 +175,6 @@ in
|
||||
podSubnet: "KUBEADM_POD_SUBNET"
|
||||
serviceSubnet: "KUBEADM_SERVICE_SUBNET"
|
||||
dnsDomain: "KUBEADM_DNS_DOMAIN"
|
||||
---
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
authentication:
|
||||
webhook:
|
||||
enabled: false
|
||||
authorization:
|
||||
mode: AlwaysAllow
|
||||
KUBEADMCONFIG
|
||||
|
||||
sed -i "s|KUBEADM_ENDPOINT|$vip:6443|g" /tmp/kubeadm/init-config.yaml
|
||||
|
||||
Reference in New Issue
Block a user