This repo contains some resources to make a jumpstart with Crossplane to provision resources through Kubernetes on Azure.
- Being connected to a K8s cluster
- Helm minimum version v3.2.0
- kubectl installed
- Azure CLI installed and logged in
helm repo add crossplane-stable https://charts.crossplane.io/stable && helm repo updatehelm install crossplane crossplane-stable/crossplane --namespace crossplane-system --create-namespace- Check with
kubectl get pods -n crossplane-system
kubectl apply -f azure-provider.yaml- Check if provider is healthy with
kubectl get providers sub_id=az account show --query "id" -o tsvaz ad sp create-for-rbac --sdk-auth --role Owner --scopes /subscriptions/$sub_id -o json >> ./azure-credentials.jsonkubectl create secret generic azure-secret -n crossplane-system --from-file=creds=./azure-credentials.jsonkubectl apply -f azure-provider-config.yaml
kubectl apply -f azure-rg.yamlshould result in a new resource group namedcp-prov-rgon Azure