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

kube-vip ha doesn't work with edit lb_port #610

Open
cyclinder opened this issue Sep 6, 2023 · 0 comments
Open

kube-vip ha doesn't work with edit lb_port #610

cyclinder opened this issue Sep 6, 2023 · 0 comments

Comments

@cyclinder
Copy link

Describe the bug

I changed the lb_port from 6443 to 16443, Only the leader node has IPVS rules, and only the leader can access the api-server via VIP:lb_port. Note: api-server's port is 6443.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS/Distro: [e.g. Ubuntu 1804]
  • Kubernetes Version: [e.g. v.1.18]
  • Kube-vip Version: [e.g. 0.2.3]

Kube-vip.yaml:
If Possible add in your kube-vip manifest (please remove anything that is confidential)

apiVersion: v1
kind: Pod
metadata:
  name: kube-vip
  namespace: kube-system
  labels:
    addonmanager.kubernetes.io/mode: Reconcile
    k8s-app: kube-vip
spec:
  containers:
  - args:
    - manager
    env:
    - name: vip_arp
      value: "True"
    - name: port
      value: "6443"
    - name: lb_port
      value: "16443"
    - name: lb_fwdmethod
      value: "masquerade"
    - name: vip_loglevel
      value: "5"
    - name: vip_cidr
      value: "32"
    - name: cp_enable
      value: "true"
    - name: cp_namespace
      value: kube-system
    - name: vip_ddns
      value: "False"
    - name: vip_leaderelection
      value: "true"
    - name: vip_leaseduration
      value: "5"
    - name: vip_renewdeadline
      value: "3"
    - name: vip_retryperiod
      value: "1"
    - name: address
      value: "10.70.16.100"
    - name: lb_enable
      value: "true"
    image: 10.70.8.100:8090/kubespray/kube-vip/kube-vip:v0.6.2
    imagePullPolicy: IfNotPresent
    name: kube-vip
    resources: {}
    securityContext:
      capabilities:
        add:
        - NET_ADMIN
        - NET_RAW
    volumeMounts:
    - mountPath: /etc/kubernetes/admin.conf
      name: kubeconfig
  hostAliases:
  - hostnames:
    - kubernetes
    ip: 127.0.0.1
  hostNetwork: true
  volumes:
  - hostPath:
      path: /etc/kubernetes/admin.conf
    name: kubeconfig
status: {}

Additional context
Add any other context about the problem here.

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

1 participant