Skip to content

Instantly share code, notes, and snippets.

@gregjbrown
Last active September 29, 2022 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregjbrown/d635429306597303c60d85b751649f33 to your computer and use it in GitHub Desktop.
Save gregjbrown/d635429306597303c60d85b751649f33 to your computer and use it in GitHub Desktop.
Deploy OPA to Azure Container Apps
type: Microsoft.App/containerApps
properties:
managedEnvironmentId: <opa-ca-env>
configuration:
activeRevisionsMode: Multiple
ingress:
allowInsecure: false
external: true
targetPort: 8181
transport: Auto
traffic:
- latestRevision: true
weight: 100
template:
containers:
- command:
- /opa
- run
- --server
- --config-file=/config/opa-conf.yaml
image: docker.io/openpolicyagent/opa:0.44.0-rootless
name: opa
resources:
cpu: 0.25
memory: 0.5Gi
volumeMounts:
- mountPath: /config
volumeName: apim-opa-file-volume
scale:
maxReplicas: 5
minReplicas: 2
volumes:
- name: apim-opa-file-volume
storageName: opa-ca-storagemount
storageType: AzureFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment