Skip to content

Instantly share code, notes, and snippets.

@ranrubin
Created May 3, 2022 11:28
Show Gist options
  • Save ranrubin/b31834cb2de0f306f5d44697b8784dbc to your computer and use it in GitHub Desktop.
Save ranrubin/b31834cb2de0f306f5d44697b8784dbc to your computer and use it in GitHub Desktop.
A command like the following can be used to install the remaining K3s server nodes with the same PostgreSQL database as the external datastore and the token that was retrieved from the first server
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE=644 INSTALL_K3S_VERSION="v1.21.9+k3s1" sh -s  -- server  - -debug  -- disable traefik  -- datastore-endpoint="postgres://username:password@our-db-k3s-db-postgres.abcdefghijk.us-west-2.rds.amazonaws.com:5432/developmentk3sPostgres"  -- token="${TOKEN}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment