Fix apiVersion for ingress-controller-nginx examples
This commit is contained in:
parent
d3422bf388
commit
96c8229bea
@ -11,7 +11,25 @@ helm upgrade --install ingress-nginx ingress-nginx --repo https://kubernetes.g
|
||||
Example usage:
|
||||
|
||||
```yaml
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ingress-mandelmapper
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: mandelmap.home.stevenpolley.net
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: mandelmapper
|
||||
port:
|
||||
number: 6161
|
||||
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ingress-myservicea
|
||||
@ -23,10 +41,12 @@ spec:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: myservicea
|
||||
servicePort: 8080
|
||||
service:
|
||||
name: myservicea
|
||||
port:
|
||||
number: 8080
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ingress-myserviceb
|
||||
@ -38,8 +58,10 @@ spec:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: myserviceb
|
||||
servicePort: 8443
|
||||
service:
|
||||
name: myserviceb
|
||||
port:
|
||||
number: 8443
|
||||
tls:
|
||||
- hosts:
|
||||
- myserviceb.foo.org
|
||||
|
Loading…
Reference in New Issue
Block a user