Quellcode durchsuchen

add upgrade plan

Josh Bicking vor 3 Monaten
Ursprung
Commit
047c196088
2 geänderte Dateien mit 42 neuen und 17 gelöschten Zeilen
  1. 0 17
      traefik-configmap.yaml
  2. 42 0
      upgrade-plan.yaml

+ 0 - 17
traefik-configmap.yaml

@@ -45,20 +45,3 @@ data:
       serversTransports:
         proxmox:
           insecureSkipVerify: true
-  ceph.yaml: |
-    http:
-      routers:
-        ceph:
-          rule: Host(`ceph.lan.jibby.org`)
-          service: ceph
-      services:
-        ceph:
-          loadBalancer:
-            serversTransport: "ceph"
-            servers:
-              - url: https://172.16.69.30:8443
-              - url: https://172.16.69.31:8443
-              - url: https://172.16.69.32:8443
-      serversTransports:
-        ceph:
-          insecureSkipVerify: true

+ 42 - 0
upgrade-plan.yaml

@@ -0,0 +1,42 @@
+# Server plan
+apiVersion: upgrade.cattle.io/v1
+kind: Plan
+metadata:
+  name: server-plan
+  namespace: system-upgrade
+spec:
+  concurrency: 1
+  cordon: true
+  nodeSelector:
+    matchExpressions:
+    - key: node-role.kubernetes.io/control-plane
+      operator: In
+      values:
+      - "true"
+  serviceAccountName: system-upgrade
+  upgrade:
+    image: rancher/k3s-upgrade
+  channel: https://update.k3s.io/v1-release/channels/stable
+---
+# Agent plan
+apiVersion: upgrade.cattle.io/v1
+kind: Plan
+metadata:
+  name: agent-plan
+  namespace: system-upgrade
+spec:
+  concurrency: 1
+  cordon: true
+  nodeSelector:
+    matchExpressions:
+    - key: node-role.kubernetes.io/control-plane
+      operator: DoesNotExist
+  prepare:
+    args:
+    - prepare
+    - server-plan
+    image: rancher/k3s-upgrade
+  serviceAccountName: system-upgrade
+  upgrade:
+    image: rancher/k3s-upgrade
+  channel: https://update.k3s.io/v1-release/channels/stable