"Kubectl cluster-info"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
4번째 줄: 4번째 줄:


==실행예시 1==
==실행예시 1==
<source lang='console'>
<syntaxhighlight lang='console'>
$ kubectl cluster-info
$ kubectl cluster-info
Kubernetes control plane is running at https://172.30.1.2:6443
Kubernetes control plane is running at https://172.30.1.2:6443
10번째 줄: 10번째 줄:


To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
$ kubectl get svc --all-namespaces --show-labels
$ kubectl get svc --all-namespaces --show-labels
NAMESPACE    NAME        TYPE        CLUSTER-IP  EXTERNAL-IP  PORT(S)                  AGE  LABELS
NAMESPACE    NAME        TYPE        CLUSTER-IP  EXTERNAL-IP  PORT(S)                  AGE  LABELS
default      kubernetes  ClusterIP  10.96.0.1    <none>        443/TCP                  21d  component=apiserver,provider=kubernetes
default      kubernetes  ClusterIP  10.96.0.1    <none>        443/TCP                  21d  component=apiserver,provider=kubernetes
kube-system  kube-dns    ClusterIP  10.96.0.10  <none>        53/UDP,53/TCP,9153/TCP  21d  k8s-app=kube-dns,kubernetes.io/cluster-service=true,kubernetes.io/name=CoreDNS
kube-system  kube-dns    ClusterIP  10.96.0.10  <none>        53/UDP,53/TCP,9153/TCP  21d  k8s-app=kube-dns,kubernetes.io/cluster-service=true,kubernetes.io/name=CoreDNS
</source>
</syntaxhighlight>
<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
$ kubectl version
$ kubectl version
27번째 줄: 27번째 줄:
* https://kubernetes.io/docs/reference/kubectl/docker-cli-to-kubectl
* https://kubernetes.io/docs/reference/kubectl/docker-cli-to-kubectl
* https://github.com/kubernetes/website/blob/release-1.14/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md
* https://github.com/kubernetes/website/blob/release-1.14/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md
<source lang='console'>
<syntaxhighlight lang='console'>
$ kubectl cluster-info
$ kubectl cluster-info
Kubernetes master is running at https://108.59.85.141
Kubernetes master is running at https://108.59.85.141
35번째 줄: 35번째 줄:
Heapster is running at https://108.59.85.141/api/v1/namespaces/kube-system/services/monitoring-heapster/proxy
Heapster is running at https://108.59.85.141/api/v1/namespaces/kube-system/services/monitoring-heapster/proxy
InfluxDB is running at https://108.59.85.141/api/v1/namespaces/kube-system/services/monitoring-influxdb/proxy
InfluxDB is running at https://108.59.85.141/api/v1/namespaces/kube-system/services/monitoring-influxdb/proxy
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2023년 12월 6일 (수) 15:00 판

1 개요

kubectl cluster-info

2 실행예시 1

$ kubectl cluster-info
Kubernetes control plane is running at https://172.30.1.2:6443
CoreDNS is running at https://172.30.1.2:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
$ kubectl get svc --all-namespaces --show-labels
NAMESPACE     NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)                  AGE   LABELS
default       kubernetes   ClusterIP   10.96.0.1    <none>        443/TCP                  21d   component=apiserver,provider=kubernetes
kube-system   kube-dns     ClusterIP   10.96.0.10   <none>        53/UDP,53/TCP,9153/TCP   21d   k8s-app=kube-dns,kubernetes.io/cluster-service=true,kubernetes.io/name=CoreDNS
$ kubectl version
Client Version: v1.28.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.1

3 실행예시 2

$ kubectl cluster-info
Kubernetes master is running at https://108.59.85.141
KubeDNS is running at https://108.59.85.141/api/v1/namespaces/kube-system/services/kube-dns/proxy
kubernetes-dashboard is running at https://108.59.85.141/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy
Grafana is running at https://108.59.85.141/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy
Heapster is running at https://108.59.85.141/api/v1/namespaces/kube-system/services/monitoring-heapster/proxy
InfluxDB is running at https://108.59.85.141/api/v1/namespaces/kube-system/services/monitoring-influxdb/proxy

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}