Welcome to the Linux Foundation Forum!

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

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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training