-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathetcd-snapshot-sh-mc.yaml
20 lines (20 loc) · 2.81 KB
/
etcd-snapshot-sh-mc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 87-master-etcd-snapshot-sh
spec:
config:
ignition:
version: 3.1.0
storage:
files:
- path: /usr/local/bin/etcd-snapshot.sh
contents:
source: >-
data:text/plain;charset=utf-8;base64,IyEvYmluL2Jhc2gKClNOQVBTSE9UX0RJUj0vaG9tZS9jb3JlL2V0Y2Qtc25hcHNob3RzClNOQVBTSE9UX0RBWVM9MApUSElTX0hPU1Q9JChob3N0bmFtZSkKVkFMSURfRElSUz0iL2hvbWUvY29yZSAvdmFyL2hvbWUvY29yZSAvdG1wIgoKd2hpbGUgW1sgJCMgLWd0IDAgXV07IGRvCiAgICBrPSIkMSIKICAgIGNhc2UgJGsgaW4KICAgICAgICAtZnwtLWZvcmNlKQogICAgICAgICAgICBTTkFQU0hPVF9GT1JDRT0iLS1mb3JjZSIKICAgICAgICAgICAgc2hpZnQKICAgICAgICAgICAgOzsKICAgICAgICAtaHwtLWhvc3QpCiAgICAgICAgICAgIFNOQVBTSE9UX0hPU1Q9IiQyIgogICAgICAgICAgICBzaGlmdAogICAgICAgICAgICBzaGlmdAogICAgICAgICAgICA7OwogICAgICAgIC1vfC0tb3V0cHV0KQogICAgICAgICAgICBTTkFQU0hPVF9ESVI9IiQyIgogICAgICAgICAgICBzaGlmdAogICAgICAgICAgICBzaGlmdAogICAgICAgICAgICA7OyAgICAgICAgICAKICAgICAgICAtcHwtLXB1cmdlKQogICAgICAgICAgICBTTkFQU0hPVF9EQVlTPSIkMiIKICAgICAgICAgICAgc2hpZnQKICAgICAgICAgICAgc2hpZnQKICAgICAgICAgICAgOzsKICAgICAgICAqKQogICAgICAgICAgICBlY2hvICJVbmtub3duI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