-
GoLang is installed.
-
Docker is installed and running.
-
kubectl Command-line tool is installed.
-
A Kubernetes cluster. Can be any of the following but an AKS cluster is recommended for testing RBAC and multiple CRD versions (as webhooks are required)
- Local: Minikube
- Kind, or,
- Docker for desktop.
- Or in the cloud: Azure Kubernetes Service
-
Kubebuilder (notes for installing on OSX: here)
-
Kustomize (This may be installed via
make install-kustomize
) -
Create an identity for running the Operator as - Managed Identity or Service Principal.
az ad sp create-for-rbac --name ServicePrincipalName
az identity create -g ResourceGroup -n ManagedIdentityName --subscription SubscriptionId
Then make sure this identity has rights assigned to provision resources in your Azure Subscription and Resource Group.
-
Basic commands to check if you have an active Kubernetes cluster:
kubectl config get-contexts kubectl cluster-info kubectl version kubectl get pods -n kube-system
If you use an Azure Kubernetes Service (AKS) cluster, you can connect to it by using the following command:
az aks get-credentials -g <ResourceGroup> -n <AKSClusterName>