Skip to content

Commit 15d8842

Browse files
rboRobert Bohne
authored andcommitted
Fix linter
1 parent 1ba5151 commit 15d8842

2 files changed

Lines changed: 42 additions & 42 deletions

File tree

content/cluster-configuration/external-dns/index.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,23 @@ key "openshift-external-dns" {
4141
};
4242

4343
```
44-
### Allow DNS updates and zone transfer for the key:
44+
45+
### Allow DNS updates and zone transfer for the key
4546

4647
Select the zone you want to manage, in my example `.disco.local`:
4748

48-
* Enable `Dynamic update`
49-
* Add `grant openshift-external-dns subdomain disco.local ANY ;` to BIND update policy
50-
Details about the policy configuration you can [here](https://bind9.readthedocs.io/en/v9.16.20/reference.html#dynamic-update-policies)
49+
* Enable `Dynamic update`
50+
* Add `grant openshift-external-dns subdomain disco.local ANY ;` to BIND update policy
51+
Details about the policy configuration you can [here](https://bind9.readthedocs.io/en/v9.16.20/reference.html#dynamic-update-policies)
5152

5253
![Screenshot](ipa.png)
5354

54-
* Configure `Allow transfer` is not possible via WebUI. [Because](https://www.freeipa.org/page/Howto/DNS_updates_and_zone_transfers_with_TSIG)
55+
* Configure `Allow transfer` is not possible via WebUI. [Because](https://www.freeipa.org/page/Howto/DNS_updates_and_zone_transfers_with_TSIG)
5556

5657
??? example "ldap search example"
5758

5859
At the ipa server
60+
5961
```bash
6062
# kinit admin
6163
Password for admin@DISCO.LOCAL:
@@ -113,6 +115,7 @@ based on [Configuring RFC2136 provider](https://github.com/kubernetes-sigs/exter
113115
--8<-- "content/cluster-configuration/external-dns/deployment/clusterrolebinding.yaml"
114116
--8<-- "content/cluster-configuration/external-dns/deployment/deployment.yaml"
115117
```
118+
116119
=== "oc apply -k ...."
117120
118121
```bash
@@ -127,7 +130,7 @@ oc logs -n infra-external-dns deployment/external-dns
127130
128131
## Example deployment
129132
130-
* Required MetalLB or support of service type LoadBalancer.
133+
* Required MetalLB or support of service type LoadBalancer.
131134
132135
```bash
133136
oc new-project external-dns-demo

content/deploy/deployment-simple-nginx.yaml

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,38 @@ spec:
2020
- name: docroot
2121
emptyDir: {}
2222
containers:
23-
- image: registry.access.redhat.com/ubi8/nginx-120
24-
name: nginx
25-
securityContext:
26-
readOnlyRootFilesystem: false
27-
resources:
28-
limits:
29-
ephemeral-storage: 128Mi
30-
cpu: 1
31-
memory: "128Mi"
32-
requests:
33-
ephemeral-storage: 128Mi
34-
cpu: 1
35-
memory: "128Mi"
36-
volumeMounts:
37-
- name: docroot
38-
mountPath: /opt/app-root/src/
39-
env:
40-
- name: POD_NAME
41-
valueFrom:
42-
fieldRef:
43-
fieldPath: metadata.name
44-
command:
45-
- /bin/sh
46-
- -c
47-
- |
48-
49-
set -x
50-
51-
echo "Greetings from $POD_NAME" >> /opt/app-root/src/index.html
52-
/usr/libexec/s2i/run
23+
- image: registry.access.redhat.com/ubi8/nginx-120
24+
name: nginx
25+
securityContext:
26+
readOnlyRootFilesystem: false
27+
resources:
28+
limits:
29+
ephemeral-storage: 128Mi
30+
cpu: 1
31+
memory: "128Mi"
32+
requests:
33+
ephemeral-storage: 128Mi
34+
cpu: 1
35+
memory: "128Mi"
36+
volumeMounts:
37+
- name: docroot
38+
mountPath: /opt/app-root/src/
39+
env:
40+
- name: POD_NAME
41+
valueFrom:
42+
fieldRef:
43+
fieldPath: metadata.name
44+
command:
45+
- /bin/sh
46+
- -c
47+
- |
5348
49+
set -x
5450
51+
echo "Greetings from $POD_NAME" >> /opt/app-root/src/index.html
52+
/usr/libexec/s2i/run
5553
triggers:
56-
- type: ConfigChange
54+
- type: ConfigChange
5755
---
5856
apiVersion: v1
5957
kind: Service
@@ -63,10 +61,10 @@ metadata:
6361
name: simple-nginx
6462
spec:
6563
ports:
66-
- name: 8080-8080
67-
port: 8080
68-
protocol: TCP
69-
targetPort: 8080
64+
- name: 8080-8080
65+
port: 8080
66+
protocol: TCP
67+
targetPort: 8080
7068
selector:
7169
app: simple-nginx
7270
sessionAffinity: None
@@ -88,4 +86,3 @@ spec:
8886
tls:
8987
termination: Edge
9088
insecureEdgeTerminationPolicy: Redirect
91-

0 commit comments

Comments
 (0)