Skip to content

Commit 168d035

Browse files
authored
Merge pull request #155 from kingdonb/update-ingress
chore(chart): update ingress-rule in chart
2 parents dbc4500 + b10f2ad commit 168d035

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
{{ if .Values.global.experimental_native_ingress }}
2-
apiVersion: extensions/v1beta1
2+
apiVersion: networking.k8s.io/v1
33
kind: Ingress
44
metadata:
5-
namespace: "{{ .Release.Namespace }}"
65
name: "controller-api-server-ingress-http"
76
labels:
87
app: "controller"
98
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
109
release: "{{ .Release.Name }}"
1110
heritage: "{{ .Release.Service }}"
1211
spec:
12+
{{- if .Values.ingress_class }}
13+
ingressClassName: {{ .Values.ingress_class }}
14+
{{- end }}
1315
rules:
1416
- host: deis.{{ .Values.platform_domain }}
1517
http:
1618
paths:
1719
- path: /
20+
pathType: Prefix
1821
backend:
19-
serviceName: deis-controller
20-
servicePort: 80
22+
service:
23+
name: deis-controller
24+
port:
25+
number: 80
2126
{{- end }}

charts/controller/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ k8s_api_verify_tls: "true"
1818
#
1919
# This will be the hostname that is used to build endpoints such as "deis.$HOSTNAME"
2020
platform_domain: ""
21+
# Set a value for ingressClassName, if IngressClass is needed.
22+
ingress_class: ""
2123

2224
global:
2325
# Set the storage backend

0 commit comments

Comments
 (0)