2023-05-24 19:12:50 +08:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: IngressClass
|
|
|
|
metadata:
|
|
|
|
name: {{ ingress_nginx_class }}
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
|
|
{% if ingress_nginx_default %}
|
|
|
|
annotations:
|
|
|
|
ingressclass.kubernetes.io/is-default-class: "true"
|
2023-06-01 14:27:45 +08:00
|
|
|
{% endif %}
|
2023-05-24 19:12:50 +08:00
|
|
|
spec:
|
2023-06-01 14:27:45 +08:00
|
|
|
controller: k8s.io/ingress-nginx
|