Update ingress to newer resource
This commit is contained in:
parent
a062672e2f
commit
f21087b791
12
deploy.yml
12
deploy.yml
|
@ -1,23 +1,27 @@
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/tls-acme: "true"
|
kubernetes.io/tls-acme: "true"
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||||
name: slides-ingress
|
name: slides-ingress
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- wi-pm2-tut.informatik.haw-hamburg.de
|
- wi-pm2-tut.informatik.haw-hamburg.de
|
||||||
secretName: slides-secret-new
|
secretName: slides-secret
|
||||||
rules:
|
rules:
|
||||||
- host: wi-pm2-tut.informatik.haw-hamburg.de
|
- host: wi-pm2-tut.informatik.haw-hamburg.de
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
serviceName: slides
|
service:
|
||||||
servicePort: 80
|
name: slides
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue