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

Support for externalIPs in service yaml #17

Closed
PacketCrunch opened this issue Jul 21, 2023 · 1 comment
Closed

Support for externalIPs in service yaml #17

PacketCrunch opened this issue Jul 21, 2023 · 1 comment

Comments

@PacketCrunch
Copy link
Collaborator

If a specific externalIP is provided in service definition, kube-loxilb is unable to create service properly

$ cat << EOF > nginx-service.yaml
apiVersion: v1
kind: Service
metadata:
  name: nginx-service
spec:
  selector:
    app: nginx
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: 80
  type: LoadBalancer
  externalIPs:
    - 1.2.4.114
EOF
TrekkieCoder added a commit that referenced this issue Jul 21, 2023
PR - Fixes for (#16 and #17). Feature support for (#18)
@TrekkieCoder
Copy link
Collaborator

With latest changes multiple externalIPs per service can be provided directly which does not rely on LB IPAM.

apiVersion: v1
kind: Service
metadata:
  name: nginx-lb1
spec:
  externalTrafficPolicy: Local
  loadBalancerClass: loxilb.io/loxilb
  selector:
    what: nginx-test
  ports:
    - port: 55002
      targetPort: 80
  type: LoadBalancer
  externalIPs:
    - 1.2.4.120
    - 1.2.4.121
---
apiVersion: v1
kind: Pod
metadata:
  name: nginx-test
  labels:
    what: nginx-test
spec:
  containers:
    - name: nginx-test
      image: nginx:stable
      ports:
        - containerPort: 80


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