perf: 优化变量定义

This commit is contained in:
吴小白 2022-01-17 15:15:55 +08:00
parent c307019bb9
commit c27ff14efc
5 changed files with 5 additions and 5 deletions

View File

@ -83,7 +83,7 @@ spec:
- /bin/bash - /bin/bash
- /opt/jumpserver/utils/check_celery.sh - /opt/jumpserver/utils/check_celery.sh
resources: resources:
{{- toYaml .resources | nindent 12 }} {{- toYaml .resources | nindent 12 }}
volumeMounts: volumeMounts:
- mountPath: "/opt/jumpserver/config.yml" - mountPath: "/opt/jumpserver/config.yml"
name: "jms-core-config" name: "jms-core-config"

View File

@ -50,7 +50,7 @@ spec:
protocol: TCP protocol: TCP
env: env:
- name: CORE_HOST - name: CORE_HOST
value: http://{{include "jumpserver.fullname" $}}-jms-core:{{$.Values.core.service.web.port}} value: "http://{{include "jumpserver.fullname" $}}-jms-core:{{$.Values.core.service.web.port}}"
- name: BOOTSTRAP_TOKEN - name: BOOTSTRAP_TOKEN
value: "{{ $.Values.core.config.bootstrapToken }}" value: "{{ $.Values.core.config.bootstrapToken }}"
- name: LOG_LEVEL - name: LOG_LEVEL

View File

@ -47,7 +47,7 @@ spec:
protocol: TCP protocol: TCP
env: env:
- name: CORE_HOST - name: CORE_HOST
value: http://{{ include "jumpserver.fullname" $}}-jms-core:{{$.Values.core.service.web.port}} value: "http://{{ include "jumpserver.fullname" $}}-jms-core:{{$.Values.core.service.web.port}}"
- name: BOOTSTRAP_TOKEN - name: BOOTSTRAP_TOKEN
value: "{{ $.Values.core.config.bootstrapToken }}" value: "{{ $.Values.core.config.bootstrapToken }}"
- name: LOG_LEVEL - name: LOG_LEVEL

View File

@ -43,7 +43,7 @@ spec:
{{- end }} {{- end }}
env: env:
- name: CORE_HOST - name: CORE_HOST
value: http://{{include "jumpserver.fullname" $}}-jms-core:{{$.Values.core.service.web.port}} value: "http://{{include "jumpserver.fullname" $}}-jms-core:{{$.Values.core.service.web.port}}"
- name: BOOTSTRAP_TOKEN - name: BOOTSTRAP_TOKEN
value: "{{ $.Values.core.config.bootstrapToken }}" value: "{{ $.Values.core.config.bootstrapToken }}"
- name: LOG_LEVEL - name: LOG_LEVEL

View File

@ -43,7 +43,7 @@ spec:
{{- end }} {{- end }}
env: env:
- name: CORE_HOST - name: CORE_HOST
value: http://{{include "jumpserver.fullname" $}}-jms-core:{{$.Values.core.service.web.port}} value: "http://{{include "jumpserver.fullname" $}}-jms-core:{{$.Values.core.service.web.port}}"
- name: BOOTSTRAP_TOKEN - name: BOOTSTRAP_TOKEN
value: "{{ $.Values.core.config.bootstrapToken }}" value: "{{ $.Values.core.config.bootstrapToken }}"
- name: LOG_LEVEL - name: LOG_LEVEL