Skip to content

Commit 80d6c16

Browse files
committed
minor changes to 103
1 parent 876d9fc commit 80d6c16

File tree

2 files changed

+8
-27
lines changed

2 files changed

+8
-27
lines changed

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

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,17 +1209,13 @@ Deleting a job deletes all the pods as well. Delete the job as:
12091209

12101210
=== Prerequisites
12111211

1212-
For Kubernetes cluster versions < 1.8, Cron Job can be created with API version `batch/v2alpha1`. You can check the cluster version using this command,
1212+
For Kubernetes cluster versions < 1.8, Cron Job can be created with API version `batch/v2alpha1`. You need to explicitly enable API version `batch/v2alpha1` in Kubernetes cluster and perform a rolling-update.
12131213

1214-
$ kubectl version
1215-
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.1", GitCommit:"f38e43b221d08850172a9a4ea785a86a3ffa3b3a", GitTreeState:"clean", BuildDate:"2017-10-12T00:45:05Z", GoVersion:"go1.9.1", Compiler:"gc", Platform:"darwin/amd64"}
1216-
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.4", GitCommit:"793658f2d7ca7f064d2bdf606519f9fe1229c381", GitTreeState:"clean", BuildDate:"2017-08-17T08:30:51Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
1214+
If you use *Amazon EKS* for provisioning your Kubernetes cluster, your version should be >= v1.10 and you can proceed without any changes. You can check the cluster version using this command,
12171215

1218-
Notice that the server version is at v1.7.4. In this case, you need to explicitly enable API version `batch/v2alpha1` in Kubernetes cluster and perform a rolling-update. These steps are explained in link:../cluster-install#turn-on-an-api-version-for-your-cluster[Turn on an API version for your cluster].
1219-
1220-
NOTE: Once you switch API versions, you need to perform rolling-update of the cluster which generally takes 30 - 45 mins to complete for 3 master nodes and 5 worker nodes cluster.
1221-
1222-
If you have cluster version >= 1.8, `batch/v2alpha1` API is deprecated for this version but you can switch to `batch/v1beta1` to create Cron Jobs
1216+
$ kubectl version
1217+
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.3", GitCommit:"2bba0127d85d5a46ab4b778548be28623b32d0b0", GitTreeState:"clean", BuildDate:"2018-05-28T20:16:17Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
1218+
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.3", GitCommit:"2bba0127d85d5a46ab4b778548be28623b32d0b0", GitTreeState:"clean", BuildDate:"2018-05-28T20:13:43Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
12231219

12241220
=== Create Cron Job
12251221

@@ -1578,7 +1574,7 @@ The error message indicates that a ResourceQuota is in effect, and that the Pod
15781574

15791575
Update the configuration file to:
15801576

1581-
$ cat pod-memory.yaml
1577+
$ cat pod-cpu-memory.yaml
15821578
apiVersion: v1
15831579
kind: Pod
15841580
metadata:
@@ -1597,15 +1593,15 @@ Update the configuration file to:
15971593

15981594
There is an explicity memory resource defined here. Now, try to create the pod:
15991595

1600-
$ kubectl apply -f pod-memory.yaml
1596+
$ kubectl apply -f pod-cpu-memory.yaml
16011597
pod "nginx-pod" created
16021598

16031599
The Pod is successfully created.
16041600

16051601
Get more details about the Pod:
16061602

16071603
$ kubectl get pod/nginx-pod -o jsonpath={.spec.containers[].resources}
1608-
map[requests:map[cpu:100m memory:100m]]
1604+
map[requests:map[cpu:1 memory:100m]
16091605

16101606
Get more details about the ResourceQuota:
16111607

01-path-basics/103-kubernetes-concepts/templates/pod-memory.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)