This repository contains sample Kubernetes manifest files that can be deployed using GitOps to an Azure Kubernetes Service (AKS) cluster. This repo is based on the arc-k8s-demo from Microsoft.
File/folder | Description |
---|---|
README.md |
This README file. |
cluster-apps |
Contains an example application that should be deployed to every cluster. |
namespaces |
Contains three namespace resources to provision on an attached cluster. |
pixel |
Contains a ConfigMap resource written into pixel namespace, communicates configuration data for the application team. |
One or more AKS clusters with the GitOps AKS add-on enabled.
The k8s-configuration
Azure CLI extension installed.
Create a GitOps configuration referencing this sample repo by using the Azure CLI extension k8s-configuration
. Complete documentation on the available options can be found here.
After a configuration is created, AKS will instantiate the resources described in this repository. This includes creating namespaces, deploying an example workload, and a config map.
az k8s-configuration flux create \
--cluster-name ${CLUSTER_NAME} --resource-group ${RESOURCE_GROUP} \
--cluster-type managedClusters \
--name cluster-config --scope cluster --namespace cluster-config \
--kind git --url https://github.com/PixelRobots/aks-gitops-demo \
--branch main --kustomization name=my-kustomization