You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# отримуємо пароль для доступу до grafana
kubectl --namespace monitoring get secrets prometheus-stack-grafana -o jsonpath="{.data.admin-password}"| base64 -d ;echo# прокидуємо порт 3000export POD_NAME=$(kubectl --namespace monitoring get pod -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=prometheus-stack" -oname)
kubectl --namespace monitoring port-forward $POD_NAME 3000
Прокидуємо порт на локальну машину
ssh -L 3000:localhost:3000 root@k3s-node-fra1-01
# або
scp -L root@k3s-node-fra1-01:~/.kube/config ~/.kube/config
sed -i 's/https:\/\/127.0.0.1:6443/https:\/\/164.92.228.17:6443/g' ./kube-config
export POD_NAME=$(kubectl --kubeconfig=./kube-config --namespace monitoring get pod -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=prometheus-stack" -oname)
kubectl --kubeconfig=./kube-config -n monitoring port-forward $POD_NAME 3000
трішки зачекаємо щоб зібрались метрики
перейдемо на `http://localhost:3000`
логін admin
пароль отримали раніше
Script installation k3s cluster
Run prerequisites on all nodes:
bash k3s_prerequisites.sh
On the master node:
bash k3s_master_install.sh
# After install, copy the contents of ~/k3s_node_token.txt and note the master private IP (e.g., 10.114.0.97)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters