@@ -1,4 +1,4 @@
-{{- if .Values.ingress.create -}}
+{{- if and (.Values.ingress.create) (eq .Values.ingress.type "traefik") -}}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
kind: ClusterRoleBinding
@@ -9,21 +9,3 @@ spec:
- name: hue
port: 8888
type: NodePort
----
-apiVersion: extensions/v1beta1
-kind: Ingress
-metadata:
- annotations:
- kubernetes.io/ingress.class: traefik
-spec:
- rules:
- - host: {{ .Values.domain }}
- http:
- paths:
- - path: /
- backend:
- serviceName: hue
- servicePort: hue
-{{- end -}}