fix windows parm values and herestring

pull/252/head
Mike Stevenson 2017-10-24 13:22:27 -07:00
parent a7be480b2c
commit 31f985a30d
1 changed files with 35 additions and 35 deletions

View File

@ -172,10 +172,10 @@ cfssl gencert \
#### Windows
```
cfssl gencert `
-ca=ca.pem `
-ca-key=ca-key.pem `
-config=ca-config.json `
-profile=kubernetes `
-ca ca.pem `
-ca-key ca-key.pem `
-config ca-config.json `
-profile kubernetes `
admin-csr.json | cfssljson -bare admin
```
@ -233,9 +233,9 @@ done
#### Windows
```
@('worker-0', 'worker-1', 'worker-2') | ForEach-Object {
New-Item $_-csr.json -Value @"
{
@('worker-0', 'worker-1', 'worker-2') | ForEach-Object {
New-Item $_-csr.json -Value @"
{
"CN": "system:node:$_",
"key": {
"algo": "rsa",
@ -250,23 +250,23 @@ done
"ST": "Oregon"
}
]
}
"@
}
"@
$EXTERNAL_IP=$(gcloud compute instances describe $_ `
$EXTERNAL_IP=$(gcloud compute instances describe $_ `
--format 'value(networkInterfaces[0].accessConfigs[0].natIP)')
$INTERNAL_IP=$(gcloud compute instances describe $_ `
$INTERNAL_IP=$(gcloud compute instances describe $_ `
--format 'value(networkInterfaces[0].networkIP)')
cfssl gencert `
cfssl gencert `
-ca ca.pem `
-ca-key ca-key.pem `
-config ca-config.json `
-hostname $_,$EXTERNAL_IP,$INTERNAL_IP `
-profile kubernetes `
$_-csr.json | cfssljson -bare $_
}
}
```
Results: