Versions Compared

Key

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

...

From the Azure portal, go to the Kubernetes services then Create a Kubernetes cluster.

Image Modified

In the Basics page, choose the Subscription, Resource Group and input the Kubernetes cluster name. Adjust the other configuration settings as desired, or leave as default.

Image Modified

In the Node pools tab, you can configure to add node pools into the cluster. Read on multiple node pools in AKS. For this guide, we will use a single node configuration.

Image Modified

For other tab options - Access, Networking, Integrations, Advanced and Tags, you can leave the default options or make adjustments/changes as necessary. After that, you can click on the Review + create and deploy the Kubernetes cluster. 


Image Modified

When the resource has completed their deployment, you can then connect to the cluster (read here) using Azure CLI/Azure Cloud Shell.

Image Modified

2.Deploy MySQL Database

...

Code Block
kubectl describe deployment mysql
kubectl get pods -l app=mysql
kubectl describe pvc mysql-pv-claim

Image Modified

You need to modify the original yaml files for production usage (eg. using different version of MySQL image and setting up secret instead of plain password in the yaml).

...

Code Block
kubectl apply -f azurenfsstorage.yaml

Image Modified

Image Modified

4.Deploy Joget DX

...

You can then check the deployment progress from the Azure portal. (Or use kubectl commands eg. kubectl get deployment joget-dx7-tomcat9)

Image Modified

Image Modified

5.Deploy Ingress for external connections

...

Code Block
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.4.0/deploy/static/provider/cloud/deploy.yaml

Image Modified

After the Ingress Controller has been deployed, we can then apply the Ingress yaml so that we can access the Joget application externally.

...

After the Ingress deployment is completed, you can get the public IP from the Kubernetes resources > Services and Ingresses pane in the Azure portal (eg. http://<external-ip>/jw).

Image Modified

Setup Database

To complete the Joget deployment, you need to perform a one-time Database Setup. Key in the MySQL service name and the Database Username and Password. Click on Save.

Image Modified

Once the setup is complete, click on Done and you will be brought to the Joget App Center.

Image Modified

6.Setup cert-manager for TLS termination

...

Adjust the replica number as you desired and the desired number of pods will initialize and startup.

Image Modified

As for the node, you can scale the node count of the node pool from the Azure portal. Go to the Cluster in the Kubernetes service (in this guide example jogetakscluster) > Settings > Node pools. Select the node pool and then click on the Scale node pool. Choose Manual as the Scale method and input the desired node count (maximum available resource is based on the VM size that you have chosen).

Image Modified

Image Modified