Compare commits
17
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99cae11da3 | ||
|
|
eb7794962f | ||
|
|
f25d2fdfe9 | ||
|
|
2b5637516a | ||
|
|
ce6173b06a | ||
|
|
22dfe9a26b | ||
|
|
185e0c96d5 | ||
|
|
e55e46d020 | ||
|
|
cf139cd580 | ||
|
|
0623e151bb | ||
|
|
17a8061722 | ||
|
|
f6a708e897 | ||
|
|
b8516bae50 | ||
|
|
6d05f426d0 | ||
|
|
0466bd6929 | ||
|
|
8f9b6fda24 | ||
|
|
6ad6007df4 |
No files matched your search
@@ -101,8 +101,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pulumi login "$PULUMI_BACKEND_URL"
|
pulumi login "$PULUMI_BACKEND_URL"
|
||||||
pulumi refresh --yes --stack dev \
|
pulumi refresh --yes --stack dev \
|
||||||
--target 'urn:pulumi:dev::proxmox-infra::proxmoxve*' \
|
--target 'urn:pulumi:dev::proxmox-infra::proxmoxve**' \
|
||||||
--target 'urn:pulumi:dev::proxmox-infra::tls*'
|
--target 'urn:pulumi:dev::proxmox-infra::tls**'
|
||||||
working-directory: 01-proxmox-infra
|
working-directory: 01-proxmox-infra
|
||||||
env:
|
env:
|
||||||
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
|
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
|
||||||
|
|||||||
@@ -391,6 +391,7 @@ new proxmox.ContainerLegacy( // NOSONAR typescript:S1848
|
|||||||
},
|
},
|
||||||
started: true,
|
started: true,
|
||||||
startOnBoot: true,
|
startOnBoot: true,
|
||||||
|
protection: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
provider: ansibleHost.provider,
|
provider: ansibleHost.provider,
|
||||||
|
|||||||
Generated
+16
-16
@@ -608,9 +608,9 @@
|
|||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
"node_modules/@pulumi/pulumi": {
|
"node_modules/@pulumi/pulumi": {
|
||||||
"version": "3.277.0",
|
"version": "3.278.0",
|
||||||
"resolved": "https://registry.npmjs.org/@pulumi/pulumi/-/pulumi-3.277.0.tgz",
|
"resolved": "https://registry.npmjs.org/@pulumi/pulumi/-/pulumi-3.278.0.tgz",
|
||||||
"integrity": "sha512-EvvBo55xmGByLRWjIqp24k4vzmPoKmZ6nTmK8EHzRb9veLCNISN3/Fq4RlJxrEt5+HmNkZveEasI+z0UCgkMxw==",
|
"integrity": "sha512-PedUCQG6IciTBYA5MUYeiFbeoqaI/0hlA7rtrjkETk949BZ4bpLejoHmENifAAdBk0+h0oUv+BdVNtlMQ+AhRA==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@grpc/grpc-js": "^1.10.1",
|
"@grpc/grpc-js": "^1.10.1",
|
||||||
@@ -655,9 +655,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@pulumi/tls": {
|
"node_modules/@pulumi/tls": {
|
||||||
"version": "5.5.0",
|
"version": "5.6.3",
|
||||||
"resolved": "https://registry.npmjs.org/@pulumi/tls/-/tls-5.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/@pulumi/tls/-/tls-5.6.3.tgz",
|
||||||
"integrity": "sha512-OTGxp4sgDEuXlXrd7NtxrhhciPgcn9rqDIZlGOTmTaeGo+tlVMwv73FFqiVrzAmBiILdU8tLXHfxhjc+bTLdrQ==",
|
"integrity": "sha512-glAX4KYmsEGOXPz7yFKcErSogfknYB/4h2/EdeVXifZGW8ic47HCjNI5zPHF4+0DcwmNdLGA7fm2qQz69wS9EA==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pulumi/pulumi": "^3.142.0"
|
"@pulumi/pulumi": "^3.142.0"
|
||||||
@@ -670,12 +670,12 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "24.13.1",
|
"version": "24.19.4",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.13.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.4.tgz",
|
||||||
"integrity": "sha512-RSpUJGmvsJ1ZeBehQZFhIdpsz+bIpES0nIQXko4Ybq+N+kX6XvOq3Jo+iJ82FWLdblFq85AsMikd3m35jgezYg==",
|
"integrity": "sha512-s04odlR3ksJrLu7QLi+pddkWLD0RmSbcP9KuWn2/ozQKAp/YgwBC/6x9kJj8yAzZnGPfxePm7zm7nysVPCRagw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~7.18.0"
|
"undici-types": ">=7.24.0 <7.24.7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/semver": {
|
"node_modules/@types/semver": {
|
||||||
@@ -1266,9 +1266,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici-types": {
|
"node_modules/undici-types": {
|
||||||
"version": "7.18.2",
|
"version": "7.24.6",
|
||||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz",
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",
|
||||||
"integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==",
|
"integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/upath": {
|
"node_modules/upath": {
|
||||||
@@ -1365,9 +1365,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sdks/pfsense/node_modules/@types/node": {
|
"sdks/pfsense/node_modules/@types/node": {
|
||||||
"version": "20.19.41",
|
"version": "20.19.43",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.41.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz",
|
||||||
"integrity": "sha512-ECymXOukMnOoVkC2bb1Vc/w/836DXncOg5m8Xj1RH7xSHZJWNYY6Zh7EH477vcnD5egKNNfy2RpNOmuChhFPgQ==",
|
"integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~6.21.0"
|
"undici-types": "~6.21.0"
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ const k3sToken = config.requireSecret("k3sToken");
|
|||||||
const k3sVersion = "v1.36.2+k3s1";
|
const k3sVersion = "v1.36.2+k3s1";
|
||||||
const k3sInstallerUrl = `https://raw.githubusercontent.com/k3s-io/k3s/${encodeURIComponent(k3sVersion)}/install.sh`;
|
const k3sInstallerUrl = `https://raw.githubusercontent.com/k3s-io/k3s/${encodeURIComponent(k3sVersion)}/install.sh`;
|
||||||
|
|
||||||
|
const secretsEncryptionArgs =
|
||||||
|
"--secrets-encryption --secrets-encryption-provider=secretbox";
|
||||||
|
|
||||||
// Runs the pinned installer. The token arrives on stdin and travels in the
|
// Runs the pinned installer. The token arrives on stdin and travels in the
|
||||||
// environment, so it never appears in process arguments.
|
// environment, so it never appears in process arguments.
|
||||||
function k3sInstallScript(
|
function k3sInstallScript(
|
||||||
@@ -184,7 +187,7 @@ const installMaster1 = new command.remote.Command(
|
|||||||
connection: conn(master1Ip),
|
connection: conn(master1Ip),
|
||||||
create: k3sInstallScript(
|
create: k3sInstallScript(
|
||||||
"",
|
"",
|
||||||
pulumi.interpolate`server --cluster-init --tls-san ${master1Ip} --tls-san ${controlPlaneVipAddress} --disable servicelb --node-name k3s-master-1`,
|
pulumi.interpolate`server --cluster-init --tls-san ${master1Ip} --tls-san ${controlPlaneVipAddress} --disable servicelb ${secretsEncryptionArgs} --node-name k3s-master-1`,
|
||||||
),
|
),
|
||||||
stdin: k3sToken,
|
stdin: k3sToken,
|
||||||
triggers: [master1VmId],
|
triggers: [master1VmId],
|
||||||
@@ -257,7 +260,7 @@ const joinMaster2 = new command.remote.Command(
|
|||||||
connection: conn(master2Ip),
|
connection: conn(master2Ip),
|
||||||
create: k3sInstallScript(
|
create: k3sInstallScript(
|
||||||
"",
|
"",
|
||||||
pulumi.interpolate`server --server https://${controlPlaneVipAddress}:6443 --disable servicelb --node-name k3s-master-2`,
|
pulumi.interpolate`server --server https://${controlPlaneVipAddress}:6443 --disable servicelb ${secretsEncryptionArgs} --node-name k3s-master-2`,
|
||||||
),
|
),
|
||||||
stdin: k3sToken,
|
stdin: k3sToken,
|
||||||
triggers: [master2VmId],
|
triggers: [master2VmId],
|
||||||
@@ -271,7 +274,7 @@ const joinMaster3 = new command.remote.Command(
|
|||||||
connection: conn(master3Ip),
|
connection: conn(master3Ip),
|
||||||
create: k3sInstallScript(
|
create: k3sInstallScript(
|
||||||
"",
|
"",
|
||||||
pulumi.interpolate`server --server https://${controlPlaneVipAddress}:6443 --disable servicelb --node-name k3s-master-3`,
|
pulumi.interpolate`server --server https://${controlPlaneVipAddress}:6443 --disable servicelb ${secretsEncryptionArgs} --node-name k3s-master-3`,
|
||||||
),
|
),
|
||||||
stdin: k3sToken,
|
stdin: k3sToken,
|
||||||
triggers: [master3VmId],
|
triggers: [master3VmId],
|
||||||
|
|||||||
Generated
+375
-1807
File diff suppressed because it is too large.
Load diff
@@ -10,7 +10,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pulumi/command": "^1.2.1",
|
"@pulumi/command": "^1.2.1",
|
||||||
"@pulumi/kubernetes": "^4.31.1",
|
|
||||||
"@pulumi/pulumi": "^3.244.0"
|
"@pulumi/pulumi": "^3.244.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+392
-1682
File diff suppressed because it is too large.
Load diff
@@ -5,11 +5,11 @@
|
|||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18",
|
"@types/node": "^24.19.4",
|
||||||
"typescript": "^5.0.0"
|
"typescript": "^6.0.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pulumi/kubernetes": "^4.0.0",
|
"@pulumi/kubernetes": "^4.31.1",
|
||||||
"@pulumi/pulumi": "^3.113.0"
|
"@pulumi/pulumi": "^3.278.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+385
-1675
File diff suppressed because it is too large.
Load diff
Generated
+385
-1675
File diff suppressed because it is too large.
Load diff
@@ -85,6 +85,8 @@ Check the new cluster with its own kubeconfig:
|
|||||||
KUBECONFIG=~/k3s-rebuilt.yaml kubectl get nodes
|
KUBECONFIG=~/k3s-rebuilt.yaml kubectl get nodes
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Secret encryption is configured with `secretbox`.
|
||||||
|
|
||||||
**Checkpoint:** all six nodes are `Ready`. Then replace your normal kubeconfig with this file, because the old one no longer works.
|
**Checkpoint:** all six nodes are `Ready`. Then replace your normal kubeconfig with this file, because the old one no longer works.
|
||||||
|
|
||||||
## 4. Deploy `03`, `04` and `05`
|
## 4. Deploy `03`, `04` and `05`
|
||||||
|
|||||||
@@ -0,0 +1,188 @@
|
|||||||
|
# Turn on k3s Secret encryption
|
||||||
|
|
||||||
|
Use this once to encrypt the Secrets in an existing cluster with `secretbox`. Don't use it for fresh installs, because `02-k8s-bootstrap` turns on encryption during installation. Don't use it to rotate keys later either.
|
||||||
|
|
||||||
|
> Steps 1–5 worked on the live cluster on 2026-12-01 with `v1.36.2+k3s1`. They're based on the k3s guide for existing clusters and the source code for that version. The guide doesn't cover starting with `secretbox`. **If a check doesn't match, stop.** Don't repeat `rotate-keys`, use `--force` or delete k3s files.
|
||||||
|
|
||||||
|
Don't deploy `02`, run the k3s installer or recreate VMs for this change.
|
||||||
|
|
||||||
|
## Before you start
|
||||||
|
|
||||||
|
1. Check that you have current VM backups of all 3 masters. They contain unencrypted Secrets, so restrict access to them.
|
||||||
|
2. Pause deployments, and don't merge anything until you finish.
|
||||||
|
3. Check that you can reach each master directly over SSH, not only through the control-plane VIP.
|
||||||
|
4. From your workstation, check the nodes:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl get nodes
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** all six nodes are `Ready`, and the masters run `v1.36.2+k3s1`.
|
||||||
|
|
||||||
|
5. On **each master**, check etcd and look for existing settings. The last two commands only print file or setting names:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s kubectl get --raw=/readyz/etcd; echo
|
||||||
|
sudo grep -rls 'secrets-encryption' /etc/rancher/k3s/
|
||||||
|
{ systemctl cat k3s; sudo cat /etc/default/k3s /etc/sysconfig/k3s /etc/systemd/system/k3s.service.env 2>/dev/null; } | grep -oE -- '--config|--secrets-encryption|K3S_CONFIG_FILE'
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** each master prints only `ok`. Any other output means etcd has a problem, encryption settings already exist or k3s uses a custom config path.
|
||||||
|
|
||||||
|
## Restarting the masters
|
||||||
|
|
||||||
|
Steps 2 and 4 use this procedure. Restart `k3s-master-1` first, then `k3s-master-2`, then `k3s-master-3`. On each one, run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo systemctl restart k3s
|
||||||
|
sudo k3s kubectl get --raw=/readyz/etcd; echo
|
||||||
|
sudo k3s kubectl get nodes
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** etcd returns `ok` and all nodes are `Ready` before you restart the next master. The API can take a minute to respond, so rerun the two checks if needed. Finish all 3 restarts without long breaks.
|
||||||
|
|
||||||
|
## 1. Enable encryption and add the settings
|
||||||
|
|
||||||
|
1. On `k3s-master-1`, check the status:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s secrets-encrypt status
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** it shows `Disabled, no configuration file found`.
|
||||||
|
|
||||||
|
2. On `k3s-master-1` **only**, run this. It doesn't create a key or encrypt anything yet:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s secrets-encrypt enable
|
||||||
|
```
|
||||||
|
|
||||||
|
3. On **all 3 masters**, add the settings in a separate file, so the existing config stays unchanged:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo mkdir -p /etc/rancher/k3s/config.yaml.d
|
||||||
|
sudo install -m 600 /dev/stdin /etc/rancher/k3s/config.yaml.d/90-secrets-encryption.yaml <<'EOF'
|
||||||
|
secrets-encryption: true
|
||||||
|
secrets-encryption-provider: secretbox
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
|
## 2. Restart and check the settings
|
||||||
|
|
||||||
|
1. [Restart all 3 masters](#restarting-the-masters).
|
||||||
|
2. On `k3s-master-1`, check the status:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s secrets-encrypt status
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** it shows `Disabled`, stage `start` and `All hashes match`.
|
||||||
|
|
||||||
|
3. From your workstation, check which encryption settings each master uses:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl get nodes -l node-role.kubernetes.io/control-plane -o json | jq -r '.items[] | .metadata.name + ": " + (.metadata.annotations["k3s.io/node-args"] | fromjson | join(" ") | [scan("--secrets-encryption[^ ]*(?: (?!--)[^ ]+)?")] | join(" "))'
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** all 3 masters show `--secrets-encryption` set to `true` and `--secrets-encryption-provider` set to `secretbox`. **Don't continue without both**, because the next step uses the provider setting to choose the key type.
|
||||||
|
|
||||||
|
## 3. Encrypt the Secrets
|
||||||
|
|
||||||
|
**Don't interrupt this step or restart any masters until it finishes.** A crash could stop the cluster from starting ([k3s issue 13763](https://github.com/k3s-io/k3s/issues/13763)), and we haven't confirmed a fix.
|
||||||
|
|
||||||
|
1. On `k3s-master-1`, run this **once**. It creates the key and re-encrypts the existing Secrets:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s secrets-encrypt rotate-keys
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Check the status until the stage is `reencrypt_finished`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s secrets-encrypt status
|
||||||
|
```
|
||||||
|
|
||||||
|
If there's an error or no progress, check the logs with `sudo journalctl -u k3s --since '15 min ago'`, then stop. Don't run `rotate-keys` again.
|
||||||
|
|
||||||
|
## 4. Restart and check the status
|
||||||
|
|
||||||
|
1. [Restart all 3 masters](#restarting-the-masters) again.
|
||||||
|
2. On `k3s-master-1`, check the status:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s secrets-encrypt status
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** it shows `Enabled`, `reencrypt_finished`, `All hashes match` and an active `XSalsa20-POLY1305` key.
|
||||||
|
|
||||||
|
## 5. Verify
|
||||||
|
|
||||||
|
1. On **each master**, check that its API can read all Secrets. This doesn't print them:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s kubectl get secrets -A -o name >/dev/null && echo ok
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** each master prints `ok`.
|
||||||
|
|
||||||
|
2. From your workstation, create a test Secret with a fake value:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl -n default create secret generic encryption-test --from-literal=value=not-a-real-secret
|
||||||
|
```
|
||||||
|
|
||||||
|
3. On `k3s-master-1`, check the test Secret and an existing Secret in etcd. This needs `etcdctl`. If it's missing, install it with `sudo apt install etcd-client`. The command only prints the first 21 characters of each stored value:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
for key in default/encryption-test heimdall/heimdall-tls; do
|
||||||
|
sudo env ETCDCTL_API=3 etcdctl \
|
||||||
|
--endpoints=https://127.0.0.1:2379 \
|
||||||
|
--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 \
|
||||||
|
get "/registry/secrets/$key" --print-value-only | head -c 21
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** both lines are `k8s:enc:secretbox:v1:`.
|
||||||
|
|
||||||
|
4. From your workstation, delete the test Secret, then check that your apps still work:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl -n default delete secret encryption-test
|
||||||
|
kubectl get pods -A --field-selector=status.phase!=Running,status.phase!=Succeeded
|
||||||
|
```
|
||||||
|
|
||||||
|
**Checkpoint:** no pods are listed, and the apps work normally.
|
||||||
|
|
||||||
|
## 6. Clean up
|
||||||
|
|
||||||
|
1. Make new VM backups of all 3 masters. Once they finish, delete the older ones, because their Secrets aren't encrypted. The new backups contain both the encrypted data and its key, so keep access restricted.
|
||||||
|
2. On **each master**, take a new etcd snapshot, then list the snapshots:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s etcd-snapshot save --name after-secrets-encryption
|
||||||
|
sudo k3s etcd-snapshot ls
|
||||||
|
```
|
||||||
|
|
||||||
|
3. On the master that holds each snapshot, delete any taken before step 4 finished. Check the name and date first, and delete any copies stored elsewhere too:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo k3s etcd-snapshot delete <snapshot-name>
|
||||||
|
```
|
||||||
|
|
||||||
|
Keep the remaining snapshots separate from the k3s server token. Someone with both can decrypt the Secrets.
|
||||||
|
|
||||||
|
4. Merge the `02` change, then resume deployments. Don't deploy `02`.
|
||||||
|
|
||||||
|
## If something goes wrong
|
||||||
|
|
||||||
|
Stop and save the status output and logs. **Don't restore just one master from a VM backup.** Its old etcd data and encryption settings may not match the other masters. Plan the recovery for all 3 masters together first. Restoring them loses any Kubernetes changes made after the backups and can leave them out of sync with the workers and Longhorn volumes.
|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
- [k3s: Turn on Secrets encryption](https://docs.k3s.io/cli/secrets-encrypt)
|
||||||
|
- [k3s: Encryption types](https://docs.k3s.io/security/secrets-encryption)
|
||||||
|
- [k3s: Config files](https://docs.k3s.io/installation/configuration)
|
||||||
|
- [k3s: Snapshots](https://docs.k3s.io/cli/etcd-snapshot)
|
||||||
Reference in new issue
Block a user