From a657e5399d323bed902a6816b5773207d0c07889 Mon Sep 17 00:00:00 2001 From: dereknola Date: Thu, 23 Sep 2021 11:33:06 -0700 Subject: [PATCH 1/3] Added documenetation about using etcdctl with k3s Signed-off-by: dereknola --- content/k3s/latest/en/advanced/_index.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/content/k3s/latest/en/advanced/_index.md b/content/k3s/latest/en/advanced/_index.md index 42bab14103c..da193853e7a 100644 --- a/content/k3s/latest/en/advanced/_index.md +++ b/content/k3s/latest/en/advanced/_index.md @@ -11,6 +11,7 @@ This section contains advanced information describing the different ways you can - [Certificate rotation](#certificate-rotation) - [Auto-deploying manifests](#auto-deploying-manifests) - [Using Docker as the container runtime](#using-docker-as-the-container-runtime) +- [Using etcdctl](#using-etcdctl) - [Configuring containerd](#configuring-containerd) - [Secrets Encryption Config (Experimental)](#secrets-encryption-config-experimental) - [Running K3s with Rootless mode (Experimental)](#running-k3s-with-rootless-mode-experimental) @@ -117,6 +118,24 @@ rancher/metrics-server v0.3.6 9dd718864ce61 39.9MB rancher/pause 3.1 da86e6ba6ca19 742kB ``` +# Using etcdctl + +etcdctl provides a CLI for etcd. + +If you would like to use etcdctl after install K3s with embedded etcd, install etcdctl using the [official documentation:](https://etcd.io/docs/latest/install/) + +``` +$ VERSION="v3.5.0" +$ curl -L https://github.com/etcd-io/etcd/releases/download/${VERSION}/etcd-${VERSION}-linux-amd64.tar.gz --output etcdctl-${VERSION}-linux-amd64.tar.gz +$ sudo tar -zxvf etcdctl-${VERSION}-linux-amd64.tar.gz -C /usr/local/bin +``` + +Then start using etcdctl commands with the appropiate k3s flags: + +``` +$ sudo etcdctl --cacert=/var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert=/var/lib/rancher/k3s/server/tls/etcd/client.crt --key=/var/lib/rancher/k3s/server/tls/etcd/client.key version +``` + # Configuring containerd K3s will generate config.toml for containerd in `/var/lib/rancher/k3s/agent/etc/containerd/config.toml`. From d42e41012346e08a21b9e2a04354e8822f1e2cf6 Mon Sep 17 00:00:00 2001 From: dereknola Date: Fri, 24 Sep 2021 09:53:53 -0700 Subject: [PATCH 2/3] Ran codespell, added a missing "r" Signed-off-by: dereknola --- content/k3s/latest/en/advanced/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/k3s/latest/en/advanced/_index.md b/content/k3s/latest/en/advanced/_index.md index da193853e7a..bef2df045a6 100644 --- a/content/k3s/latest/en/advanced/_index.md +++ b/content/k3s/latest/en/advanced/_index.md @@ -130,7 +130,7 @@ $ curl -L https://github.com/etcd-io/etcd/releases/download/${VERSION}/etcd-${VE $ sudo tar -zxvf etcdctl-${VERSION}-linux-amd64.tar.gz -C /usr/local/bin ``` -Then start using etcdctl commands with the appropiate k3s flags: +Then start using etcdctl commands with the appropriate k3s flags: ``` $ sudo etcdctl --cacert=/var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert=/var/lib/rancher/k3s/server/tls/etcd/client.crt --key=/var/lib/rancher/k3s/server/tls/etcd/client.key version From f14f50d73ab52d5a760c1d3e0b3f0218fc5fbbb3 Mon Sep 17 00:00:00 2001 From: dereknola Date: Fri, 24 Sep 2021 10:54:48 -0700 Subject: [PATCH 3/3] Added a missing "ing" Signed-off-by: dereknola --- content/k3s/latest/en/advanced/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/k3s/latest/en/advanced/_index.md b/content/k3s/latest/en/advanced/_index.md index bef2df045a6..78773b80cea 100644 --- a/content/k3s/latest/en/advanced/_index.md +++ b/content/k3s/latest/en/advanced/_index.md @@ -122,7 +122,7 @@ rancher/pause 3.1 da86e6ba6ca19 742kB etcdctl provides a CLI for etcd. -If you would like to use etcdctl after install K3s with embedded etcd, install etcdctl using the [official documentation:](https://etcd.io/docs/latest/install/) +If you would like to use etcdctl after installing K3s with embedded etcd, install etcdctl using the [official documentation:](https://etcd.io/docs/latest/install/) ``` $ VERSION="v3.5.0"