migrated Ingresses to nginx 1.0.0

https://blog.hycorve.com/migrating-from-ingress-networking-k8s-io-v1beta1-to-v1/
This commit is contained in:
2021-09-21 18:53:33 +02:00
parent 90e89bf867
commit 82adc0d6ae
16 changed files with 1067 additions and 151 deletions

View File

@@ -52,18 +52,24 @@ spec:
selector:
app: apt-cacher-ng
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: apt-cacher-ng
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: apt-cache.lan
http:
paths:
- backend:
serviceName: apt-cacher-ng
servicePort: 3142
- path: /
pathType: Prefix
backend:
service:
name: apt-cacher-ng
port:
number: 3142
---
apiVersion: v1
kind: PersistentVolumeClaim