Skip to content
Snippets Groups Projects
Commit ed59b08a authored by Aleksandr Primachenko [EPAM / GCP]'s avatar Aleksandr Primachenko [EPAM / GCP] Committed by Oleksandr Kosse (EPAM)
Browse files

[GONRG-7917] added livenessProbe

parent 683a0311
No related branches found
No related tags found
1 merge request!438[GONRG-7917] added livenessProbe
...@@ -96,7 +96,7 @@ The following software have components provided under the terms of this license: ...@@ -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) - PyJWT (from http://github.com/jpadilla/pyjwt, https://github.com/jpadilla/pyjwt)
- PyYAML (from http://pyyaml.org/wiki/PyYAML) - 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/) - 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/) - 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) - azure-common (from https://github.com/Azure/azure-sdk-for-python)
......
...@@ -6,7 +6,7 @@ metadata: ...@@ -6,7 +6,7 @@ metadata:
app: "{{ .Values.opa.conf.appName }}" app: "{{ .Values.opa.conf.appName }}"
namespace: "{{ .Release.Namespace }}" namespace: "{{ .Release.Namespace }}"
spec: spec:
replicas: 1 replicas: {{ .Values.opa.conf.replicas }}
strategy: strategy:
type: Recreate type: Recreate
selector: selector:
......
...@@ -9,7 +9,7 @@ spec: ...@@ -9,7 +9,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: "{{ .Values.conf.appName }}" app: "{{ .Values.conf.appName }}"
replicas: 2 replicas: {{ .Values.conf.replicas }}
template: template:
metadata: metadata:
labels: labels:
...@@ -37,6 +37,13 @@ spec: ...@@ -37,6 +37,13 @@ spec:
runAsNonRoot: true runAsNonRoot: true
ports: ports:
- containerPort: 8080 - containerPort: 8080
livenessProbe:
failureThreshold: 3
httpGet:
path: api/policy/v1/health
port: 8080
initialDelaySeconds: 120
periodSeconds: 10
resources: resources:
requests: requests:
cpu: "{{ .Values.data.requestsCpu }}" cpu: "{{ .Values.data.requestsCpu }}"
......
...@@ -35,6 +35,7 @@ conf: ...@@ -35,6 +35,7 @@ conf:
bootstrapSecretName: "minio-bootstrap-secret" bootstrapSecretName: "minio-bootstrap-secret"
minDelaySeconds: 6 minDelaySeconds: 6
maxDelaySeconds: 12 maxDelaySeconds: 12
replicas: 2
opa: opa:
data: data:
...@@ -45,6 +46,7 @@ opa: ...@@ -45,6 +46,7 @@ opa:
configmap: "opa-config" configmap: "opa-config"
envConfig: "opa-env-config" envConfig: "opa-env-config"
appName: "opa" appName: "opa"
replicas: 1
istio: istio:
proxyCPU: "10m" proxyCPU: "10m"
......
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