The Java team at Microsoft has been working hard during this year, collaborating with Java customers and developers around the globe to optimize the Java developer experience in Azure.
In the last few weeks we’ve delivered exciting new features in Maven, Jenkins, Visual Studio Code and IntelliJ. These features help Java developers rapidly adopt cloud-native patterns in Azure and debug faster, as well as added support for Managed Disks, Cosmos DB and Container Service in the Azure Management Libraries for Java. We have collaborated with partners such as Red Hat, Pivotal, CloudBees and Azul to bring Java closer to the cloud.
It’s truly momentous days for Java, and as our team gets ready for JavaOne next week (where Microsoft will be a Silver sponsor) we are excited to announce that developers can now securely deploy and redeploy Java apps to Kubernetes in Azure Container Service using Maven!
Azure Container Service makes it simple to create an optimized Kubernetes-based container hosting solution for Azure to run containerized applications stored in public or private registries, including Azure Container Registry. Today, you can use Maven to securely deploy and manage your container-based apps. Let’s start with a sample Spring Boot app you can clone from GitHub:
git clone -b k8s-private-registry https://github.com/microsoft/gs-spring-boot-docker
After adding your private Docker registry credentials to your Maven settings.xml, build the app and containerize like you always do, and deploy to Kubernetes in Azure Container Service:
mvn package docker:build docker:push fabric8:resource fabric8:apply
Then, get the IP address for your deployment:
kubectl get svc -w
And that’s it! It’s that easy to use Maven to deploy a Spring Boot app or any other Java app to Kubernetes in Azure Container Service. Make sure you check out the step-by-step instructions to get started today.
Next week: JavaOne
Today’s announcement wouldn’t be possible without our joint efforts with Red Hat and the ongoing collaboration enhancing the Fabric8 Maven plugin to add secure registry references. This collaboration highlights how important engaging with the Java ecosystem is for us - a key aspect of our presence at JavaOne.
The Microsoft Java team, including feature owners, developer advocates, support engineers and others, looks forward to meeting you in San Francisco next week. Swing by our booth in the Expo hall to learn more – we’d love to connect.
Not attending JavaOne this year? Follow @OpenAtMicrosoft or sign up for updates!