Skip to content

Latest commit

 

History

History
95 lines (63 loc) · 2.8 KB

README.md

File metadata and controls

95 lines (63 loc) · 2.8 KB

Deploy a GraalVM application

aks/graalvm/README.md

Prerequisites

This example assumes you have previously completed the following examples:

  1. Create an Azure Resource Group
  2. Create an Azure Container Registry
  3. Push a GraalVM Docker image to Azure Container Registry
  4. Create settings.xml using admin access keys
  5. Deploy an Azure Kubernetes Service cluster
  6. Create a Kube config for your Azure Kubernetes Service cluster (using admin access keys)
  7. Update your AKS cluster to use your Azure Container Registry

Deploy a GraalVM application

First open the deployment.yml file in an editor and replace ACR with the name of your registry OR execute the command line below:

  sed -i "s/ACR/$ACR_NAME/g" deployment.yml

Then execute the command below to deploy to the AKS cluster.

  kubectl apply -f deployment.yml

Note in a production environment you should use an Ingress controller instead of directly exposing the IP address

To get the public IP address use the following command.

kubectl get service/graalvm

If the EXTERNAL-IP column has no IP address yet keep repeating the command as it might take a while before AKS has assigned a public IP.

Once the EXTERNAL-IP shows up open your browser to http://EXTERNAL-IP/helloworld.

It should tell you:

Hello

Cleanup

Do NOT forget to remove the resources once you are done running the example.

Reference documentation

1m