Fixed indentation

pull/758/head
Tom English 2023-12-21 18:59:06 -05:00
parent a817be7b1e
commit de92ceaeea
1 changed files with 56 additions and 56 deletions

View File

@ -106,8 +106,8 @@ Generate a certificate and private key for each Kubernetes worker node:
```gcloud```
```
for instance in worker-0 worker-1 worker-2; do
cat > ${instance}-csr.json <<EOF
{
cat > ${instance}-csr.json <<EOF
{
"CN": "system:node:${instance}",
"key": {
"algo": "rsa",
@ -122,16 +122,16 @@ cat > ${instance}-csr.json <<EOF
"ST": "Oregon"
}
]
}
EOF
}
EOF
EXTERNAL_IP=$(gcloud compute instances describe ${instance} \
EXTERNAL_IP=$(gcloud compute instances describe ${instance} \
--format 'value(networkInterfaces[0].accessConfigs[0].natIP)')
INTERNAL_IP=$(gcloud compute instances describe ${instance} \
INTERNAL_IP=$(gcloud compute instances describe ${instance} \
--format 'value(networkInterfaces[0].networkIP)')
cfssl gencert \
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \
@ -144,8 +144,8 @@ done
```az```
```
for instance in worker-0 worker-1 worker-2; do
cat > ${instance}-csr.json <<EOF
{
cat > ${instance}-csr.json <<EOF
{
"CN": "system:node:${instance}",
"key": {
"algo": "rsa",
@ -160,14 +160,14 @@ cat > ${instance}-csr.json <<EOF
"ST": "Oregon"
}
]
}
EOF
}
EOF
EXTERNAL_IP=$(az vm show --name worker-0 -d --query publicIps -o tsv)
EXTERNAL_IP=$(az vm show --name ${instance} -d --query publicIps -o tsv)
INTERNAL_IP=$(az vm show --name ${instance} -d --query privateIps -o tsv)
INTERNAL_IP=$(az vm show --name ${instance} -d --query privateIps -o tsv)
cfssl gencert \
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \