File tree Expand file tree Collapse file tree
templates/victoriametrics/vmauth Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {{ $username := include "common.secrets.lookup" (dict "secret" "victoriametrics-vmauth-creds" "key" "username" "defaultValue" (default (randAlphaNum 16) .Values.vmauth.username) "context" $) }}
2+ {{ $password := include "common.secrets.lookup" (dict "secret" "victoriametrics-vmauth-creds" "key" "password" "defaultValue" (default (randAlphaNum 32) .Values.vmauth.password) "context" $) }}
3+ apiVersion : v1
4+ kind : Secret
5+ metadata :
6+ name : victoriametrics-vmauth-creds
7+ labels :
8+ heritage : drycc
9+ type : Opaque
10+ data :
11+ username : {{ $username }}
12+ password : {{ $password }}
13+
14+ ---
15+ apiVersion : v1
16+ kind : ConfigMap
17+ metadata :
18+ name : victoriametrics-vmauth-config
19+ labels :
20+ heritage : drycc
21+ data :
22+ vmauth.yaml : |
23+ users:
24+ - username: {{ $username | b64dec }}
25+ password: {{ $password | b64dec }}
26+ url_map:
27+ - src_paths:
28+ - "/insert"
29+ url_prefix: "http://drycc-victoriametrics-vminsert.{{.Release.Namespace}}.svc.{{.Values.global.clusterDomain}}:8480/"
30+ url_prefix: "http://drycc-victoriametrics-vmselect.{{.Release.Namespace}}.svc.{{.Values.global.clusterDomain}}:8481/"
31+ discover_backend_ips: true
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ vmagent:
5454# # victoriametrics vmauth configuration
5555# #
5656vmauth :
57- username : admin
58- password : admin
57+ username : " "
58+ password : " "
5959 nodeAffinityPreset :
6060 key : " drycc.cc/node"
6161 type : " soft"
You can’t perform that action at this time.
0 commit comments