赞
踩
查看当前k8s集群中 pod 和 service 网段信息
[root@master ~]# kubectl get configmap kubeadm-config -n kube-system -o yaml apiVersion: v1 data: ClusterConfiguration: | apiServer: extraArgs: authorization-mode: Node,RBAC timeoutForControlPlane: 4m0s apiVersion: kubeadm.k8s.io/v1beta3 certificatesDir: /etc/kubernetes/pki clusterName: kubernetes controllerManager: {} dns: {} etcd: local: dataDir: /var/lib/etcd imageRepository: registry.aliyuncs.com/google_containers kind: ClusterConfiguration kubernetesVersion: v1.23.0 networking: dnsDomain: cluster.local podSubnet: 10.244.0.0/16 serviceSubnet: 10.96.0.0/12 scheduler: {} kind: ConfigMap metadata: creationTimestamp: "2022-12-16T09:05:39Z" name: kubeadm-config namespace: kube-system resourceVersion: "213" uid: 945806aa-42c7-4158-b8e2-ab943869a3f8
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。