Skip to content

Commit

Permalink
suc: do a kube-vip thing (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
samcday committed Jun 24, 2024
1 parent 6d34674 commit b9f2366
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cluster/kube-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ resources:
- node-feature-discovery.yaml
- node-problem-detector.yaml
- nodes.yaml
- plans/kube-vip.yaml
- plans/rebase-image.yaml
- plans/ssh-host-keys.yaml
- prometheus-operator.yaml
- samcday-rbac.yaml
- system-upgrade-controller-crds.yaml
Expand Down
29 changes: 29 additions & 0 deletions cluster/kube-system/plans/kube-vip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Deploys/upgrades kube-vip on control-plane nodes.
apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: kube-vip
namespace: kube-system
spec:
concurrency: 1
version: v0.5.0 # TODO: image automation on ghcr.io/kube-vip/kube-vip ?
tolerations:
- {key: com.samcday/shrimpy-boi, operator: Exists}
serviceAccountName: system-upgrade
nodeSelector:
matchExpressions:
- {key: node-role.kubernetes.io/control-plane, operator: Exists}
upgrade:
image: busybox:stable
command:
- chroot
- /host
- /bin/bash
- -c
- |
set -uexo pipefail
docker run --network host --rm localhost:30002/ghcr.io/kube-vip/kube-vip:$SYSTEM_UPGRADE_PLAN_LATEST_VERSION manifest pod \
--address 10.0.1.9 \
--controlplane \
--arp \
--leaderElection > /etc/kubernetes/manifests/kube-vip.yaml

0 comments on commit b9f2366

Please sign in to comment.