Welcome to the Linux Foundation Forum!

kubeadm init is thorwing the error unmarshaling JSON: while decoding JSON: json: unknown field "tls"

Options
ajay.prajapati2691
edited September 2023 in LFS258 Class Forum

sudo kubeadm init --config $USER_HOME/k8s_files/cluster_config.yaml
where cluster_config.yaml is
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
kubernetesVersion: "v1.21.1"
networking:
podSubnet: "172.16.0.0/24,fde1::/64"
serviceSubnet: "172.16.1.0/24,fde1::/112"
controllerManager:
extraArgs:
feature-gates: "IPv6DualStack=true"
apiServer:
extraArgs:
advertise-address: "172.16.2.1"

but on executing it , showing error as** error unmarshaling configuration schema.GroupVersionKind{Group:"kubeadm.k8s.io", Version:"v1beta2", Kind:"ClusterConfiguration"}: error unmarshaling JSON: while decoding JSON: json: unknown field "tls"**

Answers

Categories

Upcoming Training