vmware-archive/wardroom

kubeadm config defaults include deprecated flags, missing sections

Closed this issue · 1 comments

kubeadm config in the kubernetes-common role has defaults that trigger deprecation warnings, and currently has no way to set parameters that have moved into kubelet config and init config.

Locally have modified the kubeadm.conf template file to read

---
{{ kubernetes_common_kubeadm_config_clusterconfiguration|to_nice_yaml(indent=2) }}
---
{{ kubernetes_common_kubeadm_config_kubeletconfiguration|to_nice_yaml(indent=2) }}
---
{{ kubernetes_common_kubeadm_config_initconfiguration|to_nice_yaml(indent=2) }}

and the defaults.yaml to read

kubernetes_common_kubeadm_config_clusterconfiguration:
  apiVersion: kubeadm.k8s.io/v1beta1
  kind: ClusterConfiguration
  kubernetesVersion: 1.14.6
  controlPlaneEndpoint: "{{ kubernetes_common_api_fqdn }}"
  apiServer:
    certSANs: "{{ kubernetes_common_api_ip | kube_lookup_hostname(kubernetes_common_api_fqdn, True) }}"
    extraArgs:
      "endpoint-reconciler-type": "lease"
  etcd:
    external:
      endpoints: "{{ etcd_client_endpoints }}"

kubernetes_common_kubeadm_config_kubeletconfiguration:
  apiVersion: kubelet.config.k8s.io/v1beta1
  kind: KubeletConfiguration

kubernetes_common_kubeadm_config_initconfiguration:
  apiVersion: kubeadm.k8s.io/v1beta1
  kind: InitConfiguration

This is addressed by #215