refactor(k3s): remove system upgrade controller

More trouble than it's worth.
Update Ansible to upgrade k3s instead.
This commit is contained in:
Khue Doan 2023-11-19 12:50:36 +07:00
parent 774e6086b4
commit 54e071e0f2
4 changed files with 0 additions and 63 deletions

View File

@ -1,26 +0,0 @@
apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: k3s-agent
namespace: system-upgrade
labels:
k3s-upgrade: agent
spec:
nodeSelector:
matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: DoesNotExist
serviceAccountName: system-upgrade
prepare:
image: rancher/k3s-upgrade
args:
- prepare
- k3s-server
concurrency: 1
cordon: true
drain:
force: true
skipWaitForDeleteTimeout: 300 # Honor PodDisruptionBudgets
upgrade:
image: rancher/k3s-upgrade
version: v1.27.1+k3s1

View File

@ -1,10 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- server.yaml
- agent.yaml
commonAnnotations:
# TODO https://github.com/rancher/system-upgrade-controller/issues/172
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true

View File

@ -1,21 +0,0 @@
apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: k3s-server
namespace: system-upgrade
labels:
k3s-upgrade: server
spec:
nodeSelector:
matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
serviceAccountName: system-upgrade
concurrency: 1
cordon: true
drain:
force: true
skipWaitForDeleteTimeout: 300 # Honor PodDisruptionBudgets
upgrade:
image: rancher/k3s-upgrade
version: v1.27.1+k3s1

View File

@ -1,6 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/rancher/system-upgrade-controller/releases/download/v0.8.1/system-upgrade-controller.yaml
- k3s