Installing

kubectl create ns monitoring
helm install --name prometheus-operator --namespace monitoring stable/prometheus-operator

Deleting

helm del --purge prometheus-operator
kubectl delete ns monitoring
kubectl delete crd alertmanagers.monitoring.coreos.com podmonitors.monitoring.coreos.com prometheuses.monitoring.coreos.com prometheusrules.monitoring.coreos.com servicemonitors.monitoring.coreos.com
kubectl delete service -n kube-system prometheus-prometheus-oper-kubelet

values.yaml

OpenID для входа в grafana

https://steemit.com/grafana/@timoschuetz/setting-up-grafana-oauth2-in-kubernetes

<code> grafana:

grafana.ini:
  paths:
    data: /var/lib/grafana/data
    logs: /var/log/grafana
    plugins: /var/lib/grafana/plugins
    provisioning: /etc/grafana/provisioning
  analytics:
    check_for_updates: true
  log:
    mode: console
  grafana_net:
    url: https://grafana.net
  server:
    root_url: https://grafana.preprod.esb.rdleas.ru
  auth.generic_oauth:
    enabled: true
    client_id: <<CLIENTID>>
    client_secret: <<CLIENTSECRET>>
    scopes: openid profile email
    auth_url: <<AUTHORIZEURL>>
    token_url: <<TOKENURL>>
    api_url: <<APIURL>>
  auth.basic:
    enabled: false
  auth:
    oauth_auto_login: true
    disable_login_form: true
Enter your comment. Wiki syntax is allowed:
N K S E Y
 
  • devops/deploy_prometheus_on_kubernetes_using_prometheus-operator.txt
  • Last modified: 2020/04/27 15:24
  • by admin