Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

  1. Open CMD from the folder where you unzip the attached ZIP.  

  2. To

    Run the command “kubectl create configmap hibernate-config --from-file=hibernate.cfg.xml” to

    create 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
  3. To create the service of the JS7 configuration, you need to run the js7-service.yaml file:

    Code Block
    kubectl create -f 
    Run the command to create the YAML: “kubectl create -f
    js7-deployment.yaml
    ” to
  4. To create the deployment of

    JS7.

    the JS7 configuration, you need to run the js7-deployment.yaml file:

    Code Block
    kubectl create -f 
    Run the command to create the YAML: “kubectl create -f
    js7-service.yaml
  5. kubectl describe pods - to check if there is any error or not.
  6. kubectl get pods - to check the status of pods
  7. 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
  8. 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
  9. To check the IP and Port of the running JOC Cockpit, execute the kubectl get service command.

    Code Block
    kubectl get service
    kubectl get service - to check the IP and port of the kubernetes clusters