Skip to content

Commit

Permalink
Merge pull request #5 from Mtze/bugfix/fix-kube-vip-taints
Browse files Browse the repository at this point in the history
Fix: VIP are now only scheduled to CP nodes
  • Loading branch information
Mtze authored Feb 11, 2022
2 parents fe89098 + 72975a4 commit 4e0b319
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ docker run ghcr.io/kube-vip/kube-vip manifest daemonset \
--interface <NIC on Host - e.g. ens18>
--address <VIP IP - e.g. 10.3.2.1>
--controlplane
--taint
--leaderElection
--inCluster
```
19 changes: 17 additions & 2 deletions templates/kube-vip.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ metadata:
spec:
selector:
matchLabels:
name: kube-vip-ds
app.kubernetes.io/name: kube-vip-ds
template:
metadata:
creationTimestamp: null
labels:
name: kube-vip-ds
app.kubernetes.io/name: kube-vip-ds
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
containers:
- args:
- manager
Expand Down Expand Up @@ -54,6 +64,11 @@ spec:
- SYS_TIME
hostNetwork: true
serviceAccountName: kube-vip
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
updateStrategy: {}
status:
currentNumberScheduled: 0
Expand Down

0 comments on commit 4e0b319

Please sign in to comment.