Bootchy98
Cadet
- Joined
- Feb 15, 2022
- Messages
- 3
Heya!
So i'm getting along with RC2, working quite nice already!
But i'm running into an issue with Docker/k3s application setup.
Let's share the setup:
MetalLB installed using the Truecharts Catalog, defined the address pool at "10.30.10.11-10.30.10.49".
Pi-Hole installed, also using Truecharts, using the LoadBalancer option in the service entry's.
Using the metalLB, it gives al the respective services from the Pi-Hole container/pod a unique IP.
The issue with this, is that metalLB assigns unique IP's to all services seperately.
For PiHole (as an example) those services (DNS-TCP & DNS-UDP) need to be on the same IP address.
Easy, as one would say... Just add the "metallb.universe.tf/allow-shared-ip" annotation to the services, as described in the metalLB Manual.
Using that annotation you should be able to set the spec.loadBalancerIP on both services to the same IP, i.e. 10.30.10.11.
Current issue:
There is no entry for "annotations" in the gui when setting up a service.
Not even when setting up a Docker/k3s application manually.
Adding the annotation to a respective k8s/k3s service config file would be something like this:
As such my question is:
How does one add an annotation to a service?
Hopefully someone can clarify this for me...
Kind Regards,
Bootchy98 | Kevin
So i'm getting along with RC2, working quite nice already!
But i'm running into an issue with Docker/k3s application setup.
Let's share the setup:
MetalLB installed using the Truecharts Catalog, defined the address pool at "10.30.10.11-10.30.10.49".
Pi-Hole installed, also using Truecharts, using the LoadBalancer option in the service entry's.
Using the metalLB, it gives al the respective services from the Pi-Hole container/pod a unique IP.
The issue with this, is that metalLB assigns unique IP's to all services seperately.
For PiHole (as an example) those services (DNS-TCP & DNS-UDP) need to be on the same IP address.
Easy, as one would say... Just add the "metallb.universe.tf/allow-shared-ip" annotation to the services, as described in the metalLB Manual.
Using that annotation you should be able to set the spec.loadBalancerIP on both services to the same IP, i.e. 10.30.10.11.
Current issue:
There is no entry for "annotations" in the gui when setting up a service.
Not even when setting up a Docker/k3s application manually.
Adding the annotation to a respective k8s/k3s service config file would be something like this:
Code:
apiVersion: v1
kind: Service
metadata:
name: PiHole-DNS-TCP
annotations:
metallb.universe.tf/allow-shared-ip
spec:
selector:
app: pihole
ports:
- protocol: TCP
port: 53
targetPort: 53
type: LoadBalancer
apiVersion: v1
kind: Service
metadata:
name: PiHole-DNS-UDP
annotations:
metallb.universe.tf/allow-shared-ip
spec:
selector:
app: pihole
ports:
- protocol: UDP
port: 53
targetPort: 53
type: LoadBalancerAs such my question is:
How does one add an annotation to a service?
Hopefully someone can clarify this for me...
Kind Regards,
Bootchy98 | Kevin