Closed fanux closed 3 years ago
apiVersion: sealer.aliyun.com/v1alpha1
kind: Plugin
metadata:
name: ETCD_BACKUP
spec:
action: Manual
data: |
alioss:
ossendpoint: oss-cn-hangzhou.aliyuncs.com
accesskeyid: *****
accesskeysecrets: ****
bucketname: etcdbackup
objectpath: /sealos/
The action is Manual, you should trigger the plugin by manually:
sealer plugin -f etcd_backup.yaml
if not specify the oss config, just save it on local disk.
dump plugin config into $(rootfs)/plugin/ETCD_BACKUP file
将数据转储到 $(rootfs)/plugin/ETCD_BACKUP 文件中
ECTD_BACKUP is file or folder?
dump data into $(rootfs)/plugin/ETCD_BACKUP file
Will the content be copied directly or modified?
dump data into $(rootfs)/plugin/ETCD_BACKUP file
Is the config generated automatically? If so, what are the tools?
dump data into $(rootfs)/plugin/ETCD_BACKUP file
Does everything that needs to callhave an "on" tag?
将数据转储到 $(rootfs)/plugin/ETCD_BACKUP 文件中
ECTD_BACKUP is file or folder?
Is a file. Clusterfile will overwirte this file content. Get the config from Clusterfile.Plugin has default "on" tag.
https://github.com/alibaba/sealer/blob/main/docs/design/plugin.md