Assign FQDN to MetalLB¶
In this section you will assign an FQDN to your MetalLB Load Balancer.
Fast Forward
If you have already assigned an FQDN for your serving domain to MetlLB Load Balancer, expand this box to fast-forward.
- Proceed to the Verify section.
Overview
What You’ll Need¶
- A configured management environment.
- Your clone of the Arrikto GitOps repository.
- A working NGINX Ingress Controller deployment.
Procedure¶
Go to your GitOps repository, inside your
rok-tools
management environment:root@rok-toos:~/# cd ~/ops/deploymentsSpecify the FQDN to use for Serving:
root@rok-tools:~/ops/deployments# export FQDN=<FQDN>Replace
<FQDN>
with your FQDN. For example:root@rok-tools:~/ops/deployments# export FQDN=serving.example.comObtain the IP address of your Load Balancer and print its value. Choose one of the following options based on which NGINX you are using:
root@rok-tools:~# export ADDRESS=$(kubectl get services -n ingress-nginx-serving ingress-nginx \ > -o jsonpath={.status.loadBalancer.ingress[].ip}) && echo ${ADDRESS?} 10.0.0.2root@rok-tools:~# export ADDRESS=$(kubectl get services -n ingress-nginx ingress-nginx \ > -o jsonpath={.status.loadBalancer.ingress[].ip}) && echo ${ADDRESS?} 10.0.0.1Create a DNS record in your nameservers, so that your FQDN resolves to the IP address of your Load Balancer.