rancher-partner-charts/charts/f5/nginx-ingress/templates/controller-ingress-class.yaml

15 lines
428 B
YAML
Raw Normal View History

{{ if .Values.controller.ingressClass.create }}
2021-10-07 10:09:44 +00:00
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
name: {{ .Values.controller.ingressClass.name }}
labels:
{{- include "nginx-ingress.labels" . | nindent 4 }}
{{- if .Values.controller.ingressClass.setAsDefaultIngress }}
2021-10-07 10:09:44 +00:00
annotations:
ingressclass.kubernetes.io/is-default-class: "true"
{{- end }}
spec:
controller: nginx.org/ingress-controller
{{ end }}