Install
简体中文 | English
Introduction
Install kdoctor to check network and performance inside and outside the cluster.
Prerequisites
-
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.
Install
Add Helm Repository
helm repo add kdoctor https://kdoctor-io.github.io/kdoctor
helm repo update kdoctor
Install kdoctor
kdoctor can be installed according to different needs, the following are the recommended installation methods for several scenarios
Non-highly Available Installation
The kdoctor agent only prints reports to standard output in the following way:
helm install kdoctor kdoctor/kdoctor \
-n kdoctor --debug --create-namespace
Highly Available Installation
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"
Verify that All Components of kdoctor are Running Properly
kubectl get pod -n kdoctor
NAME READY STATUS RESTARTS AGE
kdoctor-controller-686b75d6d7-k4dcq 1/1 Running 0 137m
Uninstall kdoctor
helm uninstall kdoctor -n kdoctor