add isolated live development deployments
This commit is contained in:
23
dev/helm/templates/ingress.yaml
Normal file
23
dev/helm/templates/ingress.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- $instance := required "instance is required" .Values.instance -}}
|
||||
{{- $host := required "ingress.host is required" .Values.ingress.host -}}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ .Release.Name | quote }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name | quote }}
|
||||
app.kubernetes.io/instance: {{ $instance | quote }}
|
||||
dev.mancave.link/instance: {{ $instance | quote }}
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
rules:
|
||||
- host: {{ $host | quote }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: {{ .Release.Name | quote }}
|
||||
port:
|
||||
number: {{ .Values.service.port }}
|
||||
Reference in New Issue
Block a user