diff --git a/deployment/nginx-ingress/nginx-ingress-load-balancer.yaml b/deployment/nginx-ingress/nginx-ingress-load-balancer.yaml deleted file mode 100644 index 1153a16..0000000 --- a/deployment/nginx-ingress/nginx-ingress-load-balancer.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: ingress-nginx-controller-loadbalancer - namespace: ingress-nginx -spec: - selector: - app.kubernetes.io/component: controller - app.kubernetes.io/instance: ingress-nginx - app.kubernetes.io/name: ingress-nginx - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 80 - - name: https - port: 443 - protocol: TCP - targetPort: 443 - type: LoadBalancer \ No newline at end of file diff --git a/template/backend/backend.template.yaml b/template/backend/backend.template.yaml index 96915e5..80f2ae7 100644 --- a/template/backend/backend.template.yaml +++ b/template/backend/backend.template.yaml @@ -31,6 +31,11 @@ spec: path: /health port: 8070 initialDelaySeconds: 60 + livenessProbe: + httpGet: + path: /health + port: 8070 + initialDelaySeconds: 60 env: - name: FRONTEND_PATH valueFrom: diff --git a/template/frontend/frontend.template.yaml b/template/frontend/frontend.template.yaml index 385b995..b515e1c 100644 --- a/template/frontend/frontend.template.yaml +++ b/template/frontend/frontend.template.yaml @@ -28,6 +28,16 @@ spec: cpu: "75m" ports: - containerPort: 5000 + readinessProbe: + httpGet: + path: / + port: 5000 + initialDelaySeconds: 10 + livenessProbe: + httpGet: + path: / + port: 5000 + initialDelaySeconds: 10 env: - name: PORT value: "5000" diff --git a/template/storage/storage-processor.template.yaml b/template/storage/storage-processor.template.yaml index 2c2d902..4c10197 100644 --- a/template/storage/storage-processor.template.yaml +++ b/template/storage/storage-processor.template.yaml @@ -25,6 +25,18 @@ spec: limits: memory: "128Mi" cpu: "75m" + readinessProbe: + exec: + command: + - touch + - /tmp/healthy + initialDelaySeconds: 30 + livenessProbe: + exec: + command: + - touch + - /tmp/healthy + initialDelaySeconds: 30 env: - name: ALLOWED_ORIGINS valueFrom: diff --git a/template/storage/storage.template.yaml b/template/storage/storage.template.yaml index 302b0d4..3055291 100644 --- a/template/storage/storage.template.yaml +++ b/template/storage/storage.template.yaml @@ -31,6 +31,11 @@ spec: path: /health port: 8000 initialDelaySeconds: 30 + livenessProbe: + httpGet: + path: /health + port: 8000 + initialDelaySeconds: 30 env: - name: ALLOWED_ORIGINS valueFrom: