Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 297b733

Browse files
committed
adding index links to all pages
1 parent 9043f24 commit 297b733

File tree

24 files changed

+157
-137
lines changed

24 files changed

+157
-137
lines changed

01-path-basics/101-start-here/readme.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ You are now ready to continue on with the workshop!
9393
|image:button-continue-standard.png[link=../102-your-first-cluster/]
9494
|image:button-continue-developer.png[link=../102-your-first-cluster/]
9595
|image:button-continue-operations.png[link=../102-your-first-cluster/]
96-
|link:../../standard-path.adoc[Standard path index]
97-
|link:../../developer-path.adoc[Developer path index]
98-
|link:../../operations-path.adoc[Operations path index]
96+
|link:../../standard-path.adoc[Go to Standard Index]
97+
|link:../../developer-path.adoc[Go to Developer Index]
98+
|link:../../operations-path.adoc[Go to Operations Index]
9999
|=====
100100

101101
The next step is link:../102-your-first-cluster[to create a Kubernetes cluster using kops].

01-path-basics/102-your-first-cluster/readme.adoc

+7-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If you have not set up the link:../101-start-here[Cloud9 Devlopment Environment,
1212
1313
== Create a Kubernetes Cluster with kops
1414
15-
kops can be used to create a highly available cluster, with multiple master and worker nodes spread across multiple availability zones.
15+
kops can be used to create a highly available cluster, with multiple master and worker nodes spread across multiple availability zones.
1616
The master and worker nodes within the cluster can use either DNS or the https://github.com/weaveworks/mesh[Weave Mesh, window="_blank"] *gossip* protocol for name resolution. For this workshop, we will use the gossip protocol. A gossip-based cluster is easier and quicker to setup, and does not does not require a domain, subdomain, or Route53 hosted zone to be registered. Instructions for creating a DNS-based cluster are provided as an appendix at the bottom of this page.
1717
1818
To create a cluster using the gossip protocol, simply use a cluster name with a suffix of `.k8s.local`. In the following steps, we will use `example.cluster.k8s.local` as a sample gossip cluster name. You may choose a different name as long as it ends with `.k8s.local`.
@@ -165,6 +165,9 @@ You are now ready to continue on with the workshop!
165165
|image:button-continue-standard.png[link=../103-kubernetes-concepts/]
166166
|image:button-continue-developer.png[link=../103-kubernetes-concepts/]
167167
|image:button-continue-operations.png[link=../103-kubernetes-concepts/]
168+
|link:../../standard-path.adoc[Go to Standard Index]
169+
|link:../../developer-path.adoc[Go to Developer Index]
170+
|link:../../operations-path.adoc[Go to Operations Index]
168171
|=====
169172
The next step is link:../103-kubernetes-concepts[to learn about basic Kubernetes Concepts].
170173

@@ -221,7 +224,7 @@ Although most of the exercises in this workshop should work on a cluster with a
221224

222225
=== (Optional) Turn on an API version for your Cluster
223226

224-
Note: This section is for Kubebernetes 1.7.x, in 1.8.x the api is `batch/v1beta1`.
227+
Note: This section is for Kubebernetes 1.7.x, in 1.8.x the api is `batch/v1beta1`.
225228

226229
Kubernetes resources are created with a specific API version. The exact value is defined by the `apiVersion` attribute in the resource configuration file. Some of the values are `v1`, `extensions/v1beta1` or `batch/v1`. By default, resources with `apiVersion` values X, Y, Z are enabled. If a resource has a version with the word `alpha` in it, then that version needs to be explicitly enabled in the cluster. For example, if you are running a Kubernetes cluster of version 1.7.x, then Cron Job resource cannot be created unless `batch/v2alpha1` is explicitly enabled.
227230

@@ -301,7 +304,7 @@ The output clearly shows that `--runtime-config=batch/v2alpha1=true` is passed a
301304

302305
=== (Optional) Delete A Cluster
303306

304-
Note: If you are going through the workshop paths, please do not delete the cluster you just created!
307+
Note: If you are going through the workshop paths, please do not delete the cluster you just created!
305308

306309
This information is to show you how to delete a cluster.
307310
(We will also provide these instructions at the end of the workshop.)
@@ -357,7 +360,7 @@ Create a Kubernetes cluster using the following command. For the purposes of thi
357360

358361
The `create cluster` command only creates and stores the cluster config in the S3 bucket. Adding `--yes` option ensures that the cluster is immediately created as well.
359362

360-
Alternatively, you may leave off the `--yes` option from the `kops create cluster` command. This will allow you to use `kops edit cluster example.cluster.com` command to view the current cluster state and make changes before actually creating the cluster.
363+
Alternatively, you may leave off the `--yes` option from the `kops create cluster` command. This will allow you to use `kops edit cluster example.cluster.com` command to view the current cluster state and make changes before actually creating the cluster.
361364

362365
The cluster creation, in that case, is started with the following command:
363366

@@ -443,4 +446,3 @@ Your cluster example.cluster.com is ready
443446
Note that all masters are spread across different AZs.
444447

445448
Your output may differ from the one shown here based up on the type of cluster you created.
446-

01-path-basics/103-kubernetes-concepts/readme.adoc

+16-17
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Kubernetes as a platform has a number of abstractions that map to API objects. T
1414

1515
== Prerequisites
1616

17-
This chapter uses a cluster with 3 master nodes and 5 worker nodes as described link:../102-your-first-cluster#multi-master[here].
17+
This chapter uses a cluster with 3 master nodes and 5 worker nodes as described link:../102-your-first-cluster#multi-master[here].
1818

19-
All configuration files for this chapter are in the `01-path-basics/103-kubernetes-concepts/templates` directory.
19+
All configuration files for this chapter are in the `01-path-basics/103-kubernetes-concepts/templates` directory.
2020
Please be sure to `cd` into that directory before running the commands below.
2121

2222
$ cd 01-path-basics/103-kubernetes-concepts/templates
@@ -233,7 +233,7 @@ If the containers in the pod generate logs, then they can be seen using the comm
233233

234234
A Container in a Pod can be assigned memory and CPU _request_ and _limit_. Request is the minimum amount of memory/CPU that Kubernetes will give to the container. Limit is the maximum amount of memory/CPU that a container will be allowed to use. The memory/CPU request/limit for the Pod is the sum of the memory/CPU requests/limits for all the Containers in the Pod. Request defaults to limit if not specified. Default value of the limit is the node capacity.
235235

236-
A Pod can be scheduled on a node if the Pod's memory and CPU request can be met. Memory and CPU limits are not taken into consideration for scheduling.
236+
A Pod can be scheduled on a node if the Pod's memory and CPU request can be met. Memory and CPU limits are not taken into consideration for scheduling.
237237

238238
Pod can continue to operate on the node if Containers in the Pod does not exceed the memory request. If Containers in the Pod exceeds the memory request then they become target of eviction whenever the node runs out of memory. If Containers in the Pod exceeds the memory limit then they are terminated. If the Pod can be restarted, then kubelet will restart it, just like any other type of runtime failure. A Container might or might not be allowed to exceed its CPU limit for extended periods of time. However, it will not be killed for excessive usage.
239239

@@ -340,7 +340,7 @@ Watch the status of the Pod:
340340
wildfly-pod 1/1 Running 3 1m
341341
wildfly-pod 0/1 OOMKilled 3 1m
342342

343-
`OOMKilled` shows that the container was terminated because it ran out of memory.
343+
`OOMKilled` shows that the container was terminated because it ran out of memory.
344344

345345
In `pod-resources2.yaml`, change the value of `spec.containers[].resources.limits.memory` to `300Mi`. Delete the existing Pod, and create a new one:
346346

@@ -372,7 +372,7 @@ Kubernetes assigns one of the QoS classes to the Pod:
372372

373373
QoS class is used by Kubernetes for scheduling and evicting Pods.
374374

375-
When every Container in a Pod is given a memory and CPU limit, and optionally non-zero request, and they exactly match, then a Pod is scheduled with `Guaranteed` QoS. This is the higest priority.
375+
When every Container in a Pod is given a memory and CPU limit, and optionally non-zero request, and they exactly match, then a Pod is scheduled with `Guaranteed` QoS. This is the higest priority.
376376

377377
A Pod is given `Burstable` QoS class if the Pod does not meet the `Guaranteed` QoS and at least one Container has a memory or CPU request. This is intermediate priority.
378378

@@ -1373,7 +1373,7 @@ A new namespace can be created using a configuration file or `kubectl`.
13731373

13741374
. Create a new Namespace:
13751375

1376-
$ kubectl apply -f namespace.yaml
1376+
$ kubectl apply -f namespace.yaml
13771377
namespace "dev" created
13781378

13791379
. Get the list of Namespaces:
@@ -1402,31 +1402,31 @@ No resource limits.
14021402
+
14031403
. Create a Deployment in this new Namespace using a configuration file:
14041404
+
1405-
$ deployment-namespace.yaml
1405+
$ deployment-namespace.yaml
14061406
apiVersion: extensions/v1beta1
14071407
kind: Deployment
14081408
metadata:
14091409
name: nginx-deployment-ns
14101410
namespace: dev
14111411
spec:
1412-
replicas: 3
1412+
replicas: 3
14131413
template:
14141414
metadata:
14151415
labels:
1416-
app: nginx
1416+
app: nginx
14171417
spec:
14181418
containers:
1419-
- name: nginx
1419+
- name: nginx
14201420
image: nginx:1.12.1
1421-
ports:
1421+
ports:
14221422
- containerPort: 80
14231423
- containerPort: 443
14241424
+
14251425
The main change is the addition of `namespace: dev`.
14261426
+
14271427
. Create the Deployment:
14281428

1429-
$ kubectl apply -f deployment-namespace.yaml
1429+
$ kubectl apply -f deployment-namespace.yaml
14301430
deployment "nginx-deployment-ns" created
14311431

14321432
. Deployment in a Namespace can be queried by providing an additional switch `-n` as shown:
@@ -1449,7 +1449,7 @@ Alternatively, a namespace can be created using `kubectl` as well.
14491449

14501450
. Create a Deployment:
14511451

1452-
$ kubectl -n dev2 apply -f templates/deployment.yaml
1452+
$ kubectl -n dev2 apply -f templates/deployment.yaml
14531453
deployment "nginx-deployment-ns" created
14541454

14551455
. Get Deployments in the newly created Namespace:
@@ -1649,8 +1649,7 @@ You are now ready to continue on with the workshop!
16491649
|image:button-continue-standard.png[link=../../02-path-working-with-clusters/201-cluster-monitoring]
16501650
|image:button-continue-developer.png[link=../../03-path-application-development/301-local-development]
16511651
|image:button-continue-operations.png[link=../../02-path-working-with-clusters/201-cluster-monitoring]
1652+
|link:../../standard-path.adoc[Go to Standard Index]
1653+
|link:../../developer-path.adoc[Go to Developer Index]
1654+
|link:../../operations-path.adoc[Go to Operations Index]
16521655
|=====
1653-
1654-
1655-
1656-

02-path-working-with-clusters/201-cluster-monitoring/readme.adoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -329,4 +329,6 @@ You are now ready to continue on with the workshop!
329329
|=====
330330
|image:button-continue-standard.png[link=../../02-path-working-with-clusters/202-service-mesh]
331331
|image:button-continue-operations.png[link=../../02-path-working-with-clusters/202-service-mesh]
332-
|=====
332+
|link:../../standard-path.adoc[Go to Standard Index]
333+
|link:../../operations-path.adoc[Go to Operations Index]
334+
|=====

02-path-working-with-clusters/202-service-mesh/readme.adoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -475,5 +475,6 @@ You are now ready to continue on with the workshop!
475475
|=====
476476
|image:button-continue-standard.png[link=../../02-path-working-with-clusters/203-cluster-upgrades]
477477
|image:button-continue-operations.png[link=../../02-path-working-with-clusters/203-cluster-upgrades]
478-
|=====
479-
478+
|link:../../standard-path.adoc[Go to Standard Index]
479+
|link:../../operations-path.adoc[Go to Operations Index]
480+
|=====

02-path-working-with-clusters/203-cluster-upgrades/readme.adoc

+11-9
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ with 1.6.10 version and perform an automatic rolling upgrade to 1.7.2 using kops
1414

1515
=== Create cluster
1616

17-
Review steps to create link:../prereqs.adoc[prereqs] nad make sure `KOPS_STATE_STORE` and `AWS_AVAILABILITY_ZONES` environment variables are set. More details about creating a cluster are at link:../cluster-install[Create Kubernetes cluster using kops].
17+
Review steps to create link:../prereqs.adoc[prereqs] nad make sure `KOPS_STATE_STORE` and `AWS_AVAILABILITY_ZONES` environment variables are set. More details about creating a cluster are at link:../cluster-install[Create Kubernetes cluster using kops].
1818

1919
In this chapter, we'll create a Kubernetes 1.6.10 version cluster as shown:
2020

@@ -102,7 +102,7 @@ I1028 18:19:04.153174 10844 executor.go:91] Tasks: 78 done / 81 total; 3 can r
102102
I1028 18:19:04.575327 10844 executor.go:91] Tasks: 81 done / 81 total; 0 can run
103103
Will modify resources:
104104
LaunchConfiguration/master-eu-central-1a.masters.cluster.k8s.local
105-
UserData
105+
UserData
106106
...
107107
cat > kube_env.yaml << __EOF_KUBE_ENV
108108
Assets:
@@ -113,10 +113,10 @@ Will modify resources:
113113
- 1d9788b0f5420e1a219aad2cb8681823fc515e7c@https://storage.googleapis.com/kubernetes-release/network-plugins/cni-0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff.tar.gz
114114
- c18ca557507c662e3a072c3475da9bd1bc8a503b@https://kubeupv2.s3.amazonaws.com/kops/1.7.1/linux/amd64/utils.tar.gz
115115
...
116-
116+
117117

118118
LaunchConfiguration/master-eu-central-1b.masters.cluster.k8s.local
119-
UserData
119+
UserData
120120
...
121121
cat > kube_env.yaml << __EOF_KUBE_ENV
122122
Assets:
@@ -127,10 +127,10 @@ Will modify resources:
127127
- 1d9788b0f5420e1a219aad2cb8681823fc515e7c@https://storage.googleapis.com/kubernetes-release/network-plugins/cni-0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff.tar.gz
128128
- c18ca557507c662e3a072c3475da9bd1bc8a503b@https://kubeupv2.s3.amazonaws.com/kops/1.7.1/linux/amd64/utils.tar.gz
129129
...
130-
130+
131131

132132
LaunchConfiguration/master-eu-central-1c.masters.cluster.k8s.local
133-
UserData
133+
UserData
134134
...
135135
cat > kube_env.yaml << __EOF_KUBE_ENV
136136
Assets:
@@ -141,10 +141,10 @@ Will modify resources:
141141
- 1d9788b0f5420e1a219aad2cb8681823fc515e7c@https://storage.googleapis.com/kubernetes-release/network-plugins/cni-0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff.tar.gz
142142
- c18ca557507c662e3a072c3475da9bd1bc8a503b@https://kubeupv2.s3.amazonaws.com/kops/1.7.1/linux/amd64/utils.tar.gz
143143
...
144-
144+
145145

146146
LaunchConfiguration/nodes.cluster.k8s.local
147-
UserData
147+
UserData
148148
...
149149
cat > kube_env.yaml << __EOF_KUBE_ENV
150150
Assets:
@@ -155,7 +155,7 @@ Will modify resources:
155155
- 1d9788b0f5420e1a219aad2cb8681823fc515e7c@https://storage.googleapis.com/kubernetes-release/network-plugins/cni-0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff.tar.gz
156156
- c18ca557507c662e3a072c3475da9bd1bc8a503b@https://kubeupv2.s3.amazonaws.com/kops/1.7.1/linux/amd64/utils.tar.gz
157157
...
158-
158+
159159

160160
LoadBalancer/api.cluster.k8s.local
161161
Lifecycle <nil> -> Sync
@@ -298,4 +298,6 @@ You are now ready to continue on with the workshop!
298298
|=====
299299
|image:button-continue-standard.png[link=../../03-path-application-development/302-app-discovery]
300300
|image:button-continue-operations.png[link=../../02-path-working-with-clusters/204-cluster-logging-with-EFK]
301+
|link:../../standard-path.adoc[Go to Standard Index]
302+
|link:../../operations-path.adoc[Go to Operations Index]
301303
|=====

02-path-working-with-clusters/204-cluster-logging-with-EFK/readme.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Fluentd log group name and stream name are configured in the file `templates/flu
7575
num_threads 8
7676
</match>
7777

78-
It uses the default log group name of `kubernetes-logs` and the log stream name of `fluentd-cloudwatch`.
78+
It uses the default log group name of `kubernetes-logs` and the log stream name of `fluentd-cloudwatch`.
7979

8080
If you've followed the instructions in this chapter as is, then no change is required in this configuration file. However if a different log group name is used in the previous command or a different log stream name is needed, then that needs to be configured in this configuration file.
8181

@@ -247,5 +247,5 @@ You are now ready to continue on with the workshop!
247247
[align="center", cols="1", grid="none", frame="none"]
248248
|=====
249249
|image:button-continue-operations.png[link=../../02-path-working-with-clusters/204-cluster-logging-with-EFK]
250+
|link:../../operations-path.adoc[Go to Operations Index]
250251
|=====
251-

0 commit comments

Comments
 (0)