diff --git a/NOTICE b/NOTICE index 86a668142f2b22e971cb5a2aa17bef78920ff1d3..c36da838d39853c87786cbb84f0f8d784a9979aa 100644 --- a/NOTICE +++ b/NOTICE @@ -96,7 +96,7 @@ The following software have components provided under the terms of this license: - PyJWT (from http://github.com/jpadilla/pyjwt, https://github.com/jpadilla/pyjwt) - PyYAML (from http://pyyaml.org/wiki/PyYAML) -- annotated-types (from https://pypi.org/project/annotated-types/0.5.0/) +- annotated-types (from https://pypi.org/project/annotated-types/0.6.0/) - anyio (from https://pypi.org/project/anyio/3.3.0/, https://pypi.org/project/anyio/4.0.0/) - attrs (from https://attrs.readthedocs.io/, https://pypi.org/project/attrs/23.1.0/, https://www.attrs.org/) - azure-common (from https://github.com/Azure/azure-sdk-for-python) diff --git a/devops/gc/deploy/templates/opa-deployment.yaml b/devops/gc/deploy/templates/opa-deployment.yaml index 44e91b5d4366eae92ac6519e087b6db3d5a63fb7..fca64f90b3f4110aed663d0bcb949475a235960b 100644 --- a/devops/gc/deploy/templates/opa-deployment.yaml +++ b/devops/gc/deploy/templates/opa-deployment.yaml @@ -6,7 +6,7 @@ metadata: app: "{{ .Values.opa.conf.appName }}" namespace: "{{ .Release.Namespace }}" spec: - replicas: 1 + replicas: {{ .Values.opa.conf.replicas }} strategy: type: Recreate selector: diff --git a/devops/gc/deploy/templates/policy-deployment.yaml b/devops/gc/deploy/templates/policy-deployment.yaml index a2d88fbe4edaedbc7da7cc1ba01cc3612da380f3..a7df1a3c027ece71a95d4b335e049d95f35dc70b 100644 --- a/devops/gc/deploy/templates/policy-deployment.yaml +++ b/devops/gc/deploy/templates/policy-deployment.yaml @@ -9,7 +9,7 @@ spec: selector: matchLabels: app: "{{ .Values.conf.appName }}" - replicas: 2 + replicas: {{ .Values.conf.replicas }} template: metadata: labels: @@ -37,6 +37,13 @@ spec: runAsNonRoot: true ports: - containerPort: 8080 + livenessProbe: + failureThreshold: 3 + httpGet: + path: api/policy/v1/health + port: 8080 + initialDelaySeconds: 120 + periodSeconds: 10 resources: requests: cpu: "{{ .Values.data.requestsCpu }}" diff --git a/devops/gc/deploy/values.yaml b/devops/gc/deploy/values.yaml index d25a31082d736a44b5ec61f4e6f57701f992726d..73a6c6932a0e911610715a68e1e99f77bf8b2969 100644 --- a/devops/gc/deploy/values.yaml +++ b/devops/gc/deploy/values.yaml @@ -35,6 +35,7 @@ conf: bootstrapSecretName: "minio-bootstrap-secret" minDelaySeconds: 6 maxDelaySeconds: 12 + replicas: 2 opa: data: @@ -45,6 +46,7 @@ opa: configmap: "opa-config" envConfig: "opa-env-config" appName: "opa" + replicas: 1 istio: proxyCPU: "10m"