My first steps with kubernetes. I built a "HA cluster" with k3s (like described here: https://docs.k3s.io/datastore/ha-embedded). My 3 nodes are running and I want to encrypt secrets from beginning.
I followed description in https://docs.k3s.io/cli/secrets-encrypt#secrets-encryption-disablere-enable
- Enabled secrets encryption on a node with
curl -sfL https://get.k3s.io | sh -s - server --secrets-encryption(source: https://docs.k3s.io/security/secrets-encryption) - Encryption status is enabled (with
k3s secrets-encrypt status) - Restart k3 service on this node
- After enabled encryption my 2 other nodes don't start anymore (hang up). If I disable encryption on node, all nodes will start again as before
My questions:
- How can I setup a k3s cluster with secrets encryption?
- How can I add new k3s nodes when secrets encryption is enabled?
Thank you in advance!
This worked for me after several tries:
NODE-1NODE-1secrets encryption status withNODE-1cluster flags with (important: cluster-init, secrets-encryption)NODE-2: Run onNODE-2NODE-1(without cluster-init)--server <NODE-1-IP>:6443. Join doesn't work with https for me.NODE-2secrets encryption status with