Last active
September 29, 2022 13:57
-
-
Save gregjbrown/d635429306597303c60d85b751649f33 to your computer and use it in GitHub Desktop.
Deploy OPA to Azure Container Apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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