Deploy the atlassian-jira helm chart on Azure Kubernetes Service (AKS)
TypeScriptTo deploy the Atlassian JIRA helm chart on Azure Kubernetes Service (AKS), you'll need to set up a few things:
- Create an AKS cluster: This is your managed Kubernetes cluster provided by Azure.
- Install and configure Helm on your local machine: Helm is a package manager for Kubernetes, and it's what you'll use to install the JIRA chart.
- Deploy the JIRA chart: Use Helm to install the JIRA helm chart onto your AKS cluster.
Let's create a simple Pulumi program to provision an AKS cluster. After you have your cluster ready, I will guide you through configuring
kubectl
and Helm for deploying JIRA.Here is a Pulumi program using TypeScript that outlines the steps required to set up the AKS cluster:
import * as azure from "@pulumi/azure"; import * as pulumi from "@pulumi/pulumi"; import * as k8s from "@pulumi/kubernetes"; // Step 1: Set up the AKS cluster const resourceGroup = new azure.core.ResourceGroup("jiraResourceGroup", { location: "WestUS", // Choose the appropriate Azure location here }); const aksCluster = new azure.containerservice.KubernetesCluster("jiraAksCluster", { resourceGroupName: resourceGroup.name, defaultNodePool: { name: "aksagentpool", nodeCount: 2, // Specify the number of nodes you want in your AKS cluster vmSize: "Standard_D2_v2", // Choose the size that fits your workload }, dnsPrefix: "jira-k8s", linuxProfile: { adminUsername: "adminuser", sshKey: { keyData: "ssh-rsa AAAAB3Nza... your public key here ...hwhqT9h", // Replace with your SSH public key }, }, servicePrincipal: { clientId: "client-id", // Specify the AppId of your Service Principal clientSecret: "client-secret", // Specify the password of your Service Principal }, // Network profile is optional and depends on your requirements networkProfile: { networkPlugin: "azure", serviceCidr: "10.10.0.0/16", dnsServiceIP: "10.10.0.10", dockerBridgeCidr: "172.17.0.1/16", }, }); // Export the Kubeconfig export const kubeConfig = aksCluster.kubeConfigRaw; // Step 4 (outside of Pulumi): Configure Kubernetes and Helm // Note: You need to run post-deployment commands to set up Helm and deploy JIRA using Helm charts
Before you run this program:
- Replace the
clientId
andclientSecret
with the credentials of your Azure Service Principal. - Replace
keyData
with your SSH public key data. - Adjust the
nodeCount
andvmSize
as per your requirements.
After running this Pulumi program, you will have an Azure Kubernetes Service cluster ready to go.
Once your AKS cluster is provisioned, you need to configure your local environment to interact with the cluster. This involves installing
kubectl
, the Kubernetes command-line tool, and Helm, which will allow you to deploy the JIRA helm chart. Here's what you need to do:- Install
kubectl
: Follow the instructions for your operating system on Kubernetes Official Documentation. - Install Helm: You can find the instructions on the Helm Official Documentation.
- Configure
kubectl
: Use the exportedkubeConfig
from the Pulumi program to point to your AKS cluster. - Add the Helm chart repository that contains JIRA:
helm repo add atlassian https://atlassian.github.io/data-center-helm-charts
- Install the JIRA chart:
helm install jira atlassian/jira --version <version>
replacing<version>
with the chart version you wish to deploy.
Remember, Kubernetes and Helm are areas where Pulumi doesn't enforce opinions; it provides you the infrastructure to utilize them as per their own ecosystem's practices.