Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bare metal configuration? #237

Open
thebigbone opened this issue Jun 9, 2024 · 1 comment
Open

Bare metal configuration? #237

thebigbone opened this issue Jun 9, 2024 · 1 comment

Comments

@thebigbone
Copy link

Hello. I was setting up caddy ingress controller on a bare metal server. I am aware that LoadBalancer IP would be in pending state so I added externalIPs to the Service type. After which I tried accessing using the allocated NodePort but it doesn't seem to be working. Any help would be appreciated! Thanks.

@axgkl
Copy link

axgkl commented Jul 18, 2024

I think (no expert here) k8s svc type loadbalancer (that's what this here creates) always requires a controller, which can, and will create/configure such an actual loadbalancer.

If you really have an external ip, there is metal lb which provides such a controller and which makes the external ip field of the caddy service go from pending to that real ip:

helm install metallb metallb/metallb -n metallb-system
k apply -f metallb_configmap_manifest.yaml 

with metallb_configmap_manifest:

apiVersion: v1
kind: ConfigMap
metadata:
  namespace: metallb-system
  name: config
data:
  config: |
    address-pools:
    - name: default
      protocol: layer2
      addresses:
      - 1.2.3.4/32 # <!------------- your ip

then check your caddy service - should now show a Loadbalancer with an external IP on it, just like in clouds.

Sorry if this was not what you asked for, pretty new within this world still 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants