Fix apiVersion for ingress-controller-nginx examples

This commit is contained in:
Steven Polley 2023-12-23 10:02:49 -07:00
parent d3422bf388
commit 96c8229bea

View File

@ -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