mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-18 01:50:40 +03:00
arglebargle
This commit is contained in:
@@ -233,7 +233,7 @@ done
|
|||||||
#### Windows
|
#### Windows
|
||||||
|
|
||||||
```
|
```
|
||||||
@(worker-0 worker-1 worker-2) | ForEach-Object {
|
@('worker-0', 'worker-1', 'worker-2') | ForEach-Object {
|
||||||
New-Item $_-csr.json -Value @"
|
New-Item $_-csr.json -Value @"
|
||||||
{
|
{
|
||||||
"CN": "system:node:$_",
|
"CN": "system:node:$_",
|
||||||
@@ -260,11 +260,11 @@ $INTERNAL_IP=$(gcloud compute instances describe $_ `
|
|||||||
--format 'value(networkInterfaces[0].networkIP)')
|
--format 'value(networkInterfaces[0].networkIP)')
|
||||||
|
|
||||||
cfssl gencert `
|
cfssl gencert `
|
||||||
-ca=ca.pem `
|
-ca ca.pem `
|
||||||
-ca-key=ca-key.pem `
|
-ca-key ca-key.pem `
|
||||||
-config=ca-config.json `
|
-config ca-config.json `
|
||||||
-hostname=$_,$EXTERNAL_IP,$INTERNAL_IP `
|
-hostname $_,$EXTERNAL_IP,$INTERNAL_IP `
|
||||||
-profile=kubernetes `
|
-profile kubernetes `
|
||||||
$_-csr.json | cfssljson -bare $_
|
$_-csr.json | cfssljson -bare $_
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -343,10 +343,10 @@ cfssl gencert \
|
|||||||
#### Windows
|
#### Windows
|
||||||
```
|
```
|
||||||
cfssl gencert `
|
cfssl gencert `
|
||||||
-ca=ca.pem `
|
-ca ca.pem `
|
||||||
-ca-key=ca-key.pem `
|
-ca-key ca-key.pem `
|
||||||
-config=ca-config.json `
|
-config ca-config.json `
|
||||||
-profile=kubernetes `
|
-profile kubernetes `
|
||||||
kube-proxy-csr.json | cfssljson -bare kube-proxy
|
kube-proxy-csr.json | cfssljson -bare kube-proxy
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -439,11 +439,11 @@ cfssl gencert \
|
|||||||
#### Windows
|
#### Windows
|
||||||
```
|
```
|
||||||
cfssl gencert `
|
cfssl gencert `
|
||||||
-ca=ca.pem `
|
-ca ca.pem `
|
||||||
-ca-key=ca-key.pem `
|
-ca-key ca-key.pem `
|
||||||
-config=ca-config.json `
|
-config ca-config.json `
|
||||||
-hostname=10.32.0.1,10.240.0.10,10.240.0.11,10.240.0.12,$KUBERNETES_PUBLIC_ADDRESS,127.0.0.1,kubernetes.default `
|
-hostname 10.32.0.1,10.240.0.10,10.240.0.11,10.240.0.12,$KUBERNETES_PUBLIC_ADDRESS,127.0.0.1,kubernetes.default `
|
||||||
-profile=kubernetes `
|
-profile kubernetes `
|
||||||
kubernetes-csr.json | cfssljson -bare kubernetes
|
kubernetes-csr.json | cfssljson -bare kubernetes
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user