Member-only story
ODSA for Java Developers (Part 6) — Connecting to Oracle ADB from a Spring Boot 3.0 App with Spring Data JPA on Azure Kubernetes Service

Introduction
This blog post is about creating a container image for a Spring Boot 3.0 application, deploying the image to Azure Container Registry, then using it to deploy the application to a Kubernetes cluster on Azure Kubernetes Service.
It complements the series on developing Azure applications with ODSA, which includes the previous blog posts listed below.
- ODSA for Java Developers (Part 1) — Introduction to Oracle Database Service for Azure
- ODSA for Java Developers (Part 2) — Connecting to Oracle ADB from a Spring Boot 3.0 App with Spring Data JPA on Azure App Service
- ODSA for Java Developers (Part 3) — Connecting to Oracle ADB from a Spring Boot 3.0 App with Spring Data JPA on Azure Spring Apps
- ODSA for Java Developers (Part 4) — Connecting to Oracle ADB from a Spring Boot 3.0 App with Spring Data JPA on Azure Container Apps
- ODSA for Java Developers (Part 5) — Connecting to Oracle ADB from a FaaS App with Oracle JDBC on Azure Functions
Note that this blog post is not an exhaustive guide to Azure Kubernetes Service (AKS).
Its goal is to provide a quick tutorial on creating and deploying a Spring Boot 3.0 application that connects to an Oracle Autonomous Database (ADB) instance provisioned by using the Oracle Database Service for Azure.
Please check the official documentation for Azure Kubernetes Service to explore it comprehensively.
So without further ado, let’s get started!
Prerequisites
- JDK — Java Development Kit 17
- Your preferred Java IDE — Eclipse, IntelliJ, VS Code
- Apache Maven
- Oracle Database Service on Azure
- Azure Subscription
- Azure CLI
- Docker