changes plain to plaintext
parent
083ea4e26a
commit
1017abd022
|
@ -56,7 +56,7 @@ cfssl version
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
Version: 1.3.4
|
||||
Revision: dev
|
||||
Runtime: go1.13
|
||||
|
@ -113,7 +113,7 @@ kubectl version --client
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T11:13:54Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
|
||||
```
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ gcloud compute firewall-rules list --filter="network:kubernetes-the-hard-way"
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME NETWORK DIRECTION PRIORITY ALLOW DENY
|
||||
kubernetes-the-hard-way-allow-external kubernetes-the-hard-way INGRESS 1000 tcp:22,tcp:6443,icmp
|
||||
kubernetes-the-hard-way-allow-internal kubernetes-the-hard-way INGRESS 1000 tcp,udp,icmp
|
||||
|
@ -85,7 +85,7 @@ gcloud compute addresses list --filter="name=('kubernetes-the-hard-way')"
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME REGION ADDRESS STATUS
|
||||
kubernetes-the-hard-way us-west1 XX.XXX.XXX.XX RESERVED
|
||||
```
|
||||
|
@ -149,7 +149,7 @@ gcloud compute instances list
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
|
||||
controller-0 us-west1-c n1-standard-1 10.240.0.10 XX.XXX.XXX.XXX RUNNING
|
||||
controller-1 us-west1-c n1-standard-1 10.240.0.11 XX.XXX.X.XX RUNNING
|
||||
|
@ -171,7 +171,7 @@ gcloud compute ssh controller-0
|
|||
|
||||
If this is your first time connecting to a compute instance SSH keys will be generated for you. Enter a passphrase at the prompt to continue:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
WARNING: The public SSH key file for gcloud does not exist.
|
||||
WARNING: The private SSH key file for gcloud does not exist.
|
||||
WARNING: You do not have an SSH key for gcloud.
|
||||
|
@ -183,7 +183,7 @@ Enter same passphrase again:
|
|||
|
||||
At this point the generated SSH keys will be uploaded and stored in your project:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
Your identification has been saved in /home/$USER/.ssh/google_compute_engine.
|
||||
Your public key has been saved in /home/$USER/.ssh/google_compute_engine.pub.
|
||||
The key fingerprint is:
|
||||
|
@ -207,7 +207,7 @@ Waiting for SSH key to propagate.
|
|||
|
||||
After the SSH keys have been updated you'll be logged into the `controller-0` instance:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-1042-gcp x86_64)
|
||||
...
|
||||
|
||||
|
@ -221,7 +221,7 @@ $USER@controller-0:~$ exit
|
|||
```
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
logout
|
||||
Connection to XX.XXX.XXX.XXX closed
|
||||
```
|
||||
|
|
|
@ -53,7 +53,7 @@ cfssl gencert -initca ca-csr.json | cfssljson -bare ca
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
ca-key.pem
|
||||
ca.pem
|
||||
```
|
||||
|
@ -100,7 +100,7 @@ cfssl gencert \
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
admin-key.pem
|
||||
admin.pem
|
||||
```
|
||||
|
@ -150,7 +150,7 @@ done
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
worker-0-key.pem
|
||||
worker-0.pem
|
||||
worker-1-key.pem
|
||||
|
@ -197,7 +197,7 @@ cfssl gencert \
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
kube-controller-manager-key.pem
|
||||
kube-controller-manager.pem
|
||||
```
|
||||
|
@ -241,7 +241,7 @@ cfssl gencert \
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
kube-proxy-key.pem
|
||||
kube-proxy.pem
|
||||
```
|
||||
|
@ -284,7 +284,7 @@ cfssl gencert \
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
kube-scheduler-key.pem
|
||||
kube-scheduler.pem
|
||||
```
|
||||
|
@ -339,7 +339,7 @@ cfssl gencert \
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
kubernetes-key.pem
|
||||
kubernetes.pem
|
||||
```
|
||||
|
@ -384,7 +384,7 @@ cfssl gencert \
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
service-account-key.pem
|
||||
service-account.pem
|
||||
```
|
||||
|
|
|
@ -51,7 +51,7 @@ done
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
worker-0.kubeconfig
|
||||
worker-1.kubeconfig
|
||||
worker-2.kubeconfig
|
||||
|
@ -86,7 +86,7 @@ Generate a kubeconfig file for the `kube-proxy` service:
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
kube-proxy.kubeconfig
|
||||
```
|
||||
|
||||
|
@ -119,7 +119,7 @@ Generate a kubeconfig file for the `kube-controller-manager` service:
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
kube-controller-manager.kubeconfig
|
||||
```
|
||||
|
||||
|
@ -153,7 +153,7 @@ Generate a kubeconfig file for the `kube-scheduler` service:
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
kube-scheduler.kubeconfig
|
||||
```
|
||||
|
||||
|
@ -186,7 +186,7 @@ Generate a kubeconfig file for the `admin` user:
|
|||
|
||||
Results:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
admin.kubeconfig
|
||||
```
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ sudo ETCDCTL_API=3 etcdctl member list \
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
3a57933972cb5131, started, controller-2, https://10.240.0.12:2380, https://10.240.0.12:2379
|
||||
f98dc20bce6225a0, started, controller-0, https://10.240.0.10:2380, https://10.240.0.10:2379
|
||||
ffed16798470cab5, started, controller-1, https://10.240.0.11:2380, https://10.240.0.11:2379
|
||||
|
|
|
@ -249,7 +249,7 @@ sudo systemctl enable nginx
|
|||
kubectl get componentstatuses --kubeconfig admin.kubeconfig
|
||||
```
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME STATUS MESSAGE ERROR
|
||||
controller-manager Healthy ok
|
||||
scheduler Healthy ok
|
||||
|
@ -264,7 +264,7 @@ Test the nginx HTTP health check proxy:
|
|||
curl -H "Host: kubernetes.default.svc.cluster.local" -i http://127.0.0.1/healthz
|
||||
```
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
HTTP/1.1 200 OK
|
||||
Server: nginx/1.14.0 (Ubuntu)
|
||||
Date: Sat, 14 Sep 2019 18:34:11 GMT
|
||||
|
|
|
@ -303,7 +303,7 @@ gcloud compute ssh controller-0 \
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME STATUS ROLES AGE VERSION
|
||||
worker-0 Ready <none> 15s v1.15.3
|
||||
worker-1 Ready <none> 15s v1.15.3
|
||||
|
|
|
@ -43,7 +43,7 @@ kubectl get componentstatuses
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME STATUS MESSAGE ERROR
|
||||
controller-manager Healthy ok
|
||||
scheduler Healthy ok
|
||||
|
@ -60,7 +60,7 @@ kubectl get nodes
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME STATUS ROLES AGE VERSION
|
||||
worker-0 Ready <none> 2m9s v1.15.3
|
||||
worker-1 Ready <none> 2m9s v1.15.3
|
||||
|
|
|
@ -21,7 +21,7 @@ done
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
10.240.0.20 10.200.0.0/24
|
||||
10.240.0.21 10.200.1.0/24
|
||||
10.240.0.22 10.200.2.0/24
|
||||
|
@ -48,7 +48,7 @@ gcloud compute routes list --filter "network: kubernetes-the-hard-way"
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME NETWORK DEST_RANGE NEXT_HOP PRIORITY
|
||||
default-route-081879136902de56 kubernetes-the-hard-way 10.240.0.0/24 kubernetes-the-hard-way 1000
|
||||
default-route-55199a5aa126d7aa kubernetes-the-hard-way 0.0.0.0/0 default-internet-gateway 1000
|
||||
|
|
|
@ -12,7 +12,7 @@ kubectl apply -f https://storage.googleapis.com/kubernetes-the-hard-way/coredns.
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
serviceaccount/coredns created
|
||||
clusterrole.rbac.authorization.k8s.io/system:coredns created
|
||||
clusterrolebinding.rbac.authorization.k8s.io/system:coredns created
|
||||
|
@ -29,7 +29,7 @@ kubectl get pods -l k8s-app=kube-dns -n kube-system
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
coredns-699f8ddd77-94qv9 1/1 Running 0 20s
|
||||
coredns-699f8ddd77-gtcgb 1/1 Running 0 20s
|
||||
|
@ -51,7 +51,7 @@ kubectl get pods -l run=busybox
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
busybox 1/1 Running 0 3s
|
||||
```
|
||||
|
@ -70,7 +70,7 @@ kubectl exec -ti $POD_NAME -- nslookup kubernetes
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
Server: 10.32.0.10
|
||||
Address 1: 10.32.0.10 kube-dns.kube-system.svc.cluster.local
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ gcloud compute ssh controller-0 \
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
00000000 2f 72 65 67 69 73 74 72 79 2f 73 65 63 72 65 74 |/registry/secret|
|
||||
00000010 73 2f 64 65 66 61 75 6c 74 2f 6b 75 62 65 72 6e |s/default/kubern|
|
||||
00000020 65 74 65 73 2d 74 68 65 2d 68 61 72 64 2d 77 61 |etes-the-hard-wa|
|
||||
|
@ -65,7 +65,7 @@ kubectl get pods -l app=nginx
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-554b9c67f9-vt5rn 1/1 Running 0 10s
|
||||
```
|
||||
|
@ -88,7 +88,7 @@ kubectl port-forward $POD_NAME 8080:80
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
Forwarding from 127.0.0.1:8080 -> 80
|
||||
Forwarding from [::1]:8080 -> 80
|
||||
```
|
||||
|
@ -101,7 +101,7 @@ curl --head http://127.0.0.1:8080
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
HTTP/1.1 200 OK
|
||||
Server: nginx/1.17.3
|
||||
Date: Sat, 14 Sep 2019 21:10:11 GMT
|
||||
|
@ -115,7 +115,7 @@ Accept-Ranges: bytes
|
|||
|
||||
Switch back to the previous terminal and stop the port forwarding to the `nginx` pod:
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
Forwarding from 127.0.0.1:8080 -> 80
|
||||
Forwarding from [::1]:8080 -> 80
|
||||
Handling connection for 8080
|
||||
|
@ -134,7 +134,7 @@ kubectl logs $POD_NAME
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
127.0.0.1 - - [14/Sep/2019:21:10:11 +0000] "HEAD / HTTP/1.1" 200 0 "-" "curl/7.52.1" "-"
|
||||
```
|
||||
|
||||
|
@ -150,7 +150,7 @@ kubectl exec -ti $POD_NAME -- nginx -v
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
nginx version: nginx/1.17.3
|
||||
```
|
||||
|
||||
|
@ -196,7 +196,7 @@ curl -I http://${EXTERNAL_IP}:${NODE_PORT}
|
|||
|
||||
> output
|
||||
|
||||
```plain
|
||||
```plaintext
|
||||
HTTP/1.1 200 OK
|
||||
Server: nginx/1.17.3
|
||||
Date: Sat, 14 Sep 2019 21:12:35 GMT
|
||||
|
|
Loading…
Reference in New Issue