victoria-metrics-auth
Installiert CRD's für VMAuth und VMUser im Cluster.
actions
install
blocks:
- name: vm-auth
from: cargo.ayedo.cloud/ayedo/k8s/victoria-metrics-auth
kubeconfig:
from: k8s
config:
namespace: victoria-metrics-cluster
replicas: 3
config:
users:
# VMetrics Cluster Select
- enabled: true # Set to false to delete user and run `install` block again
username: foo-select
# url_prefix: "http://$SERVICE_NAME.$NAMESPACE.svc.cluster.local.:8481/select/0/prometheus?extra_label=cluster=$CLUSTERNAME"
url_prefix: "http://vmselect-vm.victoria-metrics-stack.svc.cluster.local.:8481/select/0/prometheus?extra_label=cluster=foo"
# VMetrics Cluster Insert
- enabled: true
username: foo-insert
password: super StronG PW
url_prefix: "http://http://vminsert-vm.victoria-metrics-stack.svc.cluster.local.:8480/insert/0/prometheus?extra_label=cluster=foo"
# VMetrics Single
- enabled: true
username: foo-insert
password: super StronG PW
url_prefix: "http://vmsingle-vm.victoria-metrics-stack.svc.cluster.local.:8429/?extra_label=cluster=foo"
# VLogs Single
- enabled: true
username: logs-s
password: huhu-s
url_prefix: "http://vlsingle-victoria-logs.victoria-logs.svc.cluster.local.:9428/internal/insert"
# headers:
# - "AccountID: 456"
# VLogs Cluster
- enabled: true
username: logs-s
password: huhu-s
url_prefix: "http://vlinsert-victoria-logs.victoria-logs.svc.cluster.local.:9481/internal/insert"
# headers:
# - "AccountID: 456"
ingress:
enabled: true
hosts:
- apm.example.com
tls:
enabled: true
# Default true. false omits the Polycrate Operator annotations.
endpoint_monitor:
enabled: true
Endpoint-Monitoring
Bei ingress.enabled: true schreibt der Block die Operator-Annotations auf das VMAuth-Ingress. Das ist die öffentliche Kante für VictoriaMetrics und VictoriaLogs (Insert/Select laufen über diesen Host, nicht über eigene Ingresses).
| Key | Default | Bedeutung |
|---|---|---|
ingress.endpoint_monitor.enabled |
true |
false lässt die Annotations weg |
Probe: GET /health, erwarteter Status 200. Ein Request ohne Credentials auf / antwortet mit 401 und wird nicht als Health-Check verwendet. polycrate_k8sapp_name ist der Block-Name.
uninstall
Entfernt das Helm Chart vom cluster.
polycrate run vm-auth uninstall