adding windows commands

pull/252/head
Mike Stevenson 2017-10-25 15:38:16 -07:00
parent 905485f57c
commit e36064e4dc
1 changed files with 49 additions and 0 deletions

View File

@ -6,16 +6,25 @@ In this labs you will delete the compute resources created during this tutorial.
Delete the controller and worker compute instances:
#### Linux & OS X
```
gcloud -q compute instances delete \
controller-0 controller-1 controller-2 \
worker-0 worker-1 worker-2
```
#### Windows
```
gcloud -q compute instances delete `
controller-0 controller-1 controller-2 `
worker-0 worker-1 worker-2
```
## Networking
Delete the external load balancer network resources:
#### Linux & OS X
```
gcloud -q compute forwarding-rules delete kubernetes-forwarding-rule \
--region $(gcloud config get-value compute/region)
@ -25,6 +34,16 @@ gcloud -q compute forwarding-rules delete kubernetes-forwarding-rule \
gcloud -q compute target-pools delete kubernetes-target-pool
```
#### Windows
```
gcloud -q compute forwarding-rules delete kubernetes-forwarding-rule `
--region $(gcloud config get-value compute/region)
```
```
gcloud -q compute target-pools delete kubernetes-target-pool
```
Delete the `kubernetes-the-hard-way` static IP address:
```
@ -33,6 +52,7 @@ gcloud -q compute addresses delete kubernetes-the-hard-way
Delete the `kubernetes-the-hard-way` firewall rules:
#### Linux & OS X
```
gcloud -q compute firewall-rules delete \
kubernetes-the-hard-way-allow-nginx-service \
@ -40,8 +60,17 @@ gcloud -q compute firewall-rules delete \
kubernetes-the-hard-way-allow-external
```
#### Windows
```
gcloud -q compute firewall-rules delete `
kubernetes-the-hard-way-allow-nginx-service `
kubernetes-the-hard-way-allow-internal `
kubernetes-the-hard-way-allow-external
```
Delete the Pod network routes:
#### Linux & OS X
```
gcloud -q compute routes delete \
kubernetes-route-10-200-0-0-24 \
@ -49,6 +78,14 @@ gcloud -q compute routes delete \
kubernetes-route-10-200-2-0-24
```
#### Windows
```
gcloud -q compute routes delete `
kubernetes-route-10-200-0-0-24 `
kubernetes-route-10-200-1-0-24 `
kubernetes-route-10-200-2-0-24
```
Delete the `kubernetes` subnet:
```
@ -60,3 +97,15 @@ Delete the `kubernetes-the-hard-way` network VPC:
```
gcloud -q compute networks delete kubernetes-the-hard-way
```
## CA Certificate
#### Windows
Remove the CA certificate from the Root Certificates keystore:
```
Get-ChildTtem -Path Cert:\CurrentUser\Root\ | Where-Object {
$_.Thumbprint -eq (Get-PfxCertificate .\ca.pem).Thumbprint } | Remove-Item
```
Confirm the certificate details in the confirmation dialog box, and click Yes to continue.