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: http:
paths: paths:
- backend: - backend:
serviceName: foo service:
servicePort: 80 name: foo
port:
number: 80
pathType: Prefix
``` ```
## Verify ExternalDNS works (Service example) ## Verify ExternalDNS works (Service example)

View File

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

View File

@ -387,9 +387,11 @@ spec:
http: http:
paths: paths:
- backend: - backend:
serviceName: nginx-svc service:
servicePort: 80 name: nginx-svc
path: / 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. 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 kubernetes.io/ingress.class: nginx
spec: spec:
rules: rules:
- host: server.example.com - host: server.example.com
http: http:
paths: paths:
- backend: - path: /
serviceName: nginx-svc pathType: Prefix
servicePort: 80 backend:
path: / 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. 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: http:
paths: paths:
- backend: - backend:
serviceName: my-awesome-service service:
servicePort: 8080 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: 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: http:
paths: paths:
- backend: - backend:
serviceName: nginx service:
servicePort: 80 name: "nginx"
port:
number: 80
pathType: Prefix
--- ---

View File

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

View File

@ -306,8 +306,11 @@ spec:
http: http:
paths: paths:
- backend: - backend:
serviceName: app service:
servicePort: 80 name: app
port:
number: 80
pathType: Prefix
``` ```
Then create private Service definition: Then create private Service definition:
@ -327,8 +330,11 @@ spec:
http: http:
paths: paths:
- backend: - backend:
serviceName: app service:
servicePort: 80 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: 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: http:
paths: paths:
- backend: - backend:
serviceName: app service:
servicePort: 80 name: app
port:
number: 80
pathType: Prefix
tls: tls:
- hosts: - hosts:
- app.domain.com - app.domain.com
@ -377,8 +386,11 @@ spec:
http: http:
paths: paths:
- backend: - backend:
serviceName: app service:
servicePort: 80 name: app
port:
number: 80
pathType: Prefix
tls: tls:
- hosts: - hosts:
- app.domain.com - app.domain.com

View File

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