Azure Kubernetes Service (AKS) Deployments Overview
This topic describes the concept of a Harness Azure Kubernetes Service (AKS) deployment by describing the high-level steps involved.
For a quick tutorial, see the Kubernetes Quickstart.
For detailed instructions on using AKS in Harness, see the Azure How-tos.
Before You Begin
Before learning about Harness Azure Kubernetes Service (AKS) deployments, you should have an understanding of Harness Key Concepts
What Does Harness Need Before You Start?
A Harness AKS deployment requires the following:
- Artifact: For example, a Docker image on Azure ACR.
- Kubernetes cluster: You will need a target cluster for the Harness Delegate, your application, and your Kubernetes workloads. A Kubernetes Delegate requires at least 8GB RAM, and so your cluster should have enough RAM to host the Delegate and your applications and workloads.
What Does Harness Deploy?
Harness takes the artifacts and Kubernetes manifests you provide and deploys them to the target AKS cluster. You can simply deploy Kubernetes objects via manifests and you can provide manifests using remote sources and Helm charts.
Azure deployment in Harness Manager
The same deployment in Kubernetes Dashboard
In Harness, a workload is a Deployment, StatefulSet, or DaemonSet object deployed and managed to steady state.
For Rolling Update deployments, you can deploy multiple managed workloads.
For Canary and Blue/Green Workflow deployments, only one managed object may be deployed per Workflow by default.
You can deploy additional objects using the Apply Step, but it is typically used for deploying Jobs controllers. See Apply Step in Deploy Manifests Separately using Apply Step.
What Does a Harness AKS Deployment Involve?
The following list describes the major steps of a Harness AKS deployment:
Description and Links
Install the Harness Kubernetes Delegate in your AKS cluster.
Typically, the Kubernetes Delegate is installed in the target AKS cluster where you will deploy your application(s).
Add a Harness Artifact Server or Harness Azure Cloud Provider.
The Harness Artifact Server is for artifact servers such as a Docker Registry Artifact Server. Harness connects to the Docker registry where your Docker images are located, or the public Docker Hub.
If you want to obtain your artifacts from an ACR container, use an Azure Cloud Provider.
Add a Kubernetes Cluster Cloud Provider.
A Cloud Provider is a connection to your Kubernetes cluster.
You can add a Kubernetes Cluster Cloud Provider (recommended) or a Cloud Provider for the cloud platform where the cluster is hosted, such as an Azure Cloud Provider. A Kubernetes Cluster Cloud Provider will connect to any cluster on any platform.
In you use a Kubernetes Cluster Cloud Provider, you can use the Delegate installed in your cluster for authentication.
Create the Harness Application for your AKS CD Pipeline.
The Harness Application represents a group of microservices/containers, their deployment pipelines, and all the building blocks for those pipelines. Harness represents your release process using a logical group of one or more entities: Services, Environments, Workflows, Pipelines, Triggers, and Infrastructure Provisioners. Applications organize all of the entities and configurations in Harness CD.
Create the Harness Service using the Kubernetes Deployment Type.
Add your Kubernetes manifests and any config variables and files.
You can use remote manifests stored in a source repo or Helm charts in a Helm repo.
Create the Harness Environment and Infrastructure Definition for your target AKS cluster, and any overrides.
Using the Harness Cloud Provider you set up, you can select the target AKS cluster and namespace for your deployment.
You can also override any Service settings, such as manifest values. This enables you to use a single Service with multiple Harness Environments.
Create the Canary, Blue/Green, or Rollout deployment Harness Workflow.
The Workflow deploys the artifact(s) and Kubernetes workloads defined in the Harness Service to the cluster and namespace in the Harness Infrastructure Definition.
For additional Workflows, see the vendor-agnostic steps in the following:
Deploy the Workflow.
Once you've deployed a Workflow, learn how to improve your AKS CD:
Read the following topics to build on what you've learned: