Skip to content

Commit

Permalink
Dummy commit 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Todor Videv committed May 14, 2024
1 parent 7d36708 commit 22cefff
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions helm/content-rw-elasticsearch/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,43 @@ spec:
periodSeconds: 30
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- if .Values.openPolicyAgentSidecar }}
- name: "{{ .Values.openPolicyAgentSidecar.name }}"
image: "{{ .Values.openPolicyAgentSidecar.repository }}:{{ .Values.openPolicyAgentSidecar.tag }}"
imagePullPolicy: {{ .Values.openPolicyAgentSidecar.pullPolicy }}
env:
- name: POLICY_BUCKET
valueFrom:
configMapKeyRef:
name: global-config
key: opa.policy2.bucket
ports:
- name: http
containerPort: 8181
livenessProbe:
httpGet:
path: /health
scheme: HTTP
port: 8181
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /health?bundle=true
scheme: HTTP
port: 8181
initialDelaySeconds: 5
periodSeconds: 10
args:
- "run"
- "--ignore=.*"
- "--server"
- "--log-level=error"
- "--log-format=json"
- "--set=services.bundlesS3Bucket.url=$(POLICY_BUCKET)"
- "--set=services.bundlesS3Bucket.credentials.s3_signing.web_identity_credentials.aws_region=$(AWS_REGION)"
- "--set=bundles.contentRWElasticsearch.service=bundlesS3Bucket"
- "--set=bundles.contentRWElasticsearch.resource=content-rw-neo4j.bundle.tar.gz"
- "--set=bundles.contentRWElasticsearch.polling.min_delay_seconds=120"
- "--set=bundles.contentRWElasticsearch.polling.max_delay_seconds=300"
{{- end}}

0 comments on commit 22cefff

Please sign in to comment.