forked from catalin/fukuops
feat: remove system-upgrade service
This commit is contained in:
parent
91c53a1353
commit
fc97042854
3 changed files with 13 additions and 85 deletions
|
|
@ -1,20 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: system-upgrade
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
name: ''
|
|
||||||
namespace: 'system-upgrade'
|
|
||||||
server: "https://kubernetes.default.svc"
|
|
||||||
sources:
|
|
||||||
- repoURL: https://github.com/rancher/system-upgrade-controller.git
|
|
||||||
targetRevision: v0.13.2
|
|
||||||
path: manifests/
|
|
||||||
- repoURL: https://git.roboces.dev/catalin/fukuops.git
|
|
||||||
path: k8s/services/argo
|
|
||||||
targetRevision: main
|
|
||||||
syncPolicy:
|
|
||||||
automated: { }
|
|
||||||
project: management
|
|
||||||
|
|
@ -1,18 +1,16 @@
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: Ingress
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: miniflux-ingress
|
name: miniflux
|
||||||
namespace: apps-roboces
|
namespace: apps-roboces
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: traefik
|
entryPoints:
|
||||||
rules:
|
- web
|
||||||
- host: feeds.roboces.dev
|
- websecure
|
||||||
http:
|
routes:
|
||||||
paths:
|
- kind: Rule
|
||||||
- path: /
|
match: Host(`feeds.roboces.dev`)
|
||||||
pathType: Prefix
|
priority: 10
|
||||||
backend:
|
services:
|
||||||
service:
|
- name: miniflux-service
|
||||||
name: miniflux-service
|
port: 8888
|
||||||
port:
|
|
||||||
number: 8888
|
|
||||||
|
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
# These plans are adapted from work by Dax McDonald (https://github.com/daxmc99) and Hussein Galal (https://github.com/galal-hussein)
|
|
||||||
# in support of Rancher v2 managed k3s upgrades. See Also: https://rancher.com/docs/k3s/latest/en/upgrades/automated/
|
|
||||||
---
|
|
||||||
apiVersion: upgrade.cattle.io/v1
|
|
||||||
kind: Plan
|
|
||||||
metadata:
|
|
||||||
name: k3s-server
|
|
||||||
namespace: system-upgrade
|
|
||||||
labels:
|
|
||||||
k3s-upgrade: server
|
|
||||||
spec:
|
|
||||||
concurrency: 1 # Batch size (roughly maps to maximum number of unschedulable nodes)
|
|
||||||
version: v1.20.11+k3s1
|
|
||||||
nodeSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- {key: k3s-upgrade, operator: Exists}
|
|
||||||
- {key: k3s-upgrade, operator: NotIn, values: ["disabled", "false"]}
|
|
||||||
- {key: k3os.io/mode, operator: DoesNotExist}
|
|
||||||
- {key: node-role.kubernetes.io/control-plane, operator: Exists}
|
|
||||||
serviceAccountName: system-upgrade
|
|
||||||
cordon: true
|
|
||||||
upgrade:
|
|
||||||
image: rancher/k3s-upgrade
|
|
||||||
---
|
|
||||||
apiVersion: upgrade.cattle.io/v1
|
|
||||||
kind: Plan
|
|
||||||
metadata:
|
|
||||||
name: k3s-agent
|
|
||||||
namespace: system-upgrade
|
|
||||||
labels:
|
|
||||||
k3s-upgrade: agent
|
|
||||||
spec:
|
|
||||||
concurrency: 2 # Batch size (roughly maps to maximum number of unschedulable nodes)
|
|
||||||
version: v1.20.11+k3s1
|
|
||||||
nodeSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- {key: k3s-upgrade, operator: Exists}
|
|
||||||
- {key: k3s-upgrade, operator: NotIn, values: ["disabled", "false"]}
|
|
||||||
- {key: k3os.io/mode, operator: DoesNotExist}
|
|
||||||
- {key: node-role.kubernetes.io/control-plane, operator: DoesNotExist}
|
|
||||||
serviceAccountName: system-upgrade
|
|
||||||
prepare:
|
|
||||||
# Defaults to the same "resolved" tag that is used for the `upgrade` container, NOT `latest`
|
|
||||||
image: rancher/k3s-upgrade
|
|
||||||
args: ["prepare", "k3s-server"]
|
|
||||||
drain:
|
|
||||||
force: true
|
|
||||||
skipWaitForDeleteTimeout: 60 # 1.18+ (honor pod disruption budgets up to 60 seconds per pod then moves on)
|
|
||||||
upgrade:
|
|
||||||
image: rancher/k3s-upgrade
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue