perf: 优化 Ingress

This commit is contained in:
wojiushixiaobai 2021-11-22 11:04:13 +08:00
parent 990afa2c18
commit 94881ad0df

View File

@ -1,8 +1,9 @@
{{- if .Values.ingress.enabled }} {{- if .Values.ingress.enabled }}
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "ingress" }}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ include "jumpserver.fullname" . }} name: {{ $fullName }}
labels: labels:
{{- include "jumpserver.labels" $ | nindent 4 }} {{- include "jumpserver.labels" $ | nindent 4 }}
{{- with .Values.ingress.annotations }} {{- with .Values.ingress.annotations }}