Page History
Table of Contents |
---|
Introduction
- JS7 can be set up using a Kubernetes cluster on a Server. Using the Linux-based JS7 images for Docker® containers which ship with a current Alpine base image and OpenJDK.
- Docker® images for JS7 are publicly available from https://hub.docker.com/r/sosberlin/js7.
- Instructions on how to run containers for JS7 components can be found in the articles listed below.
- You can run an application by creating a Kubernetes Deployment object, and you can describe a Deployment in a YAML file. To do so we need to first install and setup Kubernetes cluster, once it is completed you can use the deployment YAML files to deploy JS7.
Setting up a Kubernetes Cluster
...
Install Docker on all CentOS 7 VMs
Update the package database
Code Block sudo yum check-update
Install the dependencies
Code Block sudo yum install -y yum-utils device-mapper-persistent-data lvm2
Add and enable the official Docker Repository to CentOS 7
Code Block sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Install the latest Docker version on CentOS 7
Code Block sudo yum install docker-ce
A successful installation output will be concluded with a
Complete!
You may be prompted to accept the GPG key. This is to verify that the fingerprint matches. The format will look as follows. If correct, accept it.Code Block 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
Manage Docker service
Now Docker is installed, but the service is not yet running. Start and enable Docker using the commands.Code Block sudo systemctl start docker sudo systemctl enable docker
To confirm that Docker is active and running use:
Code Block sudo systemctl status docker
Set up the Kubernetes Repository
Since the Kubernetes packages aren’t present in the official CentOS 7 repositories, we will need to add a new repository file. Use the following command to create the file and open it for editing:
Code Block sudo vi /etc/yum.repos.d/kubernetes.repo
Once the file is open, press the I key to enter insert mode, and and paste the following contents:
Code Block [kubernetes] name=Kubernetes baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
Once pasted, press escape to exit insert mode. Then enter
:x
to save the file and exit.
Install Kubelet on CentOS 7
The first core module that we need to install on every node is Kubelet. Use the following command to do so:
Code Block sudo yum install -y kubelet
Install kubeadm and kubectl on CentOS 7
kubeadm, the next core module, which has to be installed. Use the following command:
Code Block sudo yum install -y kubeadm
(Note that kubeadm automatically installs kubectl as a dependency)
...