瀏覽代碼

add upgrade plan

Josh Bicking 3 月之前
父節點
當前提交
047c196088
共有 2 個文件被更改,包括 42 次插入17 次删除
  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