Skip to content

render ingress

pablosanchezpaz edited this page Mar 1, 2021 · 3 revisions

Basic structure

name: <ingress_name>
rules_path:
-path: /
  service:  <ingress_service>
  port:  <ingress_port>

Example ingress

{{- define "myingress.ingress.data" -}}
name: {{ .Release.Name }}-ingress
rules_path:
- path: /{{ .Release.Name }}
  service: {{ .Release.Name }}-service
  port: 80
{{- end -}}
{{ include "ph.ingress.render" (include "myingress.ingress.data" . | fromYaml )  }}

Clone this wiki locally