docs(chore): Manual IP config tabs merge (part 3)
This wraps the two tabs in an `example` admonition, then indents content correctly. No other changes to minimize diff noise.
This commit is contained in:
parent
c1a9a7fd6a
commit
fc0ef0f996
|
@ -362,76 +362,76 @@ The major problem with exposing DMS to the outside world in Kubernetes is to [pr
|
||||||
1. You can dedicate a **publicly routable IP** address for the DMS configured `Service`.
|
1. You can dedicate a **publicly routable IP** address for the DMS configured `Service`.
|
||||||
2. A dedicated IP is required to allow your mail server to have matching `A` and `PTR` records (_which other mail servers will use to verify trust when they receive mail sent from your DMS instance_).
|
2. A dedicated IP is required to allow your mail server to have matching `A` and `PTR` records (_which other mail servers will use to verify trust when they receive mail sent from your DMS instance_).
|
||||||
|
|
||||||
**Example**
|
!!! example
|
||||||
|
|
||||||
=== "External-IP Service"
|
=== "External-IP Service"
|
||||||
|
|
||||||
The DMS `Service` is configured with an "[external IP][Kubernetes-network-external-ip]" manually. Append your externally reachable IP address to `spec.externalIPs`.
|
The DMS `Service` is configured with an "[external IP][Kubernetes-network-external-ip]" manually. Append your externally reachable IP address to `spec.externalIPs`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
name: mailserver
|
name: mailserver
|
||||||
labels:
|
labels:
|
||||||
app: mailserver
|
app: mailserver
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: mailserver
|
app: mailserver
|
||||||
ports:
|
ports:
|
||||||
- name: smtp
|
- name: smtp
|
||||||
port: 25
|
port: 25
|
||||||
targetPort: smtp
|
targetPort: smtp
|
||||||
# ...
|
# ...
|
||||||
|
|
||||||
externalIPs:
|
externalIPs:
|
||||||
- 10.20.30.40
|
- 10.20.30.40
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Load-Balancer"
|
=== "Load-Balancer"
|
||||||
|
|
||||||
The config differs depending on your choice of load balancer. This example uses [MetalLB][metallb-web].
|
The config differs depending on your choice of load balancer. This example uses [MetalLB][metallb-web].
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
name: mailserver
|
name: mailserver
|
||||||
labels:
|
labels:
|
||||||
app: mailserver
|
app: mailserver
|
||||||
annotations:
|
annotations:
|
||||||
metallb.universe.tf/address-pool: mailserver
|
metallb.universe.tf/address-pool: mailserver
|
||||||
|
|
||||||
# ...
|
# ...
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: metallb.io/v1beta1
|
apiVersion: metallb.io/v1beta1
|
||||||
kind: IPAddressPool
|
kind: IPAddressPool
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
name: mail
|
name: mail
|
||||||
namespace: metallb-system
|
namespace: metallb-system
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
addresses: [ <YOUR PUBLIC DEDICATED IP IN CIDR NOTATION> ]
|
addresses: [ <YOUR PUBLIC DEDICATED IP IN CIDR NOTATION> ]
|
||||||
autoAssign: true
|
autoAssign: true
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: metallb.io/v1beta1
|
apiVersion: metallb.io/v1beta1
|
||||||
kind: L2Advertisement
|
kind: L2Advertisement
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
name: mail
|
name: mail
|
||||||
namespace: metallb-system
|
namespace: metallb-system
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
ipAddressPools: [ mailserver ]
|
ipAddressPools: [ mailserver ]
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Host network"
|
=== "Host network"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue