changes plain to plaintext

pull/586/head
Sean Lerner 2020-07-03 13:18:06 -04:00
parent 083ea4e26a
commit 1017abd022
11 changed files with 42 additions and 42 deletions

View File

@ -56,7 +56,7 @@ cfssl version
> output > output
```plain ```plaintext
Version: 1.3.4 Version: 1.3.4
Revision: dev Revision: dev
Runtime: go1.13 Runtime: go1.13
@ -113,7 +113,7 @@ kubectl version --client
> output > 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"} 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"}
``` ```

View File

@ -62,7 +62,7 @@ gcloud compute firewall-rules list --filter="network:kubernetes-the-hard-way"
> output > output
```plain ```plaintext
NAME NETWORK DIRECTION PRIORITY ALLOW DENY 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-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 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 > output
```plain ```plaintext
NAME REGION ADDRESS STATUS NAME REGION ADDRESS STATUS
kubernetes-the-hard-way us-west1 XX.XXX.XXX.XX RESERVED kubernetes-the-hard-way us-west1 XX.XXX.XXX.XX RESERVED
``` ```
@ -149,7 +149,7 @@ gcloud compute instances list
> output > output
```plain ```plaintext
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS 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-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 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: 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 public SSH key file for gcloud does not exist.
WARNING: The private 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. 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: 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 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. Your public key has been saved in /home/$USER/.ssh/google_compute_engine.pub.
The key fingerprint is: 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: 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) 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 > output
```plain ```plaintext
logout logout
Connection to XX.XXX.XXX.XXX closed Connection to XX.XXX.XXX.XXX closed
``` ```

View File

@ -53,7 +53,7 @@ cfssl gencert -initca ca-csr.json | cfssljson -bare ca
Results: Results:
```plain ```plaintext
ca-key.pem ca-key.pem
ca.pem ca.pem
``` ```
@ -100,7 +100,7 @@ cfssl gencert \
Results: Results:
```plain ```plaintext
admin-key.pem admin-key.pem
admin.pem admin.pem
``` ```
@ -150,7 +150,7 @@ done
Results: Results:
```plain ```plaintext
worker-0-key.pem worker-0-key.pem
worker-0.pem worker-0.pem
worker-1-key.pem worker-1-key.pem
@ -197,7 +197,7 @@ cfssl gencert \
Results: Results:
```plain ```plaintext
kube-controller-manager-key.pem kube-controller-manager-key.pem
kube-controller-manager.pem kube-controller-manager.pem
``` ```
@ -241,7 +241,7 @@ cfssl gencert \
Results: Results:
```plain ```plaintext
kube-proxy-key.pem kube-proxy-key.pem
kube-proxy.pem kube-proxy.pem
``` ```
@ -284,7 +284,7 @@ cfssl gencert \
Results: Results:
```plain ```plaintext
kube-scheduler-key.pem kube-scheduler-key.pem
kube-scheduler.pem kube-scheduler.pem
``` ```
@ -339,7 +339,7 @@ cfssl gencert \
Results: Results:
```plain ```plaintext
kubernetes-key.pem kubernetes-key.pem
kubernetes.pem kubernetes.pem
``` ```
@ -384,7 +384,7 @@ cfssl gencert \
Results: Results:
```plain ```plaintext
service-account-key.pem service-account-key.pem
service-account.pem service-account.pem
``` ```

View File

@ -51,7 +51,7 @@ done
Results: Results:
```plain ```plaintext
worker-0.kubeconfig worker-0.kubeconfig
worker-1.kubeconfig worker-1.kubeconfig
worker-2.kubeconfig worker-2.kubeconfig
@ -86,7 +86,7 @@ Generate a kubeconfig file for the `kube-proxy` service:
Results: Results:
```plain ```plaintext
kube-proxy.kubeconfig kube-proxy.kubeconfig
``` ```
@ -119,7 +119,7 @@ Generate a kubeconfig file for the `kube-controller-manager` service:
Results: Results:
```plain ```plaintext
kube-controller-manager.kubeconfig kube-controller-manager.kubeconfig
``` ```
@ -153,7 +153,7 @@ Generate a kubeconfig file for the `kube-scheduler` service:
Results: Results:
```plain ```plaintext
kube-scheduler.kubeconfig kube-scheduler.kubeconfig
``` ```
@ -186,7 +186,7 @@ Generate a kubeconfig file for the `admin` user:
Results: Results:
```plain ```plaintext
admin.kubeconfig admin.kubeconfig
``` ```

View File

@ -118,7 +118,7 @@ sudo ETCDCTL_API=3 etcdctl member list \
> output > output
```plain ```plaintext
3a57933972cb5131, started, controller-2, https://10.240.0.12:2380, https://10.240.0.12:2379 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 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 ffed16798470cab5, started, controller-1, https://10.240.0.11:2380, https://10.240.0.11:2379

View File

@ -249,7 +249,7 @@ sudo systemctl enable nginx
kubectl get componentstatuses --kubeconfig admin.kubeconfig kubectl get componentstatuses --kubeconfig admin.kubeconfig
``` ```
```plain ```plaintext
NAME STATUS MESSAGE ERROR NAME STATUS MESSAGE ERROR
controller-manager Healthy ok controller-manager Healthy ok
scheduler 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 curl -H "Host: kubernetes.default.svc.cluster.local" -i http://127.0.0.1/healthz
``` ```
```plain ```plaintext
HTTP/1.1 200 OK HTTP/1.1 200 OK
Server: nginx/1.14.0 (Ubuntu) Server: nginx/1.14.0 (Ubuntu)
Date: Sat, 14 Sep 2019 18:34:11 GMT Date: Sat, 14 Sep 2019 18:34:11 GMT

View File

@ -303,7 +303,7 @@ gcloud compute ssh controller-0 \
> output > output
```plain ```plaintext
NAME STATUS ROLES AGE VERSION NAME STATUS ROLES AGE VERSION
worker-0 Ready <none> 15s v1.15.3 worker-0 Ready <none> 15s v1.15.3
worker-1 Ready <none> 15s v1.15.3 worker-1 Ready <none> 15s v1.15.3

View File

@ -43,7 +43,7 @@ kubectl get componentstatuses
> output > output
```plain ```plaintext
NAME STATUS MESSAGE ERROR NAME STATUS MESSAGE ERROR
controller-manager Healthy ok controller-manager Healthy ok
scheduler Healthy ok scheduler Healthy ok
@ -60,7 +60,7 @@ kubectl get nodes
> output > output
```plain ```plaintext
NAME STATUS ROLES AGE VERSION NAME STATUS ROLES AGE VERSION
worker-0 Ready <none> 2m9s v1.15.3 worker-0 Ready <none> 2m9s v1.15.3
worker-1 Ready <none> 2m9s v1.15.3 worker-1 Ready <none> 2m9s v1.15.3

View File

@ -21,7 +21,7 @@ done
> output > output
```plain ```plaintext
10.240.0.20 10.200.0.0/24 10.240.0.20 10.200.0.0/24
10.240.0.21 10.200.1.0/24 10.240.0.21 10.200.1.0/24
10.240.0.22 10.200.2.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 > output
```plain ```plaintext
NAME NETWORK DEST_RANGE NEXT_HOP PRIORITY 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-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 default-route-55199a5aa126d7aa kubernetes-the-hard-way 0.0.0.0/0 default-internet-gateway 1000

View File

@ -12,7 +12,7 @@ kubectl apply -f https://storage.googleapis.com/kubernetes-the-hard-way/coredns.
> output > output
```plain ```plaintext
serviceaccount/coredns created serviceaccount/coredns created
clusterrole.rbac.authorization.k8s.io/system:coredns created clusterrole.rbac.authorization.k8s.io/system:coredns created
clusterrolebinding.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 > output
```plain ```plaintext
NAME READY STATUS RESTARTS AGE NAME READY STATUS RESTARTS AGE
coredns-699f8ddd77-94qv9 1/1 Running 0 20s coredns-699f8ddd77-94qv9 1/1 Running 0 20s
coredns-699f8ddd77-gtcgb 1/1 Running 0 20s coredns-699f8ddd77-gtcgb 1/1 Running 0 20s
@ -51,7 +51,7 @@ kubectl get pods -l run=busybox
> output > output
```plain ```plaintext
NAME READY STATUS RESTARTS AGE NAME READY STATUS RESTARTS AGE
busybox 1/1 Running 0 3s busybox 1/1 Running 0 3s
``` ```
@ -70,7 +70,7 @@ kubectl exec -ti $POD_NAME -- nslookup kubernetes
> output > output
```plain ```plaintext
Server: 10.32.0.10 Server: 10.32.0.10
Address 1: 10.32.0.10 kube-dns.kube-system.svc.cluster.local Address 1: 10.32.0.10 kube-dns.kube-system.svc.cluster.local

View File

@ -27,7 +27,7 @@ gcloud compute ssh controller-0 \
> output > output
```plain ```plaintext
00000000 2f 72 65 67 69 73 74 72 79 2f 73 65 63 72 65 74 |/registry/secret| 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| 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| 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 > output
```plain ```plaintext
NAME READY STATUS RESTARTS AGE NAME READY STATUS RESTARTS AGE
nginx-554b9c67f9-vt5rn 1/1 Running 0 10s nginx-554b9c67f9-vt5rn 1/1 Running 0 10s
``` ```
@ -88,7 +88,7 @@ kubectl port-forward $POD_NAME 8080:80
> output > output
```plain ```plaintext
Forwarding from 127.0.0.1:8080 -> 80 Forwarding from 127.0.0.1:8080 -> 80
Forwarding from [::1]:8080 -> 80 Forwarding from [::1]:8080 -> 80
``` ```
@ -101,7 +101,7 @@ curl --head http://127.0.0.1:8080
> output > output
```plain ```plaintext
HTTP/1.1 200 OK HTTP/1.1 200 OK
Server: nginx/1.17.3 Server: nginx/1.17.3
Date: Sat, 14 Sep 2019 21:10:11 GMT 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: 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 127.0.0.1:8080 -> 80
Forwarding from [::1]:8080 -> 80 Forwarding from [::1]:8080 -> 80
Handling connection for 8080 Handling connection for 8080
@ -134,7 +134,7 @@ kubectl logs $POD_NAME
> output > output
```plain ```plaintext
127.0.0.1 - - [14/Sep/2019:21:10:11 +0000] "HEAD / HTTP/1.1" 200 0 "-" "curl/7.52.1" "-" 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 > output
```plain ```plaintext
nginx version: nginx/1.17.3 nginx version: nginx/1.17.3
``` ```
@ -196,7 +196,7 @@ curl -I http://${EXTERNAL_IP}:${NODE_PORT}
> output > output
```plain ```plaintext
HTTP/1.1 200 OK HTTP/1.1 200 OK
Server: nginx/1.17.3 Server: nginx/1.17.3
Date: Sat, 14 Sep 2019 21:12:35 GMT Date: Sat, 14 Sep 2019 21:12:35 GMT