k8s 查看 pod 网段
查看当前k8s集群中 pod 和 service 网段信息文章来源:https://www.toymoban.com/news/detail-574320.html
[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
文章来源地址https://www.toymoban.com/news/detail-574320.html
到了这里,关于k8s 查看 pod 网段的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!