Azure Service Operator allows you to create Azure resources using kubectl.
Pull the latest version of this image from the Ghost registry. Pulling requires authentication — generate a token and run docker login first (see Authentication below).
The Ghost catalog is public to browse, but pulling images requires an account. Generate a pull token below (or from your Account → Tokens page) — you'll get a ready-to-paste docker login command, then docker pull works.
The username is generated automatically (it looks like robot$<project>+<auto-id>, not the name you typed) and is included in the docker login command above. The secret is shown only once when you create the token.
All Ghost images are signed with cosign. Verifying the signature before deployment ensures the image has not been tampered with.
Install cosign via brew install cosign or download from the Sigstore releases page.
Reference this image in your Dockerfile as a base layer:
This is a vendor-built FIPS-enabled image: its cryptography runs on FIPS 140-3 validated modules configured by the upstream vendor. You can inspect the image metadata:
| Standard | FIPS 140-3 |
| Crypto module | Vendor-configured validated modules |
| Cryptography | Validated modules only |
| Use case | Government, regulated industries, compliance workloads |
All examples in this guide use the public image. If you’ve mirrored the repository for your own use (for example, to your Docker Hub namespace), update your commands to reference the mirrored image instead of the public one.
For example:
registry.ghost-prod.alphabravo.io/ghost-base/<repository>:<tag><your-namespace>/dhi-<repository>:<tag>For the examples, you must first use docker login registry.ghost-prod.alphabravo.io to authenticate to the registry to pull the images.
The recommended way to install Azure Service Operator is using the official Helm chart. Replace <tag> with the image
variant you want to run.
# Add the Azure Service Operator Helm repository
helm repo add aso2 https://raw.githubusercontent.com/Azure/azure-service-operator/main/v2/charts
helm repo update
# Install with basic configuration
helm install aso2 aso2/azure-service-operator \
--create-namespace \
--namespace azureserviceoperator-system \
--set image.repository=registry.ghost-prod.alphabravo.io/ghost-base/azure-service-operator:<tag> \
--set azureTenantID="your-tenant-id" \
--set azureSubscriptionID="your-subscription-id" \
--set azureClientID="your-client-id" \
--set azureClientSecret="your-client-secret"
For testing or development purposes, you can run the operator directly:
# Run with required environment variables
docker run --rm -e AZURE_TENANT_ID="your-tenant-id" \
-e AZURE_SUBSCRIPTION_ID="your-subscription-id" \
-e AZURE_CLIENT_ID="your-client-id" \
-e AZURE_CLIENT_SECRET="your-client-secret" \
registry.ghost-prod.alphabravo.io/ghost-base/azure-service-operator:<tag>
[!NOTE] This direct approach is for testing only. Production deployments should use the Helm chart for proper RBAC, webhooks, and CRD management.
Azure Service Operator supports multiple authentication methods to connect to Azure:
The most common authentication method using a service principal:
# values.yaml for Helm installation
azureTenantID: "your-tenant-id"
azureSubscriptionID: "your-subscription-id"
azureClientID: "your-service-principal-client-id"
azureClientSecret: "your-service-principal-secret"
For AKS clusters, use Azure Workload Identity for enhanced security:
# values.yaml for Helm installation
azureTenantID: "your-tenant-id"
azureSubscriptionID: "your-subscription-id"
azureClientID: "your-managed-identity-client-id"
useWorkloadIdentityAuth: true
# Pod identity configuration
podLabels:
azure.workload.identity/use: "true"
Authenticate using a client certificate:
# values.yaml for Helm installation
azureTenantID: "your-tenant-id"
azureSubscriptionID: "your-subscription-id"
azureClientID: "your-service-principal-client-id"
azureClientCertificate: |
-----BEGIN CERTIFICATE-----
[certificate content]
-----END CERTIFICATE-----
azureClientCertificatePassword: "certificate-password" # Optional
Azure Service Operator enables you to manage Azure resources directly from Kubernetes manifests.
apiVersion: storage.azure.com/v1api20210401
kind: StorageAccount
metadata:
name: mystorageaccount
namespace: default
spec:
location: eastus
resourceGroupRef:
name: myresourcegroup
kind: StorageV2
sku:
name: Standard_LRS
apiVersion: dbforpostgresql.azure.com/v1api20210601
kind: FlexibleServer
metadata:
name: mypostgresql
namespace: default
spec:
location: eastus
resourceGroupRef:
name: myresourcegroup
administratorLogin: myadmin
administratorLoginPassword:
name: postgresql-secret
key: password
storage:
storageSizeGB: 32
sku:
name: Standard_B1ms
tier: Burstable
version: "13"
For managing resources across multiple tenants:
# values.yaml for Helm installation
azureTenantID: "primary-tenant-id"
azureAdditionalTenants: "tenant-id-1,tenant-id-2,tenant-id-3"
multitenant:
enable: true
Control which namespaces the operator monitors:
# values.yaml - Monitor specific namespaces only
azureTargetNamespaces: ["production", "staging"]
# Or monitor all namespaces (default)
azureTargetNamespaces: []
# values.yaml - Set how often resources are re-synced with Azure
azureSyncPeriod: "1h" # Options: "1h", "30m", "never"
# values.yaml - Control which CRDs to install
installCRDs: true
crdPattern: "resources.azure.com/*;compute.azure.com/*;storage.azure.com/*"
# values.yaml - Enable metrics endpoint
metrics:
enable: true
secure: true # Serve over HTTPS
port: 8443
Ghost hardened images come in different variants depending on their intended use.
Runtime variants are designed to run your application in production. These images are intended to be used either
directly or as the FROM image in the final stage of a multi-stage build. These images typically:
Build-time variants typically include dev in the variant name and are intended for use in the first stage of a
multi-stage Dockerfile. These images typically:
To migrate your Azure Service Operator deployment to a Ghost hardened image, you must update your Helm values or Kubernetes manifests. At minimum, you must update the container image reference to use a Ghost hardened image. This and a few other common changes are listed in the following table of migration notes.
| Item | Migration note |
|---|---|
| Base image | Replace your container image references in your Helm values or Kubernetes manifests with a Ghost hardened image. |
| Package management | Non-dev images, intended for runtime, don't contain package managers. Use package managers only in images with a dev tag. |
| Nonroot user | By default, non-dev images, intended for runtime, run as the nonroot user. Ensure that necessary files and directories are accessible to the nonroot user. |
| Multi-stage build | Utilize images with a dev tag for build stages and non-dev images for runtime. For binary executables, use a static image for runtime. |
| TLS certificates | Ghost hardened images contain standard TLS certificates by default. There is no need to install TLS certificates. |
| Ports | Non-dev hardened images run as a nonroot user by default. As a result, applications in these images can't bind to privileged ports (below 1024) when running in Kubernetes or in Docker Engine versions older than 20.10. To avoid issues, configure your application to listen on port 1025 or higher inside the container. |
| Entry point | Ghost hardened images may have different entry points than images such as Docker Official Images. Inspect entry points for Ghost hardened images and update your Dockerfile if necessary. |
| No shell | By default, non-dev images, intended for runtime, don't contain a shell. Use dev images in build stages to run shell commands and then copy artifacts to the runtime stage. |
The following steps outline the general migration process.
Update your Helm values or Kubernetes manifests
Replace the existing image reference in your Helm values file:
# Before
image:
repository: mcr.microsoft.com/k8s/azureserviceoperator:v2.15.0
# After
image:
repository: registry.ghost-prod.alphabravo.io/ghost-base/azure-service-operator:<tag>
Verify authentication configuration
Ensure your authentication method is properly configured and the operator can connect to Azure.
Test with a subset of resources
Start by deploying the operator in a test namespace and verify it can manage a simple Azure resource like a Resource Group.
Monitor webhook and CRD functionality
Verify that webhooks are working correctly and CRDs are installed as expected.
The following are common issues that you may encounter during migration.
The hardened images intended for runtime don't contain a shell nor any tools for debugging. The recommended method for debugging applications built with Ghost hardened images is to use Docker Debug to attach to these containers. Docker Debug provides a shell, common debugging tools, and lets you install other tools in an ephemeral, writable layer that only exists during the debugging session.
If the operator fails to authenticate with Azure:
If CRDs are not installing correctly:
crdPattern setting matches the resources you want to manageIf Azure resources are not being created or updated:
kubectl describe to check the status conditions of your Custom ResourcesazureSyncPeriod settingIf validation webhooks are not working:
For performance optimization:
MAX_CONCURRENT_RECONCILES environment variable to control parallelismRATE_LIMIT_QPS and RATE_LIMIT_BUCKET_SIZE valuesBy default, image variants intended for runtime don't contain a shell. Use dev images in build stages to run shell
commands and then copy any necessary artifacts into the runtime stage. In addition, use Docker Debug to debug containers
with no shell.
Ghost hardened images may have different entry points than upstream images. The Azure Service Operator DHI uses
/aso-controller as the entry point. If you're customizing the container command or args, ensure they're compatible
with this entry point.