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:
- 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)
......
......@@ -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:
......
......@@ -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 }}"
......
......@@ -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"
......
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