Azure Kubernetes Services (AKS) allows you to quickly deploy a production ready Kubernetes cluster in Azure. The following are the set of commands which will help you to bring up a K8S cluster in Azure.


  • Docker service installed
  • azure cli installed
  • git installed
  • Visual Studio Code installed
  • Valid azure account and subscription


  1. Build Image
  2. Push images to azure container registry
  3. Create Kubernetes Cluster
  4. Deploy application in Kubernetes
  5. Scale the application
  6. Update the application
  7. Upgrade Kubernetes Cluster
  8. SSH access to VM/AKS Node


  • Linux Node AKS Cluster: Link
  • Windows Node AKS Cluster: Link



Git supports pushing the files to the repo only through tokens.

Here will explain how to generate tokens for Git access.

  1. Login to your Github Account

2. Access url:

3. Enter: Generate Token

4. Provide some info in Note

5. Select required checkboxes (I selected all checkbox)

6. Click Generate Token

A token will be generated for you.

You have to use the generated token to do git clone.

How to git clone with generated token

For eg:

Username is : johndoe

Generated Token is : ghp_abc123

Repo is : greetings

Then the git repo url will be :

7. Once the token is generated, you can also set it globally in gitconfig

$ git config --global url."https://${username}:${access_token}".insteadOf ""Eg: git config --global url."".insteadOf ""



Spring boot installation steps

  • Install JDK 11
$ sudo apt install openjdk-11-jdk -y
$ java -version
  • Download Gradle
$ VERSION=6.5.1
$ wget${VERSION} -P /tmp
$ sudo unzip -d /opt/gradle /tmp/gradle-${VERSION}
$ sudo ln -s /opt/gradle/gradle-${VERSION} /opt/gradle/latest
  • Setting up environment variables for Gradle
$ sudo vi /etc/profile.d/gradle.shexport GRADLE_HOME=/opt/gradle/latest
export PATH=${GRADLE_HOME}/bin:${PATH}
  • Make the script executable and execute
$ sudo chmod +x /etc/profile.d/
$ source /etc/profile.d/
$ gradle -v
  • Install Spring Boot Cli
$ wget 
$ tar -zxvf spring-boot-cli-2.6.3-bin.tar.gz
$ sudo ln -s $PWD/spring-2.6.3/bin/spring /usr/local/bin/spring

Make first Spring Boot Application

$ vi $Projects/Sample/app.groovy@RestController
class ThisWillActuallyRun {
String home() {
"Hello World!"

Run the spring boot application

$ spring run app.groovy



Prince Pereira

Prince Pereira


Software Engineer II - Microsoft | SDN | Java | Golang | DS & Algo | Microservices | Kubernetes | Docker | gRPC & Protocol Buffer