Create a Kubernetes cluster in Azure with Kublr

Connect Microsoft Azure and Kublr

  1. Log into Kublr using your credentials.

  2. On the left menu, click Credentials.

  3. Click Add Credentials. Add Credentials The ADD CREDENTIALS dialog is displayed.

  4. In the ADD CREDENTIALS dialog, set Credentials Type to “Azure Credentials”. The dialog is updated to display the Azure credentials specific fields.

  5. Enter Credentials Name.

  6. Set:

    • Tenant ID
    • Subscription ID
    • Client ID
    • Client Secret Add Credentials Azure
  7. Click Save Credentials. The “Credentials have been successfully created.” popup will be displayed.

  8. To verify if credentials are valid and ready to be used, mouse over the created credentials and click the displayed Test button.

    Verification success popup will be displayed.

  9. Click Ok.

Create a Cluster

Create a Kubernetes Cluster in Kublr

Powered by Kublr, Vanilla Kubernetes Cluster does not include any advanced Kublr features, suitable for running workloads.

To add a new cluster:

  1. On the left menu, click Clusters.

  2. Click Add Cluster. Add New Cluster The Select Intallation Type dialog is displayed.

  3. In the Select Intallation Type dialog, click Cluster.

  4. Click Continue Setup. Installation Type - Cluster The ADD CLUSTER dialog is displayed.

  5. In the ADD CLUSTER dialog, set Provider to “Microsoft Azure”.

  6. From the Credentials list, select previosly created Azure credentials.

  7. Specify Cluster Name.

  8. Set:

    • Region
    • Kublr Agent
    • Kubernetes Version Azure-Add Cluster-General Settings
  9. Click the INSTANCES step.

  10. Use the Master Configuration section.

  11. Specify the parameters of the master node(s) of your cluster as described below.

  12. Select Instance Type from the list.

  13. From the Masters list, select the number of master or management nodes in correspondence with the selected Instance Type.

  14. From the Operating System list, select the host OS for virtual machines in the cluster.

  15. Select Public SSH Key from the list.

    If not presented, use Add New Public SHH Key. Azure-Add Cluster-Master Configuration

  16. Scroll to the Instance Group section (default name group1).

  17. Specify the parameters of the work node(s) in your group as described below.

  18. Select Instance Type from the list.

  19. In the Nodes field, set the number of work nodes.

  20. From the Operating System list, select the host OS for virtual machines in the cluster.

  21. Select Public SSH Key from the list.

    If not presented, use Add New Public SHH Key.

  22. If necessary, set your own name for the instance group.

    Note You can also clone or delete the current instance group, or add another one. Instance Group-Operations

  23. Optionally, click the FEATURES step.

  24. If necessary, add features to your cluster, specifying parameters under:

    • Ingress Controller
    • Self-Hosted Logging
    • Self-Hosted Monitoring AWS-Add Cluster-Features Configuration
  25. Click the REVIEW & CREATE step.

  26. Review your cluster parameters.

  27. At the bottom of the dialog, click CONFIRM AND INSTALL.

    A notification is displayed “Your cluster is being created. It might take a few minutes.”

  28. In the notification window, click OK.

    Your new cluster page is displayed on the Events tab showing the cluster creation progress.


Install and Configure kubectl

For more details, please refer to the official Kubernetes documentation

For Mac users:

curl -LO$(curl -s
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

For Windows users:

  1. Download
  2. Include the path with the kubectl executable to PATH environment variable. More details:

Copy Kublr config File

To retrieve config from Kublr:

  1. Click on cluster in the cluster list to access the cluster details page.
  2. On the overview tab, download the config file.

For Mac users:

mkdir ~/.kube
cp ~/Downloads/config.yaml ~/.kube/config

For Windows users:

cd %HOME%
mkdir .kube
copy %HOME%\Downloads\config.yaml .kube\

Check that kubectl is working and using right config file:

kubectl config view
kubectl cluster-info


Install and Use Helm to Deploy WordPress to Your Cluster

Install helm Click here for detailed guidelines.

For Mac users:

curl >
chmod +x
./ --version v2.5.0

For Windows users:

  1. Download helm version 2.5.1 from here:
  2. Extract to the directory where kubectl is saved

Init and test Helm installation:

helm init

Install WordPress

helm install stable/wordpress --name wordpress

NOTE: It may take a few minutes for the LoadBalancer IP to become available.

For Mac users:

export SERVICE_IP=$(kubectl get svc --namespace default wordpress-wordpress -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP/admin
echo Username: user
echo Password: $(kubectl get secret --namespace default wordpress-wordpress -o jsonpath='{.data.wordpress-password}' | base64 --decode)

Open the browser and navigate to the URL from console output.

For Windows users:

  1. Run the following commands to get hostname and password:
kubectl get svc --namespace default wordpress-wordpress -o jsonpath='{.status.loadBalancer.ingress[0].ip}'
kubectl get secret --namespace default wordpress-wordpress -o jsonpath='{.data.wordpress-password}
  1. Open browser to http://%hostname%/admin, where %hostname% is the hostname you got from the kubectl
  2. Decode admin password with

Congrats! You just deployed your first app in a Kubernetes cluster with Kublr.