Commit Graph

50 Commits

Author SHA1 Message Date
Markus
c0a9eed521
feat(source): optional exclusion of unschedulable nodes (#5045)
* feat(source/node): Make exclusion of unschedulable Nodes configurable

This fixes a behavioral regression introduced in #4761, where
nodes that were previously added to DNS are removed when they are considered
unschedulable, for example due to automated maintenance tasks.

This change will introduce a new flag called `exclude-unschedulable`, which
defaults to `true` in order to keep in line with the current behavior.
However, it would also be reasonable to restore the initial behavior before

* Allow testing for expected log entries in testNodeSourceEndpoints

This commit adds the required logic to be able to test for
the existence (and absence) of certain log messages
in testNodeSourceEndpoints. As an example, this is implemented
for the tests around excludeUnschedulable.

A side effect of using LogsToBuffer is that tests can't run in
parallel due to the log buffer being shared across all
parallel test cases. As such, these specific tests are now executed
one after another.

* Ensure logging is only hooked for tests that require it

* Document new exclude-unschedulable flag for nodes source
2025-04-07 07:34:40 -07:00
Florian Forster
0a6adb041f
docs: Fix typo: grcp → grpc. 2025-03-27 15:28:27 +01:00
hjoshi123
df517cfc9b
detailed documentation with no-expose 2025-03-24 08:20:17 -06:00
hjoshi123
1bf31daf4c
edited docs and made new test 2025-03-19 21:38:52 -06:00
hjoshi123
1d61159155
docs: added documentation in node source 2025-03-18 08:01:06 -06:00
Michel Loiseleur
d5b403a9fd chore(release): updates kustomize & docs with v0.16.1
Signed-off-by: Michel Loiseleur <michel.loiseleur@traefik.io>
2025-03-15 15:50:00 +01:00
Steven Kreitzer
724b86b8b8
feat(source): fitler by gateway name (#5160)
* feat: filter by gateway name

Signed-off-by: Steven Kreitzer <skre@skre.me>

* address comments

* address comments

* address comments

---------

Signed-off-by: Steven Kreitzer <skre@skre.me>
2025-03-12 01:51:47 -07:00
Rich
7c23e01e31
feat(aws): always create AAAA alias records in route53 (#5111)
* First pass based on existing PR, what is currently on master and some
extra tests.

* Try to resolve AWS service documentation

* Add documentation on how to opt-out of AAAA record creation

* Address documentation concerns

* Add some IPv6 tests to sources

* Make recommended changes to documentation
2025-03-03 00:21:00 -08:00
Dan Markhasin
9c42a63714
Update docs/sources/service.md
Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
2025-02-18 19:36:01 +02:00
Dan Markhasin
0f1ebef614
Update docs/sources/service.md
Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
2025-02-16 13:30:30 +02:00
Dan Markhasin
ebb21a1bec updated MD files 2025-02-15 16:28:51 +02:00
Dan Markhasin
7651f9686e updated MD files 2025-02-15 16:26:10 +02:00
Dan Markhasin
b0bbe5142d update service.md, service.go 2025-02-11 15:30:50 +02:00
Dan Markhasin
dbe32272fc Merge branch 'master' into endpoints-informer
# Conflicts:
#	docs/sources/service.md
2025-02-10 22:49:31 +02:00
Michel Loiseleur
ac4049bf03
ci(docs): add markdown linters and editorconfig (#5055)
* ci(docs): add markdown linters

* fixes issues in md detected by the linter

* fix workflow

* pre commit

* add editor config

* fix test

* review
2025-02-09 14:07:56 -08:00
Dan Markhasin
40c3b45f61 update service.md 2025-02-03 09:52:35 +02:00
Kubernetes Prow Robot
a61780280d
Merge pull request #4782 from foyerunix/reverse-for-all-pods
feat(source): allow to register all pods and their associated PTR record
2025-01-28 07:51:24 -08:00
foyerunix
bf8c4c0ba6 Allow to register all pods and their associated PTR record
Add two new options:
- --ignore-non-host-network-pods
- --pod-source-domain

Combined toghether, they can be used to register the IPs
of all pods with their associated PTR record.

Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
2025-01-14 07:23:38 +00:00
visokoo
deac6f916e
Merge branch 'kubernetes-sigs:master' into add-f5-transport-server-source 2024-12-30 13:47:11 -08:00
Vivian Ta
6907ced44b fix: Update documentation for f5-transportserver with examples 2024-12-25 01:07:09 -08:00
visokoo
db9fc90eaa
Update docs/sources/f5-transportserver.md
Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
2024-12-25 00:43:44 -08:00
visokoo
2ac2600acb
Merge branch 'kubernetes-sigs:master' into add-f5-transport-server-source 2024-12-25 00:43:08 -08:00
Raffaele Di Fazio
a8351d1103 replace all versions to v0.15.1
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
2024-12-24 10:22:13 +01:00
Kubernetes Prow Robot
5f0147f33f
Merge pull request #4969 from mloiseleur/fix/typo
docs: fix typos in tutorials
2024-12-23 12:32:12 +01:00
Michel Loiseleur
15f350ef2a docs: fix reference to wrong field in service 2024-12-22 18:03:26 +01:00
Vivian Ta
8989e9d19f fix: Add f5-transportserver docs 2024-12-21 16:12:38 -08:00
juan-vg
cc937a36aa Move CRD-source doc to sources
* Also move example to CRD-source doc
2024-11-26 09:43:55 +01:00
juan-vg
71c5a05183 Remove extra line 2024-11-26 09:31:56 +01:00
juan-vg
ee79d0da01 Improve sources' docs to mention '--managed-record-types'
* Also add some CRD examples for AWS and Cloudflare
2024-11-18 14:09:39 +01:00
Kubernetes Prow Robot
2b93938cab
Merge pull request #4761 from n-Arno/master
source node: Skip unschedulable nodes
2024-10-10 15:20:31 +01:00
n-Arno
326ee0be69 source node: Skip unschedulable nodes 2024-09-20 21:17:01 +02:00
Oleksandr Simonov
dd19bedc37 fix typos 2024-09-06 13:32:41 +03:00
Oleksandr Simonov
5d7f75bb72 documentation 2024-09-06 13:32:39 +03:00
Raffaele Di Fazio
4117398643 Merge branch 'master' into raffo/docs-v0.15.0 2024-09-06 12:10:29 +02:00
Michel Loiseleur
7ae03cdfc7
docs: refactor title and organisation 2024-09-05 09:09:48 +02:00
Kubernetes Prow Robot
ccab9a95c5
Merge pull request #4469 from thameezb/feat-support-dual-stack-gateway-api
feat: support dual stack for gateway api
2024-09-01 18:40:45 +01:00
Kyle
38178940a3
feat: add annotation and label filters to Ambassador Host Source (#2633)
* Add annotation filter to Ambassador Host Source

This change makes the Ambassador Host source respect the External-DNS annotationFilter allowing for an Ambassador Host resource to specify what External-DNS deployment to use when there are multiple External-DNS deployments within the same cluster. Before this change if you had two External-DNS deployments within the cluster and used the Ambassador Host source the first External-DNS to process the resource will create the record and not the one that was specified in the filter annotation.

I added the `filterByAnnotations` function so that it matched the same way the other sources have implemented annotation filtering. I didn't add the controller check only because I wanted to keep this change to implementing the annotationFilter.

Example: Create two External-DNS deployments 1 public and 1 private and set the Ambassador Host to use the public External-DNS using the annotation filter.

```
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: external-dns-private
spec:
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: external-dns-private
  template:
    metadata:
      labels:
        app: external-dns-private
      annotations:
        iam.amazonaws.com/role: {ARN} # AWS ARN role
    spec:
      serviceAccountName: external-dns
      containers:
      - name: external-dns
        image: k8s.gcr.io/external-dns/external-dns:latest
        args:
        - --source=ambassador-host
        - --domain-filter=example.net # will make ExternalDNS see only the hosted zones matching provided domain, omit to process all available hosted zones
        - --provider=aws
        - --policy=upsert-only # would prevent ExternalDNS from deleting any records, omit to enable full synchronization
        - --aws-zone-type=private # only look at public hosted zones (valid values are public, private or no value for both)
        - --registry=txt
        - --txt-owner-id= {Hosted Zone ID} # Insert Route53 Hosted Zone ID here
        - --annotation-filter=kubernetes.io/ingress.class in (private)
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: external-dns-public
spec:
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: external-dns-public
  template:
    metadata:
      labels:
        app: external-dns-public
      annotations:
        iam.amazonaws.com/role: {ARN} # AWS ARN role
    spec:
      serviceAccountName: external-dns
      containers:
      - name: external-dns
        image: k8s.gcr.io/external-dns/external-dns:latest
        args:
        - --source=ambassador-host
        - --domain-filter=example.net # will make ExternalDNS see only the hosted zones matching provided domain, omit to process all available hosted zones
        - --provider=aws
        - --policy=upsert-only # would prevent ExternalDNS from deleting any records, omit to enable full synchronization
        - --aws-zone-type= # only look at public hosted zones (valid values are public, private or no value for both)
        - --registry=txt
        - --txt-owner-id= {Hosted Zone ID} # Insert Route53 Hosted Zone ID here
        - --annotation-filter=kubernetes.io/ingress.class in (public)
---
apiVersion: getambassador.io/v3alpha1
  kind: Host
  metadata:
    name: your-hostname
    annotations:
      external-dns.ambassador-service: emissary-ingress/emissary
      kubernetes.io/ingress.class: public
  spec:
		acmeProvider:
      authority: none
		hostname: your-hostname.example.com
```

Fixes kubernetes-sigs/external-dns#2632

* Add Label filltering for Ambassador Host source

Currently the `--label-filter` flag can only be used to filter CRDs, Ingress, Service and Openshift Route objects which match the label selector passed through that flag. This change extends the functionality to the Ambassador Host type object.

When the flag is not specified the default value is `labels.Everything()` which is an empty string, the same as before. An annotation based filter is inefficient because the filtering has to be done in the controller instead of the API server like with label filtering. The Annotation based filtering has been left in for legacy reasons so the Ambassador Host source can be used inconjunction with the other sources that don't yet support label filltering.

It is possible to use label based filltering with annotation based filltering so you can initially filter by label then filter the returned hosts by annotation. This is not recomended

* Update Ambassador Host source docs

Add that the Ambassador Host source now supports both annotation and label filltering.
2024-08-28 18:02:57 +01:00
ThameezBo
e9968d839c
fix: update docs as per review 2024-07-14 14:17:55 +02:00
ThameezBo
fdb2475892
fix: docs 2024-05-13 22:42:16 +02:00
ThameezBo
bd33e5e277
feat: support dualstack Gateway route resources 2024-05-13 22:41:42 +02:00
Nandor Galambosi
d7b0dfd781 service source uses externalIPs in ExternalName type if available 2023-10-29 10:58:46 +01:00
Kubernetes Prow Robot
f0b6260012
Merge pull request #3940 from johngmyers/node-filter
Support --label-filter for node source
2023-09-26 16:55:44 -07:00
Kubernetes Prow Robot
9ad15cf76f
Merge pull request #3938 from johngmyers/internal-service
Use ServiceIP for ClusterIP Services with internal-hostname annotation
2023-09-26 16:55:37 -07:00
John Gardiner Myers
75639b759c Support --label-filter for node source 2023-09-20 08:56:26 -07:00
John Gardiner Myers
7044fdf040 Use ServiceIP for ClusterIP Services with internal-hostname annotation 2023-09-16 17:33:30 -07:00
John Gardiner Myers
6b230c6c44 Document the Gateway sources 2023-09-16 14:18:16 -07:00
John Gardiner Myers
77fe3a23c8 Switch from bulleted to numbered lists 2023-09-06 17:47:26 -07:00
John Gardiner Myers
47828f196e
Apply suggestions from code review
Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
2023-09-06 17:16:23 -07:00
John Gardiner Myers
da3fe0463c Document the Service source 2023-09-04 11:44:08 -07:00
John Gardiner Myers
0eb91e358d Document the Ingress source 2023-08-04 04:06:02 -07:00