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:
|
Example usage:
|
||||||
|
|
||||||
```yaml
|
```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
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: ingress-myservicea
|
name: ingress-myservicea
|
||||||
@ -23,10 +41,12 @@ spec:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
backend:
|
backend:
|
||||||
serviceName: myservicea
|
service:
|
||||||
servicePort: 8080
|
name: myservicea
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: ingress-myserviceb
|
name: ingress-myserviceb
|
||||||
@ -38,8 +58,10 @@ spec:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
backend:
|
backend:
|
||||||
serviceName: myserviceb
|
service:
|
||||||
servicePort: 8443
|
name: myserviceb
|
||||||
|
port:
|
||||||
|
number: 8443
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- myserviceb.foo.org
|
- myserviceb.foo.org
|
||||||
|
Loading…
Reference in New Issue
Block a user