From f2e097ad65190429045f36ebc09d424e20bbd487 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sat, 20 Jun 2020 13:48:17 +0200 Subject: [PATCH] Adapt certificates generation (step 04) --- docs/04-certificate-authority.md | 118 +++++++++++-------------------- 1 file changed, 43 insertions(+), 75 deletions(-) diff --git a/docs/04-certificate-authority.md b/docs/04-certificate-authority.md index 8ce7ec7..5a99686 100644 --- a/docs/04-certificate-authority.md +++ b/docs/04-certificate-authority.md @@ -6,11 +6,9 @@ In this lab you will provision a [PKI Infrastructure](https://en.wikipedia.org/w In this section you will provision a Certificate Authority that can be used to generate additional TLS certificates. -Generate the CA configuration file, certificate, and private key: +On the `gateway-01` VM, generate the CA configuration file, certificate, and private key: ```bash -{ - cat > ca-config.json < ca-csr.json < admin-csr.json < admin-csr.json <`. In this section you will create a certificate for each Kubernetes worker node that meets the Node Authorizer requirements. -Generate a certificate and private key for each Kubernetes worker node: +On the `gateway-01` VM, generate a certificate and private key for each Kubernetes worker node (you need to replace YOUR_EXTERNAL_IP by your external IP address): ```bash -for instance in worker-0 worker-1 worker-2; do -cat > ${instance}-csr.json < worker-${id_instance}-csr.json < kube-controller-manager-csr.json < kube-controller-manager-csr.json < kube-proxy-csr.json < kube-proxy-csr.json < kube-scheduler-csr.json < kube-scheduler-csr.json < kubernetes-csr.json < The Kubernetes API server is automatically assigned the `kubernetes` internal dns name, which will be linked to the first IP address (`10.32.0.1`) from the address range (`10.32.0.0/24`) reserved for internal cluster services during the [control plane bootstrapping](08-bootstrapping-kubernetes-controllers.md#configure-the-kubernetes-api-server) lab. @@ -346,11 +318,9 @@ kubernetes.pem The Kubernetes Controller Manager leverages a key pair to generate and sign service account tokens as described in the [managing service accounts](https://kubernetes.io/docs/admin/service-accounts-admin/) documentation. -Generate the `service-account` certificate and private key: +On the `gateway-01` VM, generate the `service-account` certificate and private key: ```bash -{ - cat > service-account-csr.json < service-account-csr.json <