diff --git a/helm/templates/ingress.yaml b/helm/templates/ingress.yaml new file mode 100644 index 0000000..ff03927 --- /dev/null +++ b/helm/templates/ingress.yaml @@ -0,0 +1,17 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: "{{ $.Release.Name }}-{{ $.Chart.Name }}" + annotations: {} +spec: + rules: + - host: {{.Values.ingress.host }} + http: + paths: + - backend: + service: + name: "{{ $.Release.Name }}-{{ $.Chart.Name }}" + port: + number: {{ .Values.port }} + path: / + pathType: Prefix diff --git a/helm/values.yaml b/helm/values.yaml index 001646e..3825da4 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -37,3 +37,5 @@ app: securityContext: privileged: false +ingress: + host: null