본문 바로가기
WIKI 기술 지식 베이스

check

원문 보기 위키 갱신

Linkerd 설치 상태에 문제가 없는지 검증하는 linkerd check 명령에 대해 다루는 문서예요.

출처: Linkerd check

본문

Linkerd 설치에 잠재적인 문제가 있는지 확인합니다.

check 명령은 linkerd CLI와 컨트롤 플레인이 올바르게 설정되었는지 검증하기 위해 일련의 검사를 수행해요. 명령이 실패를 만나면 실패에 대한 추가 정보를 출력하고 0이 아닌 exit code로 종료됩니다.

가능한 모든 검사가 무엇인지, 어떤 일을 하는지, 어떻게 고치는지에 대한 전체 목록은 troubleshooting 문서를 참고하세요.

Examples

`# Check that the Linkerd control plane is up and running
linkerd check

# Check that the Linkerd control plane can be installed in the "test" namespace
linkerd check --pre --linkerd-namespace test

# Check that the Linkerd data plane proxies in the "app" namespace are up and running
linkerd check --proxy --namespace app`

Example output

`$ linkerd check
kubernetes-api
--------------
√ can initialize the client
√ can query the Kubernetes API

kubernetes-version
------------------
√ is running the minimum Kubernetes API version

linkerd-existence
-----------------
√ control plane namespace exists
√ controller pod is running
√ can initialize the client
√ can query the control plane API

linkerd-api
-----------
√ control plane pods are ready
√ control plane self-check
√ [kubernetes] control plane can talk to Kubernetes
√ [prometheus] control plane can talk to Prometheus

linkerd-service-profile
-----------------------
√ no invalid service profiles

linkerd-version
---------------
√ can determine the latest version
√ cli is up-to-date

control-plane-version
---------------------
√ control plane is up-to-date
√ control plane and cli versions match

Status check results are √
`

Flags

Flag Usage
Flag Usage
--cli-version-override Used to override the version of the cli (mostly for testing)
--crds Only run checks which determine if the Linkerd CRDs have been installed
--expected-version Overrides the version used when checking if Linkerd is running the latest version (mostly for testing)
--linkerd-cni-enabled When running pre-installation checks (–pre), assume the linkerd-cni plugin is already installed, and a NET_ADMIN check is not needed
--namespace-n Namespace to use for –proxy checks (default: all namespaces)
--output-o Output format. One of: table, json, short
--pre Only run pre-installation checks, to determine if the control plane can be installed
--proxy Only run data-plane checks, to determine if the data plane is healthy
--wait Maximum allowed time for all tests to pass

더 알아보기 (Learn more)

  • Linkerd troubleshooting 문서에서 모든 검사 항목과 해결 방법을 확인해 보세요.