This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Installation

How to install or uninstall Kapacity

Prerequisites

Install

Install cert-manager

Install cert-manager by Helm.

helm repo add jetstack https://charts.jetstack.io helm repo update helm install \ cert-manager jetstack/cert-manager \ --namespace cert-manager \ --create-namespace \ --set installCRDs=true

Install Prometheus

Install Prometheus with kube-state-metrics by Helm.

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update helm install \ prometheus prometheus-community/prometheus \ --namespace prometheus \ --create-namespace \ --set alertmanager.enabled=false \ --set prometheus-node-exporter.enabled=false \ --set prometheus-pushgateway.enabled=false

Run following command to view Prometheus Server’s ClusterIP and port:

kubectl get svc -n prometheus prometheus-server
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE prometheus-server ClusterIP 10.104.214.48 <none> 80/TCP 5m

Install Kapacity

Install Kapacity by Helm. The Prometheus Server address params are those got in previous step.

helm repo add kapacity https://traas-stack.github.io/kapacity-charts helm repo update helm install \ kapacity-manager kapacity/kapacity-manager \ --namespace kapacity-system \ --create-namespace \ --set prometheus.address=http://<prometheus-server-clusterip>:<prometheus-server-port>

Verify Kapacity installation

kubectl get deploy -n kapacity-system
NAME READY UP-TO-DATE AVAILABLE AGE kapacity-manager 1/1 1 1 5m

Uninstall

helm uninstall kapacity-manager -n kapacity-system helm uninstall prometheus -n prometheus helm uninstall cert-manager -n cert-manager