Skip to content

Instantly share code, notes, and snippets.

@rbarabas
rbarabas / k3s-etcd-commands.md
Created March 8, 2024 15:44 — forked from superseb/k3s-etcd-commands.md
k3s etcd commands

k3s etcd commands

etcd

Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin):

Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER below accordingly:

curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version
@rbarabas
rbarabas / fdb_build.sh
Last active June 2, 2022 18:04
Build FoundationDB on OSX M1
#!/usr/bin/env bash
# Install mono from website
brew install openssl ninja cmake boost openjdk@11
cd $HOME
export SRCDIR=~/src/foundationdb
mkdir build_output
cmake -S src/foundationdb -B build_output -G Ninja -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl -DOPENSSL_LIBRARIES=/opt/homebrew/opt/openssl/lib
ninja -C build_output
cd build_output