diff --git a/ansible/pi/playbooks/templates/kube-vip-static-pod.yaml.j2 b/ansible/pi/playbooks/templates/kube-vip-static-pod.yaml.j2 deleted file mode 120000 index 620589f667..0000000000 --- a/ansible/pi/playbooks/templates/kube-vip-static-pod.yaml.j2 +++ /dev/null @@ -1 +0,0 @@ -../../../teyvat/playbooks/templates/kube-vip-static-pod.yaml.j2 \ No newline at end of file diff --git a/ansible/pi/playbooks/templates/kube-vip-static-pod.yaml.j2 b/ansible/pi/playbooks/templates/kube-vip-static-pod.yaml.j2 new file mode 100644 index 0000000000..3190439e95 --- /dev/null +++ b/ansible/pi/playbooks/templates/kube-vip-static-pod.yaml.j2 @@ -0,0 +1,59 @@ +--- +apiVersion: v1 +kind: Pod +metadata: + name: kube-vip + namespace: kube-system + labels: + app.kubernetes.io/instance: kube-vip + app.kubernetes.io/name: kube-vip +spec: + containers: + - name: kube-vip + image: ghcr.io/kube-vip/kube-vip:v0.7.0 + imagePullPolicy: IfNotPresent + args: ["manager"] + env: + - name: address + value: "{{ kube_vip_addr }}" + - name: vip_arp + value: "true" + - name: lb_enable + value: "false" + - name: port + value: "6443" + - name: vip_cidr + value: "32" + - name: cp_enable + value: "true" + - name: cp_namespace + value: kube-system + - name: vip_ddns + value: "false" + - name: svc_enable + value: "false" + - name: vip_leaderelection + value: "true" + - name: vip_leaseduration + value: "15" + - name: vip_renewdeadline + value: "10" + - name: vip_retryperiod + value: "2" + - name: prometheus_server + value: :2112 + 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: + - name: kubeconfig + hostPath: + path: /etc/rancher/k3s/k3s.yaml