mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-18 02:38:58 +03:00
Refresh and add Apple Silicon (#338)
* Delete CKA stuff. It's covered in CKA repo * Rename nodes * Cluster up again * Update issue template * Update README * Begin rearranging docs * Update links * Initial mac instructions * iterm2 image * update ssh-copy-id to be cross platform * remove vagrant specific * Apple scripts WIP * Add var for architecture * order input files * Apple build working! * auto-locate docs * install sshpass * Set execute bit * apple done! * install sshpass * edits * Corrections * kube version output * Adjustments * Adjustments
This commit is contained in:
@@ -6,9 +6,9 @@ In this lab you will generate an encryption key and an [encryption config](https
|
||||
|
||||
## The Encryption Key
|
||||
|
||||
[//]: # (host:master-1)
|
||||
[//]: # (host:controlplane01)
|
||||
|
||||
Generate an encryption key:
|
||||
Generate an encryption key. This is simply 32 bytes of random data, which we base64 encode:
|
||||
|
||||
```bash
|
||||
ENCRYPTION_KEY=$(head -c 32 /dev/urandom | base64)
|
||||
@@ -37,7 +37,7 @@ EOF
|
||||
Copy the `encryption-config.yaml` encryption config file to each controller instance:
|
||||
|
||||
```bash
|
||||
for instance in master-1 master-2; do
|
||||
for instance in controlplane01 controlplane02; do
|
||||
scp encryption-config.yaml ${instance}:~/
|
||||
done
|
||||
```
|
||||
@@ -45,7 +45,7 @@ done
|
||||
Move `encryption-config.yaml` encryption config file to appropriate directory.
|
||||
|
||||
```bash
|
||||
for instance in master-1 master-2; do
|
||||
for instance in controlplane01 controlplane02; do
|
||||
ssh ${instance} sudo mkdir -p /var/lib/kubernetes/
|
||||
ssh ${instance} sudo mv encryption-config.yaml /var/lib/kubernetes/
|
||||
done
|
||||
@@ -53,5 +53,5 @@ done
|
||||
|
||||
Reference: https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/#encrypting-your-data
|
||||
|
||||
Prev: [Generating Kubernetes Configuration Files for Authentication](05-kubernetes-configuration-files.md)<br>
|
||||
Next: [Bootstrapping the etcd Cluster](07-bootstrapping-etcd.md)
|
||||
Next: [Bootstrapping the etcd Cluster](07-bootstrapping-etcd.md)<br>
|
||||
Prev: [Generating Kubernetes Configuration Files for Authentication](05-kubernetes-configuration-files.md)
|
||||
|
||||
Reference in New Issue
Block a user