File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,26 @@ Observe that the Pod of `doriscluster` is in the `Running` state and all contain
5555 doriscluster-helm-be-2 1/1 Running 0 16s
5656 ` ` `
5757
58+ # # Authentication Options
59+
60+ The chart supports three authentication methods (in order of precedence):
61+ 1. ` adminUser` - Plain text credentials (not recommended)
62+ 2. ` authSecret` - Helm creates a secret from base64 values
63+ 3. ` authSecretName` - Reference an existing secret (recommended)
64+
65+ # ## Using External Secret (Recommended)
66+ ` ` ` bash
67+ # Create secret
68+ kubectl create secret generic doris-auth \
69+ --type=kubernetes.io/basic-auth \
70+ --from-literal=username=root \
71+ --from-literal=password=' your-password'
72+
73+ # Reference in values.yaml
74+ dorisCluster:
75+ authSecretName: " doris-auth"
76+ ` ` `
77+
5878# # Uninstall doriscluster
5979Please confirm the Doris is not used, when using next command to uninstall ` doriscluster` .
6080` ` ` bash
Original file line number Diff line number Diff line change 3636 {{- toYaml .Values.dorisCluster.adminUser | nindent 4 }}
3737 {{- else if .Values.dorisCluster.authSecret }}
3838 authSecret : {{ template "doriscluster.secret.name" . }}
39+ {{- else if .Values.dorisCluster.authSecretName }}
40+ # Reference an existing secret
41+ authSecret : {{ .Values.dorisCluster.authSecretName }}
3942 {{- end }}
4043 feSpec :
4144 {{- if .Values.feSpec.annotations }}
Original file line number Diff line number Diff line change @@ -34,7 +34,13 @@ dorisCluster:
3434 adminUser : {}
3535 # name: root
3636 # password: "12345"
37- # use authSecret can encrypt and save passwords, recommend this method
37+ # Option 1: Reference an existing secret
38+ # Use this when you have created a secret outside of this Helm chart
39+ # Example: kubectl create secret generic doris-auth --type=kubernetes.io/basic-auth --from-literal=username=root --from-literal=password='your-password'
40+ authSecretName : " "
41+ # Example: authSecretName: "doris-auth"
42+
43+ # Option 2: use authSecret can encrypt and save passwords
3844 # 1. run shell: echo -n '{your_password}' | base64 to get password base64 string
3945 # 2. run shell: echo -n '{your_user}' | base64 to get user base64 string
4046 # 3. Fill the encrypted string into the corresponding position
You can’t perform that action at this time.
0 commit comments