Skip to content

Commit f7aaa23

Browse files
authored
fix: use the correct apiVersion for the oauth proxy ingress (#38)
Signed-off-by: Georgi Ivanov <georgi@ouzi.dev> Signed-off-by: Georgi Ivanov <georgi@ouzi.dev>
1 parent 9de9b9f commit f7aaa23

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/05-oauthproxy/00-manifests/06-ingress.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
---
2-
apiVersion: extensions/v1beta1
2+
apiVersion: networking.k8s.io/v1
33
kind: Ingress
44
metadata:
55
annotations:
66
cert-manager.io/cluster-issuer: letsencrypt-prod
77
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
8-
kubernetes.io/ingress.class: nginx
98
name: oauth2-proxy
109
namespace: {{ .oauthproxy.namespace }}
1110
spec:
11+
ingressClassName: nginx
1212
rules:
1313
- host: oauth2.{{ .global.basedomain }}
1414
http:
1515
paths:
1616
- backend:
17-
serviceName: oauth2-proxy
18-
servicePort: http
17+
service:
18+
name: oauth2-proxy
19+
port:
20+
name: http
1921
path: /
22+
pathType: Prefix
2023
tls:
2124
- hosts:
2225
- oauth2.{{ .global.basedomain }}

0 commit comments

Comments
 (0)