Skip to content

Commit 8e36a83

Browse files
committed
Add volumes to enable hostAliases for RKE2
1 parent 3c744f3 commit 8e36a83

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/kube-vip/kube-vip.yml.j2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ spec:
8383
add:
8484
- NET_ADMIN
8585
- NET_RAW
86+
volumeMounts:
87+
- mountPath: /etc/kubernetes/admin.conf
88+
name: kubeconfig
8689
hostAliases:
8790
- hostnames:
8891
- kubernetes
@@ -94,4 +97,9 @@ spec:
9497
operator: Exists
9598
- effect: NoExecute
9699
operator: Exists
100+
volumes:
101+
- hostPath:
102+
path: /etc/rancher/rke2/rke2.yaml
103+
type: File
104+
name: kubeconfig
97105
updateStrategy: {}

0 commit comments

Comments
 (0)