Skip to content
Snippets Groups Projects
Commit 0d4bd4b6 authored by egon w. stemle's avatar egon w. stemle :robot:
Browse files

Add livenessProbe for nginx deployment

'502 Bad Gateway' errors from the k8s ingress server can be solved
(sometimes) by restarting the nginx pod. Here we check
https://clarin(-dev).eurac.edu:443

Addresses #53
parent 55443b09
No related branches found
No related tags found
No related merge requests found
......@@ -25,4 +25,4 @@ echo "Modified all files to point to clarin.eurac.edu instead of clarin-dev.eura
# adapt namespace in kubernetes yaml files
sed -i 's/dspace-dev/dspace/' kubernetes/*.yaml
perl -pi -e 's/clarin-dev/clarin/g' kubernetes/dspace-ingress.yaml
perl -pi -e 's/clarin-dev/clarin/g' kubernetes/{dspace-ingress,nginx-deployment}.yaml
......@@ -32,6 +32,14 @@ spec:
name: nginx-shib-certs
- mountPath: /etc/ssl/clarin
name: nginx-ssl-certs
livenessProbe:
httpGet:
host: clarin-dev.eurac.edu
port: 443
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 15
timeoutSeconds: 3
restartPolicy: Always
imagePullSecrets:
- name: gitlab-scientificnet-org-registry
......
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