Demo of the Red Hat API Management solution
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.0 KiB

apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
annotations:
argocd.argoproj.io/sync-wave: "10"
name: 3scale-operator
namespace: openshift-operators
spec:
channel: threescale-2.12
name: 3scale-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
---
apiVersion: v1
kind: Secret
metadata:
annotations:
argocd.argoproj.io/sync-wave: "10"
name: system-database
namespace: {{ .Values.projectName | quote }}
stringData:
URL: "postgresql://3scale:{{ include "3scale-database-password" . }}@postgresql-server:5432/3scale"
type: Opaque
---
apiVersion: v1
kind: Secret
metadata:
annotations:
argocd.argoproj.io/sync-wave: "10"
name: zync
namespace: {{ .Values.projectName | quote }}
stringData:
DATABASE_URL: postgresql://zync:{{ include "zync-database-password" . }}@postgresql-server:5432/zync
ZYNC_DATABASE_PASSWORD: {{ include "zync-database-password" . | quote }}
type: Opaque
---
apiVersion: v1
kind: Secret
metadata:
annotations:
argocd.argoproj.io/sync-wave: "10"
name: apicast-custom-environment
namespace: {{ .Values.projectName | quote }}
stringData:
custom.lua: |
local cjson = require('cjson')
local PolicyChain = require('apicast.policy_chain')
local policy_chain = context.policy_chain
policy_chain:insert( PolicyChain.load_policy('cors', 'builtin', { }), 1)
return {
policy_chain = policy_chain,
port = { metrics = 9421 },
}
type: Opaque
---
apiVersion: apps.3scale.net/v1alpha1
kind: APIManager
metadata:
annotations:
argocd.argoproj.io/sync-wave: "20"
name: 3scale-install
namespace: {{ .Values.projectName | quote }}
spec:
wildcardDomain: {{ .Values.threescale.wildcardDomain | quote }}
resourceRequirementsEnabled: true
externalComponents:
zync:
database: true
system:
database: true
apicast:
stagingSpec:
customEnvironments:
- secretRef:
name: apicast-custom-environment
productionSpec:
customEnvironments:
- secretRef:
name: apicast-custom-environment