Page History
...
To make the Kubernetes cluster run according to your database environment, you can adjust the hibernate.cfg.xml file with your database credentials. The default file is MySql. You can use the hibernate.cfg.xml files of the other database from JS7 - Database.
The zip file, including the above configuration files, is js7-kubernetes.zip. After downloading the attached file, follow the below steps to deploy the container:
- Open CMD from the folder where you unzip the attached ZIP.
To
Run the command “kubectl create configmap hibernate-config --from-file=hibernate.cfg.xml” tocreate a config map and pass the and to pass this hibernate.cfg.xml file to the mount directory of the container
., follow the below command.
Code Block kubectl create configmap hibernate-config --from-file=hibernate.cfg.xml
To create the service of the JS7 configuration, you need to run the js7-service.yaml file:
Run the command to create the YAML: “kubectl create -fCode Block kubectl create -f
” tojs7-deployment.yaml
To create the deployment of
JS7.the JS7 configuration, you need to run the js7-deployment.yaml file:
Run the command to create the YAML: “kubectl create -fCode Block kubectl create -f
”js7-service.yaml
- kubectl describe pods - to check if there is any error or not.
- kubectl get pods - to check the status of pods
Once both the YAML files are executed successfully, you can get the pod's status. The Kubectl Get Pod is a command that displays the pods running in the Kubernetes cluster.
Code Block kubectl get pods
Once both the YAML files are executed successfully, you can describe Pod and check each step in the YAML file is executed successfully or not. The Kubectl Describe Pod is a command that describes any resource in Kubernetes. It shows data on a single or even a collection of resources.
Code Block kubectl describe pods
To check the IP and Port of the running JOC Cockpit, execute the kubectl get service command.
kubectl get service - to check the IP and port of the kubernetes clustersCode Block kubectl get service