Skip to content

Commit febb784

Browse files
committed
add config examples to docs
1 parent dcbf202 commit febb784

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

docs/config/dns-service-config.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,101 @@ purposeSelector:
119119
name: foo
120120
```
121121
Matches all `Cluster` resources that do not have `foo` in their purpose list.
122+
123+
### Configuration Examples
124+
125+
All examples below use a purpose selector that matches all `Cluster` resources which have `test` among their purposes.
126+
127+
###### Example 1 - Git Repo with DNS Secret
128+
129+
```yaml
130+
apiVersion: dns.openmcp.cloud/v1alpha1
131+
kind: DNSServiceConfig
132+
metadata:
133+
name: dns
134+
namespace: openmcp-system
135+
spec:
136+
secretsToCopy:
137+
toTargetCluster:
138+
- source:
139+
name: route53-access
140+
141+
externalDNSSource:
142+
chartName: charts/external-dns
143+
git:
144+
url: https://github.com/kubernetes-sigs/external-dns
145+
interval: 1h
146+
ref:
147+
tag: v0.19.0
148+
149+
externalDNSForPurposes:
150+
- name: test
151+
purposeSelector:
152+
name: test
153+
helmValues:
154+
provider:
155+
name: aws
156+
env:
157+
- name: AWS_DEFAULT_REGION
158+
value: eu-central-1
159+
extraVolumes:
160+
- name: aws-credentials
161+
secret:
162+
secretName: route53-access
163+
extraVolumeMounts:
164+
- name: aws-credentials
165+
mountPath: /.aws
166+
readOnly: true
167+
```
168+
169+
###### Example 2 - OCI Repo with Auth Secret
170+
171+
```yaml
172+
apiVersion: dns.openmcp.cloud/v1alpha1
173+
kind: DNSServiceConfig
174+
metadata:
175+
name: dns
176+
namespace: openmcp-system
177+
spec:
178+
secretsToCopy:
179+
toPlatformCluster:
180+
- source:
181+
name: ghcr-access
182+
183+
externalDNSSource:
184+
oci:
185+
url: oci://ghcr.io/my-user/external-dns
186+
interval: 1h
187+
ref:
188+
tag: "1.19.0"
189+
secretRef:
190+
name: ghcr-access
191+
192+
externalDNSForPurposes:
193+
- name: test
194+
purposeSelector:
195+
name: test
196+
helmValues: {}
197+
```
198+
199+
###### Example 3 - Helm Repo
200+
201+
```yaml
202+
apiVersion: dns.openmcp.cloud/v1alpha1
203+
kind: DNSServiceConfig
204+
metadata:
205+
name: dns
206+
namespace: openmcp-system
207+
spec:
208+
externalDNSSource:
209+
chartName: [email protected]
210+
helm:
211+
url: https://kubernetes-sigs.github.io/external-dns/
212+
interval: 1h
213+
214+
externalDNSForPurposes:
215+
- name: test
216+
purposeSelector:
217+
name: test
218+
helmValues: {}
219+
```

0 commit comments

Comments
 (0)