feat(helm): add TOKEN_SECRET environment variable
Add TOKEN_SECRET environment variable to HTTP service deployment and generate a random value for it in vars.yaml. Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
82c5e5e59d
commit
6abded53e0
2 changed files with 3 additions and 0 deletions
|
|
@ -95,6 +95,8 @@ spec:
|
||||||
value: {{ .Values.global.jwtSecret }}
|
value: {{ .Values.global.jwtSecret }}
|
||||||
- name: JWT_SPOT_SECRET
|
- name: JWT_SPOT_SECRET
|
||||||
value: {{ .Values.global.jwtSpotSecret }}
|
value: {{ .Values.global.jwtSpotSecret }}
|
||||||
|
- name: TOKEN_SECRET
|
||||||
|
value: {{ .Values.global.tokenSecret }}
|
||||||
ports:
|
ports:
|
||||||
{{- range $key, $val := .Values.service.ports }}
|
{{- range $key, $val := .Values.service.ports }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,7 @@ global:
|
||||||
assistJWTSecret: "{{ randAlphaNum 20}}"
|
assistJWTSecret: "{{ randAlphaNum 20}}"
|
||||||
jwtSecret: "{{ randAlphaNum 20}}"
|
jwtSecret: "{{ randAlphaNum 20}}"
|
||||||
jwtSpotSecret: "{{ randAlphaNum 20}}"
|
jwtSpotSecret: "{{ randAlphaNum 20}}"
|
||||||
|
tokenSecret: "{{randAlphaNum 20}}"
|
||||||
# In case of multiple nodes in the kubernetes cluster,
|
# In case of multiple nodes in the kubernetes cluster,
|
||||||
# we'll have to create an RWX PVC for shared components.
|
# we'll have to create an RWX PVC for shared components.
|
||||||
# If it's a single node, we'll use hostVolume, which is the default for the community/oss edition.
|
# If it's a single node, we'll use hostVolume, which is the default for the community/oss edition.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue