简体中文 | English
Install kdoctor to check network and performance inside and outside the cluster.
-
A complete k8s cluster.
-
Helm has been installed.
-
StorageClass (optional) is supported if kdoctor-controller is required for high availability and report persistence is required.
helm repo add kdoctor https://kdoctor-io.github.io/kdoctor
helm repo update kdoctor
kdoctor can be installed according to different needs, the following are the recommended installation methods for several scenarios
The kdoctor agent only prints reports to standard output in the following way:
helm install kdoctor kdoctor/kdoctor \
-n kdoctor --debug --create-namespace
The following method directs the collection reports from kdoctor-controller to storage, so you need to install storageClass.
helm install kdoctor kdoctor/kdoctor \
-n kdoctor --debug --create-namespace \
--set kdoctorController.replicas=2 \
--set feature.aggregateReport.controller.pvc.enabled=true \
--set feature.aggregateReport.controller.pvc.storageClass=local-path \
--set feature.aggregateReport.controller.pvc.storageRequests="100Mi" \
--set feature.aggregateReport.controller.pvc.storageLimits="500Mi"
kubectl get pod -n kdoctor
NAME READY STATUS RESTARTS AGE
kdoctor-controller-686b75d6d7-k4dcq 1/1 Running 0 137m
helm uninstall kdoctor -n kdoctor