Skip to content

Commit 9513753

Browse files
docs(release): update release docs
Signed-off-by: ivan katliarchuk <[email protected]>
1 parent 4ac0410 commit 9513753

File tree

4 files changed

+187
-0
lines changed

4 files changed

+187
-0
lines changed

docs/faq.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,3 +320,18 @@ FATA[0060] failed to sync cache: timed out waiting for the condition
320320

321321
You may not have the correct permissions required to query all the necessary resources in your kubernetes cluster. Specifically, you may be running in a `namespace` that you don't have these permissions in.
322322
By default, commands are run against the `default` namespace. Try changing this to your particular namespace to see if that fixes the issue.
323+
324+
## When we plan to release a v1.0, our first breaking release?
325+
326+
> We should really get away from 0.x only if we have APIs that we can declare stable.
327+
328+
The jump to `1.0` isn’t just symbolic—it’s a promise. If the `External-DNS` maintainers can confidently say that config structures, CRDs, and flags won’t break unexpectedly, that’s the moment to move to `1.0`
329+
330+
Before moving to 1.0, review and lock down:
331+
332+
- CRD schemas (especially DNSEndpoint and ExternalDNS if applicable)
333+
- Command-line flags and configuration behavior
334+
- Environment variables and metrics
335+
- Provider interface stability (e.g., AWS, GCP, Cloudflare, etc.)
336+
- Helm chart values — these often break user setups more than code changes
337+
- Once these are considered stable and documented, then a 1.0 tag makes sense.

docs/release.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ These are the conventions that we will be using for releases following `0.7.6`:
2828

2929
- **Major** version should be upgraded if we introduce breaking changes.
3030

31+
### Semantic Versioning Discipline
32+
33+
External-DNS follows semantic versioning principles:
34+
35+
- `0.x` → pre-stable, APIs subject to change.
36+
- `1.x` → stable APIs and core functionality; breaking changes require a major bump.
37+
3138
## How to release a new image
3239

3340
### Prerequisite

docs/version-update-playbook.md

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# 🧭 External-DNS Version Upgrade Playbook
2+
3+
## Overview
4+
5+
This playbook describes the best practices and steps to safely upgrade **External-DNS** in Kubernetes clusters.
6+
7+
Upgrading External-DNS involves validating configuration compatibility, testing changes, and ensuring no unintended DNS record modifications occur.
8+
9+
> Note; We strongly encourage the community to help the maintainers validate changes before they are merged or released.
10+
> Early validation and feedback are key to ensuring stable upgrades for everyone.
11+
12+
---
13+
14+
## 1. Review Release Notes
15+
16+
- Visit the official [External-DNS Releases](https://github.com/kubernetes-sigs/external-dns/releases).
17+
- Review all versions between your current and target release.
18+
- Pay attention to:
19+
- **Breaking changes** (flags, CRD fields, provider behaviors). Not all changes could be captured as breaking changes.
20+
- **Deprecations**
21+
- **Provider-specific updates**
22+
- **Bug fixes**
23+
24+
> ⚠️ Breaking CLI flag or annotation changes are common in `0.x` releases.
25+
26+
---
27+
28+
## 2. Review Helm Chart and Configuration
29+
30+
If using Helm:
31+
32+
- Compare your Helm chart version to the version supporting the new app release.
33+
- Check for:
34+
- `values.yaml` structural changes
35+
- Default arguments under `extraArgs`
36+
- Updates to RBAC, ServiceAccounts, or Deployment templates
37+
38+
---
39+
40+
## 3. Check Compatibility
41+
42+
Before upgrading, confirm:
43+
44+
- The new version supports your **Kubernetes version** (e.g., 1.25+).
45+
- The **DNS provider** integration you use is still supported.
46+
47+
> 💡 Watch out for deprecated Kubernetes API versions (e.g., `v1/endpoints``discovery.k8s.io/v1/endpointslices`).
48+
49+
---
50+
51+
## 4. Test in Non-Production or with Dry Run flag
52+
53+
Run the new External-DNS version in a **staging cluster**.
54+
55+
- Use `--dry-run` mode to preview intended changes:
56+
- Validate logs for any unexpected record changes.
57+
- Ensure `external-dns` correctly identifies and plans updates without actually applying them.
58+
- **submit a feature request if `dry-run` is not supported for a specific case
59+
60+
```yaml
61+
args:
62+
- --dry-run
63+
```
64+
65+
---
66+
67+
5. Backup DNS State
68+
69+
Before applying the upgrade, take a snapshot of your DNS zone(s).
70+
71+
**Example (AWS Route53):**
72+
73+
```sh
74+
aws route53 list-resource-record-sets --hosted-zone-id ZONE_ID > backup.json
75+
```
76+
77+
Use equivalent tooling for your DNS provider (Cloudflare, Google Cloud DNS, etc.).
78+
79+
> Having a backup ensures you can restore records if External-DNS misconfigures entries and you have a solid DR solution.
80+
81+
6. Perform a Controlled Rollout
82+
83+
Instead of upgrading in-place, use a phased rollout across multiple environments or clusters.
84+
85+
Recommended Approaches
86+
87+
a. Multi-Cluster Rollout and Progression
88+
89+
1. Deploy the new `external-dns` version first in sandbox, then staging, and finally production.
90+
2. Monitor each environment for correct record syncing and absence of unexpected deletions.
91+
3. Promote the configuration only after validation in the lower environment.
92+
93+
b. Read-Only Parallel Deployment
94+
95+
1. Run a second External-DNS instance (e.g., external-dns-readonly) with:
96+
97+
```yaml
98+
args:
99+
- --dry-run
100+
- ...other flags
101+
```
102+
103+
1. Observe logs and planned record updates to confirm behavior.
104+
2. Observe logs and planned record updates to confirm behavior.
105+
106+
7. Monitor and Validate
107+
108+
After deploying the new version, continuously observe both application logs and DNS synchronization metrics to ensure External-DNS behaves as expected.
109+
110+
**Logging**
111+
112+
Check logs for anomalies or unexpected record changes:
113+
114+
```yaml
115+
kubectl logs -n external-dns deploy/external-dns --tail=100 -f
116+
```
117+
118+
Look for:
119+
120+
- Creating record or Deleting record entries — validate these match expected changes.
121+
- `WARN` or `ERROR` messages, particularly related to provider authentication or permissions.
122+
- `TXT` registry conflicts (ownership issues between multiple instances).
123+
124+
If using a centralized logging stack (e.g., Loki, Elasticsearch, or CloudWatch Logs):
125+
126+
- Create a temporary dashboard or saved query filtering for "Creating record" OR "Deleting record".
127+
- Correlate `external-dns` logs with DNS provider API logs to detect mismatches.
128+
129+
**Metrics and Observability**
130+
131+
Check metrics exposed by External-DNS (if Prometheus scraping is enabled):
132+
133+
Focus on:
134+
135+
- Error rate (*_errors_total)
136+
- Number of syncs per interval (*_sync_duration_seconds)
137+
- Provider API call spikes
138+
139+
Example PromQL checks:
140+
141+
```promql
142+
rate(external_dns_registry_errors_total[5m]) > 0
143+
rate(external_dns_provider_requests_total{operation="DELETE"}[5m])
144+
```
145+
146+
## External Verification
147+
148+
Ideally, you should have a set of automated tests
149+
150+
Query key DNS records directly:
151+
152+
```sh
153+
dig +short myapp.example.com
154+
nslookup api.staging.example.com
155+
```
156+
157+
Ensure that A, CNAME, and TXT records remain correct and point to expected endpoints.
158+
159+
Additional Tips
160+
161+
- Automate upgrade testing with CI/CD pipelines.
162+
- Maintain clear CHANGELOGs and migration notes for internal users.
163+
- Tag known good versions in Git or Helm values for rollback.
164+
- Avoid skipping multiple minor versions when possible.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ nav:
1717
- Code of Conduct: code-of-conduct.md
1818
- License: LICENSE.md
1919
- Providers: docs/providers.md
20+
- Version Update: docs/version-update-playbook.md
2021
- Tutorials: docs/tutorials/*
2122
- Annotations:
2223
- About: docs/annotations/annotations.md

0 commit comments

Comments
 (0)