This commit is contained in:
24
testdata/helm/kubeviz-sample/templates/ingress.yaml
vendored
Normal file
24
testdata/helm/kubeviz-sample/templates/ingress.yaml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
{{- if .Values.ingress.enabled }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ include "kubeviz-sample.fullname" . }}
|
||||
namespace: {{ include "kubeviz-sample.namespace" . }}
|
||||
labels:
|
||||
{{- include "kubeviz-sample.labels" . | nindent 4 }}
|
||||
spec:
|
||||
{{- if .Values.ingress.className }}
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
{{- end }}
|
||||
rules:
|
||||
- host: {{ .Values.ingress.host | quote }}
|
||||
http:
|
||||
paths:
|
||||
- path: {{ .Values.ingress.path | quote }}
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: {{ include "kubeviz-sample.fullname" . }}
|
||||
port:
|
||||
number: {{ .Values.service.port }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user