k3s使用etcd安装

默认是安的sqlite3,须要使用etcd安装须要加flag

curl -sfL https://get.k3s.io | K3S_DATASTORE_ENDPOINT="etcd" sh -sql

配置以docker安装,数据放在/home/k3s下

curl -sfL https://get.k3s.io | K3S_DATASTORE_ENDPOINT="etcd" sh -s - --docker --default-local-storage-path /home/k3sdocker

安装后etcd的位置

在/var/lib/rancher/k3s/server/db/etcdcurl

相关文章
相关标签/搜索