hello everyone!
I want to know how to install metrics-server on microk8s
here is any git repo link or other any guidelines for it
thanks
hello everyone!
I want to know how to install metrics-server on microk8s
here is any git repo link or other any guidelines for it
thanks
You can install it using this command.
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Also you can use this Helm chart.
helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/
helm upgrade --install metrics-server metrics-server/metrics-server
add this line in spec.
kubectl edit deployments.apps metrics-server
spec:
containers:
- args:
- --cert-dir=/tmp
- --secure-port=4443
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
- --kubelet-use-node-status-port
- --metric-resolution=15s
> command:
- /metrics-server - --kubelet-insecure-tls - --kubelet-preferred-address-types=InternalIP
image: registry.k8s.io/metrics-server/metrics-server:v0.6.4
imagePullPolicy: IfNotPresent
livenessProbe:
Yes changing the port to 4443 works. I used with patch as documented here: https://computingforgeeks.com/fix-error-metrics-api-not-available-in-kubernetes/