Fix ingress formal error

This commit is contained in:
lou-lan 2022-05-11 11:33:07 +08:00
parent eb25614b78
commit 2f70ee66f1
9 changed files with 66 additions and 31 deletions

View File

@ -241,8 +241,11 @@ spec:
http:
paths:
- backend:
serviceName: foo
servicePort: 80
service:
name: foo
port:
number: 80
pathType: Prefix
```
## Verify ExternalDNS works (Service example)

View File

@ -265,8 +265,11 @@ spec:
http:
paths:
- backend:
serviceName: foo
servicePort: 80
service:
name: foo
port:
number: 80
pathType: Prefix
```
## Verify ExternalDNS works (Service example)

View File

@ -387,9 +387,11 @@ spec:
http:
paths:
- backend:
serviceName: nginx-svc
servicePort: 80
path: /
service:
name: nginx-svc
port:
number: 80
pathType: Prefix
```
When using ExternalDNS with ingress objects it will automatically create DNS records based on host names specified in ingress objects that match the domain-filter argument in the externaldns deployment manifest. When those host names are removed or renamed the corresponding DNS records are also altered.

View File

@ -415,13 +415,16 @@ metadata:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: server.example.com
http:
paths:
- backend:
serviceName: nginx-svc
servicePort: 80
path: /
- host: server.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nginx-svc
port:
number: 80
```
When using external-dns with ingress objects it will automatically create DNS records based on host names specified in ingress objects that match the domain-filter argument in the external-dns deployment manifest. When those host names are removed or renamed the corresponding DNS records are also altered.

View File

@ -122,9 +122,11 @@ spec:
http:
paths:
- backend:
serviceName: my-awesome-service
servicePort: 8080
service:
name: my-awesome-service
port:
number: 8080
pathType: Prefix
```
As the DNS name `test-ingress.example.com` matches the filter, external-dns will create two records:

View File

@ -117,8 +117,11 @@ spec:
http:
paths:
- backend:
serviceName: nginx
servicePort: 80
service:
name: "nginx"
port:
number: 80
pathType: Prefix
---

View File

@ -222,8 +222,11 @@ spec:
http:
paths:
- backend:
serviceName: nginx
servicePort: 80
service:
name: nginx
port:
number: 80
pathType: Prefix
```
Again, after roughly two minutes check that a corresponding DNS record for your Ingress was created.
@ -471,8 +474,11 @@ spec:
http:
paths:
- backend:
serviceName: nginx
servicePort: 80
service:
name: nginx
port:
number: 80
pathType: Prefix
---
apiVersion: v1
kind: Service

View File

@ -306,8 +306,11 @@ spec:
http:
paths:
- backend:
serviceName: app
servicePort: 80
service:
name: app
port:
number: 80
pathType: Prefix
```
Then create private Service definition:
@ -327,8 +330,11 @@ spec:
http:
paths:
- backend:
serviceName: app
servicePort: 80
service:
name: app
port:
number: 80
pathType: Prefix
```
Additionally, you may leverage [cert-manager](https://github.com/jetstack/cert-manager) to automatically issue SSL certificates from [Let's Encrypt](https://letsencrypt.org/). To do that, request a certificate in public service definition:
@ -352,8 +358,11 @@ spec:
http:
paths:
- backend:
serviceName: app
servicePort: 80
service:
name: app
port:
number: 80
pathType: Prefix
tls:
- hosts:
- app.domain.com
@ -377,8 +386,11 @@ spec:
http:
paths:
- backend:
serviceName: app
servicePort: 80
service:
name: app
port:
number: 80
pathType: Prefix
tls:
- hosts:
- app.domain.com

View File

@ -251,6 +251,7 @@ spec:
- http:
paths:
- path: /apple
pathType: Prefix
backend:
service:
name: example-service