Skip to content
Snippets Groups Projects
Commit b23337ea authored by Marc Burnie [AWS]'s avatar Marc Burnie [AWS]
Browse files

add scaling to OPA

parent aad780fc
No related branches found
No related tags found
3 merge requests!299Update Dev branch,!298Securityfix,!237Adding Scaling to AWS OPA Deployment
Pipeline #144583 failed
{{- template "common.scaledobject" (list . "os-entitlements.scaledobject") -}}
{{- define "os-entitlements.scaledobject" -}}
## Define overrides for the service's scaled object resource here
{{- end -}}
\ No newline at end of file
...@@ -20,13 +20,21 @@ podAnnotations: ...@@ -20,13 +20,21 @@ podAnnotations:
seccomp.security.alpha.kubernetes.io/pod: "runtime/default" seccomp.security.alpha.kubernetes.io/pod: "runtime/default"
# Resource Config # Resource Config
replicaCount: 2 maxConnections: 200
replicaCount: 1
resources: resources:
limits: limits:
memory: 200M memory: 200M
requests: requests:
cpu: 500m cpu: 500m
memory: 100M memory: 100M
autoscaling:
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 90
coolDownPeriod: 120
ServiceRequestCountThreshold: 25
ServiceRequestDurationAverage: 500
# Security Config # Security Config
serviceAccountRole: arn:aws:iam::{{ .Values.global.accountID }}:role/osdu-{{ .Values.global.resourcePrefix }}-{{ .Values.global.region }}-{{ include "common.name" . }} serviceAccountRole: arn:aws:iam::{{ .Values.global.accountID }}:role/osdu-{{ .Values.global.resourcePrefix }}-{{ .Values.global.region }}-{{ include "common.name" . }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment