mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2026-07-30 20:38:14 +00:00
K3S-Deploy: regenerate kube-vip with --inCluster for k3s
The kubeadm default mounts /etc/kubernetes/admin.conf, which does not exist on k3s. --inCluster uses the kube-vip ServiceAccount (provided by the applied rbac.yaml) instead, which is the correct mode for k3s.
This commit is contained in:
@@ -75,22 +75,12 @@ spec:
|
|||||||
- NET_RAW
|
- NET_RAW
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /etc/kubernetes/admin.conf
|
|
||||||
name: kubeconfig
|
|
||||||
hostAliases:
|
|
||||||
- hostnames:
|
|
||||||
- kubernetes
|
|
||||||
ip: 127.0.0.1
|
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
|
serviceAccountName: kube-vip
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
operator: Exists
|
operator: Exists
|
||||||
- effect: NoExecute
|
- effect: NoExecute
|
||||||
operator: Exists
|
operator: Exists
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /etc/kubernetes/admin.conf
|
|
||||||
name: kubeconfig
|
|
||||||
updateStrategy: {}
|
updateStrategy: {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user