You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When starting up kube-vip as a static pod for control plane HA, the kube-vip is unable to start due to a "panic: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory when starting static pod" error To Reproduce
Steps to reproduce the behavior:
Initialize K3S cluster using the following command
curl -sfL https://get.k3s.io | sh -s -
--flannel-backend=none
--disable-kube-proxy
--disable servicelb
--disable-network-policy
--disable traefik
--tls-san=10.0.100.2
--cluster-init
Execute KVVERSION='v0.7.2'
export VIP=10.0.100.2
export INTERFACE=lo
Execute alias kube-vip="ctr image pull ghcr.io/kube-vip/kube-vip:$KVVERSION; ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:$KVVERSION vip /kube-vip"
Copy pod manifest using: cp kube-vip.yaml /var/lib/rancher/k3s/agent/pod-manifests/
run kubectl get pod -n kube-system to see pod erroring out
Expected behavior
After running the above commands, the kube-vip pod should start and connect to a router to support BGP load balancing Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Please add an option --k8sConfigPath /etc/rancher/k3s/k3s.yaml at step 6.
This will replace hostPath setting for kubeconfig volume and allow kube-vip to communicate with k8s API.
Describe the bug
When starting up kube-vip as a static pod for control plane HA, the kube-vip is unable to start due to a "panic: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory when starting static pod" error
To Reproduce
Steps to reproduce the behavior:
curl -sfL https://get.k3s.io | sh -s -
--flannel-backend=none
--disable-kube-proxy
--disable servicelb
--disable-network-policy
--disable traefik
--tls-san=10.0.100.2
--cluster-init
Expected behavior
After running the above commands, the kube-vip pod should start and connect to a router to support BGP load balancing
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Client Version: v1.29.3+k3s1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.3+k3s1
Kube-vip.yaml
:`apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
name: kube-vip
namespace: kube-system
spec:
containers:
env:
value: "false"
value: "6443"
value: lo
value: "32"
value: first
value: "true"
value: kube-system
value: "true"
value: 10.0.7.5
value: "64500"
value: "65000"
value: 10.0.7.4:65000::false,10.0.7.6:65000::false
value: 10.0.100.2
value: :2112
image: ghcr.io/kube-vip/kube-vip:v0.7.2
imagePullPolicy: Always
name: kube-vip
resources: {}
securityContext:
capabilities:
add:
volumeMounts:
name: kubeconfig
hostAliases:
ip: 127.0.0.1
hostNetwork: true
volumes:
path: /etc/kubernetes/admin.conf
name: kubeconfig
status: {}`
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: