forked from rancher/system-upgrade-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bionic.yaml
42 lines (42 loc) · 975 Bytes
/
bionic.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
apiVersion: v1
kind: Secret
metadata:
name: bionic
namespace: system-upgrade
type: Opaque
stringData:
curl: 7.58.0-2ubuntu3.14
openssl: 1.1.1-1ubuntu2.1~18.04.13
upgrade.sh: |
#!/bin/sh
set -e
secrets=$(dirname $0)
apt-get --assume-yes update
apt-get --assume-yes install \
curl=$(cat $secrets/curl) \
libcurl4=$(cat $secrets/curl) \
libssl1.1=$(cat $secrets/openssl) \
openssl=$(cat $secrets/openssl)
---
apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: bionic
namespace: system-upgrade
spec:
concurrency: 2
nodeSelector:
matchExpressions:
- {key: plan.upgrade.cattle.io/bionic, operator: Exists}
serviceAccountName: system-upgrade
secrets:
- name: bionic
path: /host/run/system-upgrade/secrets/bionic
drain:
force: true
version: bionic
upgrade:
image: ubuntu
command: ["chroot", "/host"]
args: ["sh", "/run/system-upgrade/secrets/bionic/upgrade.sh"]