Note: The API is expected to change (while adhering to semantic versioning). Alpha and Beta resources are generally not recommended for production environments.
The Azure Service Operator helps you provision Azure resources and connect your applications to them from within Kubernetes.
The Azure Service Operator comprises of:
- The Custom Resource Definitions (CRDs) for each of the Azure services a Kubernetes user can provision.
- The Kubernetes controller that watches for requests to create Custom Resources for each of these CRDs and creates them.
The project was built using Kubebuilder.
Curious to see how it all works? Check out our control flow diagrams.
- Resource Group
- Event Hubs
- Azure SQL
- Azure Database for PostgreSQL
- Azure Database for MySQL
- Azure Key Vault
- Azure Cache for Redis
- Storage Account
- Blob Storage
- Virtual Network
- Application Insights
- API Management
- Cosmos DB
- Virtual Machine
- Virtual Machine Scale Set
Ready to quickly deploy the latest version of Azure Service Operator on your Kubernetes cluster and start exploring? Follow these steps.
-
Install cert-manager on the cluster using the following command.
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v0.12.0/cert-manager.yaml
-
Install Helm, and add the Helm repo for Azure Service Operator. Please note that the instructions here use Helm 3.
helm repo add azureserviceoperator https://raw.githubusercontent.com/Azure/azure-service-operator/master/charts
-
Install the Azure Service Operator on your cluster using the following helm install command.
Note that the ServicePrincipal you pass to the command below needs to have access to create resources in your subscription. If you'd like to use Managed Identity for authorization instead, check out instructions here
helm upgrade --install aso https://github.com/Azure/azure-service-operator/raw/master/charts/azure-service-operator-0.1.0.tgz \ --create-namespace \ --namespace=azureoperator-system \ --set azureSubscriptionID=$AZURE_SUBSCRIPTION_ID \ --set azureTenantID=$AZURE_TENANT_ID \ --set azureClientID=$AZURE_CLIENT_ID \ --set azureClientSecret=$AZURE_CLIENT_SECRET \ --set image.repository="mcr.microsoft.com/k8s/azureserviceoperator:latest"
You should now see the Azure service operator pods running in your cluster, like the below.
$ kubectl get pods -n azureoperator-system NAME READY STATUS RESTARTS AGE azureoperator-controller-manager-7dd75bbd97-mk4s9 2/2 Running 0 35s
To deploy an Azure service through the operator, check out the set of supported Azure services and the sample YAML files in the config/samples
folder to create the resources using the following command.
kubectl apply -f <YAML file>
This project maintains releases of the Azure Service Operator that you can deploy via a configurable Helm chart.
Please see the FAQ for answers to commonly asked questions about the Azure Service Operator.
Have more questions? Feel free to consult our documentation here.
The contribution guide covers everything you need to know about how you can contribute to Azure Service Operators. The developer guide will help you onboard as a developer.
Azure Service Operator is an open source project that is not covered by the Microsoft Azure support policy. Please search open issues here. If your issue isn't already represented, please open a new one. The Azure Service Operator project maintainers will respond to the best of their abilities.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.