Вадим
Ага
Окей, спасибо
Pavel
wsrep_sync_wait даже в ней по умолчанию 0 т.е. с синком как предется
George
George
ну хотя бы на большинство
Vadim
https://github.com/opstree/dynamic-pv-scaler
Alex
Может кто в курсе - с чем это всязано - установил prometheus-operator в кластер используя helm 3 - но не могу пробросить порт на локальную машину
alex-macbook:prometheus-operator alex$ kubectl get pods
NAME READY STATUS RESTARTS AGE
alertmanager-prometheus-operator-alertmanager-0 2/2 Running 0 77m
prometheus-operator-grafana-68d894fccc-tln5n 2/2 Running 0 82m
prometheus-operator-kube-state-metrics-7f979567df-qgcgh 1/1 Running 0 82m
prometheus-operator-operator-6fd5bc79d8-cwljk 2/2 Running 0 82m
prometheus-operator-prometheus-node-exporter-qnwm7 1/1 Running 0 82m
prometheus-operator-prometheus-node-exporter-xjm62 1/1 Running 0 82m
prometheus-prometheus-operator-prometheus-0 3/3 Running 1 82m
alex-macbook:prometheus-operator alex$ kubectl port-forward prometheus-prometheus-operator-prometheus-0 9090
error: error upgrading connection: unable to upgrade connection: pod does not exist
alex-macbook:prometheus-operator alex$
Антон
ты в нужном неймспейсе?
Alex
может из-за того что в поде prometheus-prometheus-operator-prometheus-0 работает три контейнера
Alex
Антон
ну к ща у себя проверю
Alex
alex-macbook:prometheus-operator alex$ kubectl port-forward -n default prometheus-prometheus-operator-prometheus-0 9090
error: error upgrading connection: unable to upgrade connection: pod does not exist
alex-macbook:prometheus-operator alex$
Alex
alex-macbook:prometheus-operator alex$ kubectl get namespaces
NAME STATUS AGE
default Active 42d
kube-node-lease Active 42d
kube-public Active 42d
kube-system Active 42d
alex-macbook:prometheus-operator alex$
Антон
прикол... и у меня не пробрасывает
Alex
чарт устанавливал из https://github.com/helm/charts/tree/master/stable/prometheus-operator
Alex
и на графану соответственно
Антон
а не
Антон
стоп
Антон
форварднул, это я опечатался прост
Антон
пфф дык и ты опечатался )))
Антон
не... гоню - все верно написано
Alex
да не
Alex
все копировал прям с консоли
Антон
Alex
так получилось пробросить?
Антон
дада, у меня ок
Антон
k port-forward -n monitoring prometheus-pga-prometheus-operator-prometheus-0 9090
Forwarding from 127.0.0.1:9090 -> 9090
Forwarding from [::1]:9090 -> 9090
Dmitry
Alex
кстати а как ты именно в неймспейс monitoring закидывал?
Dmitry
А сорян, не увидел prometheus-0
Антон
Alex
хотя это сейчас не важно
Alex
все равно не прокидывает
Alex
странно
Alex
alex-macbook:prometheus-operator alex$ kubectl port-forward prometheus-prometheus-operator-prometheus-0 9090
error: error upgrading connection: unable to upgrade connection: pod does not exist
alex-macbook:prometheus-operator alex$
Dmitry
Dmitry
Alex
alex-macbook:prometheus-operator alex$ kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
alertmanager-operated ClusterIP None <none> 9093/TCP,9094/TCP,9094/UDP 92m
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 42d
prometheus-operated ClusterIP None <none> 9090/TCP 92m
prometheus-operator-alertmanager ClusterIP 10.97.219.131 <none> 9093/TCP 92m
prometheus-operator-grafana ClusterIP 10.103.238.8 <none> 80/TCP 92m
prometheus-operator-kube-state-metrics ClusterIP 10.107.140.92 <none> 8080/TCP 92m
prometheus-operator-operator ClusterIP 10.101.105.233 <none> 8080/TCP,443/TCP 92m
prometheus-operator-prometheus ClusterIP 10.101.3.155 <none> 9090/TCP 92m
prometheus-operator-prometheus-node-exporter ClusterIP 10.101.68.55 <none> 9100/TCP 92m
alex-macbook:prometheus-operator alex$
Антон
я всетаки убедился бы в каком NS релиз задеплоен и при форварде явно указал
Dmitry
Alex
alex-macbook:prometheus-operator alex$ kubectl get pod prometheus-prometheus-operator-prometheus-0
NAME READY STATUS RESTARTS AGE
prometheus-prometheus-operator-prometheus-0 3/3 Running 1 95m
alex-macbook:prometheus-operator alex$
Alex
блин - вообще странно
Alex
Dmitry
Alex
alex-macbook:prometheus-operator alex$ kubectl port-forward -n default prometheus-prometheus-operator-prometheus-0 9090
error: error upgrading connection: unable to upgrade connection: pod does not exist
alex-macbook:prometheus-operator alex$
Dmitry
Dmitry
Alex
да - я другие неймстейсы и не создавал
Alex
и сейчас нахожусь в дефолтном
Антон
фигня какаято
Dmitry
🤔
Alex
можеть версию кластера дать
Dmitry
Dmitry
kubectl -v 6 port-forward prometheus-prometheus-operator-prometheus-0 9090
Alex
alex-macbook:prometheus-operator alex$ kubectl port-forward prometheus-prometheus-operator-prometheus-0 9090 -v 6
I0418 17:42:49.739128 28095 loader.go:375] Config loaded from file: /Users/alex/.kube/config
I0418 17:42:49.754946 28095 round_trippers.go:443] GET https://192.168.100.101:6443/api/v1/namespaces/default/pods/prometheus-prometheus-operator-prometheus-0 200 OK in 8 milliseconds
I0418 17:42:49.764061 28095 round_trippers.go:443] GET https://192.168.100.101:6443/api/v1/namespaces/default/pods/prometheus-prometheus-operator-prometheus-0 200 OK in 2 milliseconds
I0418 17:42:49.783992 28095 round_trippers.go:443] POST https://192.168.100.101:6443/api/v1/namespaces/default/pods/prometheus-prometheus-operator-prometheus-0/portforward 404 Not Found in 19 milliseconds
F0418 17:42:49.785226 28095 helpers.go:114] error: error upgrading connection: unable to upgrade connection: pod does not exist
alex-macbook:prometheus-operator alex$
Антон
а к другим то подам формардинг идет?
Антон
может у тебя с прокси там чего
Alex
я пробовал к экспортеру - тоже самое
Alex
сам в шоке
Dmitry
Alex
да не
Alex
кластер у себя стоит в виртуалбоксе
Alex
и две ноды к нему подключены
Alex
хелм уже на своем пк
Антон
Dmitry
вот да, с языка снял
ну там по идее 403 тогда должна быть. А тут 404. Но мб и правда прав нет
𝚔𝚟𝚊𝚙𝚜
Alex
на ноды
Alex
мот привилегии прописать)
kubectl create clusterrolebinding gitlab-cluster-admin --clusterrole=cluster-admin --group=system:serviceaccounts --namespace=default
Alex
Антон
Alex
тоже верно
Антон
сейчас речь о том, с каким SA ты ходишь в кубик