Main Menu

Search

KUBERNETES: How To View Kubeadm Configuration (ConfigMap)?

KUBERNETES: How To View Kubeadm Configuration (ConfigMap)?

Below command can be used.


kubectl get cm kubeadm-config  -n kube-system -o yaml


Below is sample output.


#kubectl get cm kubeadm-config  -n kube-system -o yaml

apiVersion: v1

data:

  ClusterConfiguration: |

    apiServer:

      extraArgs:

        authorization-mode: Node,RBAC

        tls-min-version: VersionTLS12

      timeoutForControlPlane: 4m0s

    apiVersion: kubeadm.k8s.io/v1beta3

    certificatesDir: /etc/kubernetes/pki

    clusterName: kubernetes

    controlPlaneEndpoint: XX.XX.XX.XX:6443

    controllerManager:

      extraArgs:

        bind-address: 0.0.0.0

        tls-min-version: VersionTLS12

    dns:

      imageRepository: container-registry.oracle.com/olcne

      imageTag: 1.8.6

    etcd:

      local:

        dataDir: /var/lib/etcd

        imageRepository: container-registry.oracle.com/olcne

        imageTag: 3.5.3

    imageRepository: container-registry.oracle.com/olcne

    kind: ClusterConfiguration

    kubernetesVersion: v1.24.15

    networking:

      dnsDomain: cluster.local

      podSubnet: 10.XX.0.0/16

      serviceSubnet: 10.XX.0.0/12

    scheduler:

      extraArgs:

        bind-address: 0.0.0.0

        tls-min-version: VersionTLS12

  ClusterStatus: |

    apiEndpoints:

      cne14-control1:

        advertiseAddress: XX.XX.XX.XX

        bindPort: 6443

      cne14-control2:

        advertiseAddress: XX.XX.XX.XX

        bindPort: 6443

    apiVersion: kubeadm.k8s.io/v1beta2

    kind: ClusterStatus

kind: ConfigMap

metadata:

  creationTimestamp: "2024-01-06T06:57:42Z"

  name: kubeadm-config

  namespace: kube-system

  resourceVersion: "936105"

  uid: b4b76803-e4ae-4982-bd2b-6d202f3e6531

No comments:

Post a Comment