반응형
kubeadm 구성 보기
kubectl get cm -o yaml -n kube-system kubeadm-config
$ kubectl get cm -o yaml -n kube-system kubeadm-config
apiVersion: v1
data:
ClusterConfiguration: |
apiServer:
extraArgs:
authorization-mode: Node,RBAC
timeoutForControlPlane: 4m0s
apiVersion: kubeadm.k8s.io/v1beta2
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controllerManager: {}
dns:
type: CoreDNS
etcd:
local:
dataDir: /var/lib/etcd
imageRepository: k8s.gcr.io
kind: ClusterConfiguration
kubernetesVersion: v1.19.2
networking:
dnsDomain: cluster.local
podSubnet: 10.244.0.0/16
serviceSubnet: 10.96.0.0/12
scheduler: {}
ClusterStatus: |
apiEndpoints:
bk8sm1:
advertiseAddress: 10.255.255.99
bindPort: 6443
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterStatus
kind: ConfigMap
metadata:
creationTimestamp: "2020-11-02T15:15:57Z"
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:data:
.: {}
f:ClusterConfiguration: {}
f:ClusterStatus: {}
manager: kubeadm
operation: Update
time: "2020-11-02T15:15:57Z"
name: kubeadm-config
namespace: kube-system
resourceVersion: "173"
selfLink: /api/v1/namespaces/kube-system/configmaps/kubeadm-config
uid: aee30cc8-b7fd-45ce-a74e-1b6dbdc64b9f
*** kubeadm config view 명령어는 제거될 예정임
kubeadm version
$ kubeadm version -o json | jq .
{
"clientVersion": {
"major": "1",
"minor": "19",
"gitVersion": "v1.19.2",
"gitCommit": "f5743093fd1c663cb0cbc89748f730662345d44d",
"gitTreeState": "clean",
"buildDate": "2020-09-16T13:38:53Z",
"goVersion": "go1.15",
"compiler": "gc",
"platform": "linux/amd64"
}
}
kubectl version
$ kubectl version -o json | jq .
{
"clientVersion": {
"major": "1",
"minor": "19",
"gitVersion": "v1.19.2",
"gitCommit": "f5743093fd1c663cb0cbc89748f730662345d44d",
"gitTreeState": "clean",
"buildDate": "2020-09-16T13:41:02Z",
"goVersion": "go1.15",
"compiler": "gc",
"platform": "linux/amd64"
},
"serverVersion": {
"major": "1",
"minor": "19",
"gitVersion": "v1.19.2",
"gitCommit": "f5743093fd1c663cb0cbc89748f730662345d44d",
"gitTreeState": "clean",
"buildDate": "2020-09-16T13:32:58Z",
"goVersion": "go1.15",
"compiler": "gc",
"platform": "linux/amd64"
}
}
728x90
반응형
'리눅스' 카테고리의 다른 글
[리눅스] OpenSSL로 TLS 연결 테스트 (1) | 2020.11.13 |
---|---|
screen 명령어 (0) | 2020.11.13 |
쿠버네티스에서 실행 중인 컨테이너에 대화형 셀로 접근하는 방법 (0) | 2020.11.11 |
쿠버네티스 레플리카셋(Replica Set) (0) | 2020.11.11 |
[kubernetes] APP(httpd) 배포 테스트 (0) | 2020.11.10 |