Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
There are several basic and essential concepts that need to be understood:
A Kubernetes cluster consists of one or more nodes. Nodes are machines (VMs, physical servers, etc) that run the applications.
A Pod is the smallest Kubernetes object that contains one or more containers, storage resources, network IP and other configuration.
A Service defines a set of Pods and how they are accessed.
A Volume is a shared storage for containers, and many different types are supported.
These Kubernetes objects are defined in YAML format in .yaml files
A command line interface tool, kubectl, is used to manage these objects via the Kubernetes API.
Simplified view of Kubernetes objects
There are many more concepts in Kubernetes, but the basic ones above should suffice to get started with Kubernetes.
There are many Kubernetes solutions available for different requirements from different providers, ranging from community tools for local testing, to production environments from cloud providers and enterprise vendors.
For the purpose of this tutorial we’ll use Minikube, a tool that runs a single-node Kubernetes cluster in a virtual machine for local development and testing. We’ll be using a Mac running macOS, but you can adapt the instructions for your OS.curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl \ && chmod +x ./kubectl
2. Move the binary to your PATH:
sudo mv ./kubectl /usr/local/bin/kubectl
3. Test to ensure the version you installed is up-to-date:
kubectl version
Full instructions are at https://kubernetes.io/docs/tasks/tools/install-kubectl/
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \ && chmod +x minikube
2. Move the binary to your PATH:
sudo mv minikube /usr/local/bin
Full instructions are available at https://kubernetes.io/docs/tasks/tools/install-minikube/
minikube start
The output will be similar to this:
minikube v1.8.1 on Darwin 10.14.6 Automatically selected the hyperkit driver Downloading VM boot image ... Creating hyperkit VM (CPUs=2, Memory=3072MB, Disk=20000MB) ... Preparing Kubernetes v1.17.3 on Docker 19.03.6 ... Launching Kubernetes ... Enabling addons: default-storageclass, storage-provisioner Waiting for cluster to come online ... Done! kubectl is now configured to use "minikube"
2. Install Ingress on Minikube for external access:
minikube addons enable ingress
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10
2. Expose the service so that external connections can be made
kubectl expose deployment hello-minikube --type=NodePort --port=8080
3. Inspect the pod
kubectl get pod
4. Once the STATUS is Running, test the service using curl
curl $(minikube service hello-minikube --url)
5. Delete the service and deployment
kubectl delete services hello-minikube kubectl delete deployment hello-minikube
Full instructions are available at https://kubernetes.io/docs/setup/minikube/#quickstart
kubectl apply -f https://k8s.io/examples/application/mysql/mysql-pv.yaml
2. Deploy the MySQL image
kubectl apply -f https://k8s.io/examples/application/mysql/mysql-deployment.yaml
3. Inspect the deployment
kubectl describe deployment mysql kubectl get pods -l app=mysql kubectl describe pvc mysql-pv-claim
4. Run MySQL client to test
kubectl run -it --rm --image=mysql:5.6 --restart=Never mysql-client -- mysql -h mysql -ppassword
Full instructions are available at https://kubernetes.io/docs/tasks/run-application/run-single-instance-stateful-application/
1. Deploy joget image using an example YAML file. Download the contents of joget-dx7-tomcat9-deployment.yaml into a file with the same name and run kubectl.
kubectl apply -f joget-dx7-tomcat9-deployment.yaml
2. Inspect the deployment
kubectl describe deployment joget-dx7-tomcat9 kubectl get pods -l app=joget-dx7-tomcat9
3. Once the STATUS is Running, get the URL for the service
minikube service joget-dx7-tomcat9 --url
4. Access the URL in a browser in the path to access the Joget App Center e.g. http://192.168.99.100:32496/
You now have a running installation of Joget, and you’ll be able to visually build a full app in 30 minutes without coding.
kubectl scale --replicas=2 deployment joget-dx7-tomcat9
2. Examine the running pods, and you should see 2 pods running Joget
kubectl get pods NAME READY STATUS RESTARTS AGE joget-dx7-tomcat9-7d879db895-c9sbb 1/1 Running 0 27s joget-dx7-tomcat9-7d879db895-wpnsf 1/1 Running 0 37m mysql-7b9b7999d8-lk9gq 1/1 Running 0 65m
3. Scale the deployment down to 1 pod
kubectl scale --replicas=1 deployment joget-dx7-tomcat9
4. Examine the running pods, and you should now see 1 pod running Joget.
kubectl get pods