Настройка метрик k8s
terragrunt 0.55.1
есть два вопроса
1.
подобный сетап
https://github.com/grafana/helm-charts/tree/main/c...
https://github.com/grafana/mimir
https://github.com/grafana/k8s-monitoring-helm/tre...
https://github.com/dotdc/grafana-dashboards-kubern...
полность отсвутствуют метрики по CoreDNS
k8s-system-coredns = "https://raw.githubusercontent.com/dotdc/grafana-dashboards-kubernetes/master/dashboards/k8s-system-coredns.json"
2 -
Вот такой дашбоард -
https://github.com/OT-CONTAINER-KIT/redis-operator...
при попытке развернуть столкнулся со следубющей ошибкой -
│ Error: Get "https://***.k8s.ovh.net/api/v1/namespaces/monitoring/services/grafana": context deadline exceeded
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "deployments.apps \"grafana\" is forbidden: User \"system:anonymous\" cannot get resource \"deployments\" in API group \"apps\" in the namespace \"monitoring\"",
"reason": "Forbidden",
"details": {
"name": "grafana",
"group": "apps",
"kind": "deployments"
},
"code": 403
}
После применения этой роли доступ к URL появился
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin
subjects:
- kind: User
name: system:anonymous
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
но при деплое ошибка сохраняется
│ Error: Get "https://***.k8s.ovh.net/api/v1/namespaces/monitoring/services/grafana": context deadline exceeded