From c1a9a7fd6af2fcc99ac619aea041c16de46b947c Mon Sep 17 00:00:00 2001 From: polarathene <5098581+polarathene@users.noreply.github.com> Date: Sun, 10 Mar 2024 21:53:07 +1300 Subject: [PATCH] docs(chore): Manual IP config tabs merge (part 2) The external IP for DMS `Service` is a simpler configuration than the Load Balancer one. Shift it to be presented first. --- docs/content/config/advanced/kubernetes.md | 54 +++++++++++----------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/docs/content/config/advanced/kubernetes.md b/docs/content/config/advanced/kubernetes.md index cb2f10cd..1e86e425 100644 --- a/docs/content/config/advanced/kubernetes.md +++ b/docs/content/config/advanced/kubernetes.md @@ -364,6 +364,33 @@ The major problem with exposing DMS to the outside world in Kubernetes is to [pr **Example** + === "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`. + + ```yaml + --- + apiVersion: v1 + kind: Service + + metadata: + name: mailserver + labels: + app: mailserver + + spec: + selector: + app: mailserver + ports: + - name: smtp + port: 25 + targetPort: smtp + # ... + + externalIPs: + - 10.20.30.40 + ``` + === "Load-Balancer" The config differs depending on your choice of load balancer. This example uses [MetalLB][metallb-web]. @@ -406,33 +433,6 @@ The major problem with exposing DMS to the outside world in Kubernetes is to [pr ipAddressPools: [ mailserver ] ``` - === "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`. - - ```yaml - --- - apiVersion: v1 - kind: Service - - metadata: - name: mailserver - labels: - app: mailserver - - spec: - selector: - app: mailserver - ports: - - name: smtp - port: 25 - targetPort: smtp - # ... - - externalIPs: - - 10.20.30.40 - ``` - === "Host network" ???+ abstract "Advantages / Disadvantages"