Skip to content

Commit fdfb616

Browse files
arun-guptarafabene
authored andcommitted
clarifying some text
1 parent 8d58b66 commit fdfb616

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

chapters/docker-kubernetes.adoc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## Java EE Application on Kubernetes Cluster
1+
## Java Application on Kubernetes Cluster
22

33
[quote, github.com/GoogleCloudPlatform/kubernetes/]
44
Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.
55

6-
Kubernetes, or "`k8s`" in short, allows the user to provide declarative primitives for the desired state, for example "`need 5 WildFly servers and 1 MySQL server running`". Kubernetes self-healing mechanisms, such as auto-restarting, re-scheduling, and replicating containers then ensure this state is met. The user just define the state and Kubernetes ensures that the state is met at all times on the cluster.
6+
Kubernetes, or "`k8s`" in short, allows the user to provide declarative primitives for the desired state, for example "`need 5 WildFly servers and 1 MySQL server running`". Kubernetes self-healing mechanisms, such as auto-restarting, re-scheduling, and replicating containers then ensure that this state is met. The user just define the state and Kubernetes ensures that the state is met at all times on the cluster.
77

88
*How is it related to Docker?*
99

@@ -45,7 +45,6 @@ Kubernetes cluster can be easily started using Vagrant. There are two options to
4545
[source, text]
4646
----
4747
cd kubernetes
48-
4948
export KUBERNETES_PROVIDER=vagrant
5049
./cluster/kube-up.sh
5150
----
@@ -65,6 +64,11 @@ Using credentials: vagrant:vagrant
6564

6665
. . .
6766

67+
Validate output:
68+
NAME STATUS MESSAGE ERROR
69+
controller-manager Healthy ok nil
70+
scheduler Healthy ok nil
71+
etcd-0 Healthy {"health": "true"} nil
6872
Cluster validation succeeded
6973
Done, listing cluster services:
7074

@@ -75,7 +79,7 @@ KubeUI is running at https://10.245.1.2/api/v1/proxy/namespaces/kube-system/serv
7579
+
7680
Note down the address for Kubernetes master, `https://10.245.1.2` in this case.
7781

78-
#### Download and Start the Cluster Together
82+
#### Download and Start the Kubernetes Cluster
7983

8084
. Alternatively, the cluster can also be started as:
8185
+
@@ -181,6 +185,7 @@ kubernetes> ./cluster/kubectl.sh get rc
181185
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
182186
----
183187

188+
[[Deploy_JavaEE_Kubernetes_Multiple_Config]]
184189
### Deploy Java EE Application (multiple configuration files)
185190

186191
Pods, and the IP addresses assigned to them, are ephemeral. If a pod dies then Kubernetes will recreate that pod because of its self-healing features, but it might recreate it on a different host. Even if it is on the same host, a different IP address could be assigned to it. And so any application cannot rely upon the IP address of the pod.
@@ -190,7 +195,7 @@ Kubernetes services is an abstraction which defines a logical set of pods. A ser
190195
.Kubernetes Service
191196
image::kubernetes-service.png[]
192197

193-
NOTE: In this case, all the pods are running on a single node. This is because, that is the default number for a Kubernetes cluster. The pod can very be on another node if more number of nodes are configured to start in the cluster.
198+
NOTE: In this case, all the pods are running on a single node. This is because, that is the default number for a Kubernetes cluster. The pod can be on another node if more number of nodes are configured to start in the cluster.
194199

195200
Any Service that a Pod wants to access must be created before the Pod itself, or else the environment variables will not be populated.
196201

@@ -395,7 +400,7 @@ Send a PR for https://github.com/javaee-samples/docker-java/issues/80
395400

396401
Kubernetes allow multiple resources to be specified in a single configuration file. This allows to create a "`Kubernetes Application`" that can consists of multiple resources easily.
397402

398-
Previous section showed how to deploy the Java EE application using multiple configuration files. This application can be delpoyed using a single configuration file as well.
403+
<<Deploy_JavaEE_Kubernetes_Multiple_Config>> showed how to deploy the Java EE application using multiple configuration files. This application can be delpoyed using a single configuration file as well.
399404

400405
. Start the application using the configuration file:
401406
+

0 commit comments

Comments
 (0)