Deploy the quarkus helm chart on Oracle Kubernetes Engine (OKE)
TypeScriptTo deploy the Quarkus Helm Chart on Oracle Kubernetes Engine (OKE), you'll need to perform several steps:
-
Set Up Oracle Kubernetes Engine (OKE): You'll need an existing OKE cluster to deploy your application. If you don't have a cluster, you'll need to create one. We won't cover that in this guide, but you can find details in the OCI Container Engine for Kubernetes Documentation.
-
Helm Chart Deployment: Once you have access to an OKE cluster, you can deploy applications using Helm charts. Helm is a package manager for Kubernetes, which allows you to define, install, and upgrade even the most complex Kubernetes applications.
In this guide, we'll focus on the second step: deploying a Helm chart to an existing OKE cluster. To deploy the Quarkus Helm Chart, we'll be using Pulumi's
kubernetes.helm.v3.Chart
class, which allows us to deploy Helm charts in a Kubernetes cluster. Here's how you do it:Below is the Pulumi program written in TypeScript that will deploy the Quarkus Helm Chart to an existing Oracle Kubernetes Engine cluster.
import * as pulumi from '@pulumi/pulumi'; import * as k8s from '@pulumi/kubernetes'; // Create a Kubernetes provider instance that uses our existing cluster's context const provider = new k8s.Provider("oke-provider", { kubeconfig: "<your kubeconfig here>", }); // Define the Helm Chart information for the Quarkus application const quarkusChart = new k8s.helm.v3.Chart("quarkus-chart", { chart: "quarkus", version: "<chart version>", // specify the version you want to deploy // If the Quarkus chart is in a custom Helm repo, specify 'repo' here // repo: "<helm repo url>", fetchOpts: { // Set the repo for the Helm chart if necessary repo: "<Helm repo URL where Quarkus chart is located, or leave blank if using a standard repo>", }, }, { provider: provider }); // Export the URL for the Quarkus application // Normally, you might fetch the endpoint from the Chart's deployed services, // but that requires more information about the service. For now, we're keeping it simple. export const url = pulumi.interpolate `http://<OKE Cluster IP or DNS>/<Quarkus Service Path>`;
Replace
<your kubeconfig here>
with the kubeconfig from your Oracle Kubernetes Engine cluster,<chart version>
with the version of the Quarkus Helm chart that you want to deploy,<helm repo url>
with the URL of the Helm repository that holds the Quarkus chart,<OKE Cluster IP or DNS>
with the external IP address or DNS of your cluster, and<Quarkus Service Path>
with the correct path to access the Quarkus application.Please ensure that you have the correct permissions for the kubeconfig and that the service account used has the necessary roles bound for deploying Helm charts.
This program sets up a Kubernetes provider pointing to your Oracle Kubernetes Engine, and then it uses that provider to deploy a Quarkus Helm Chart. You may need to specify fetch options if your Quarkus Helm Chart is not in the standard Helm repositories.
After running this Pulumi program, it will output the URL where your Quarkus application will be accessible. This URL is constructed with placeholders, and you'll need to replace them with the actual values that match your Oracle Kubernetes Engine cluster and Quarkus service setup.
-