From 78890d3ec65d56756dc773d98f394bfaab0670b9 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Sun, 31 May 2020 21:13:51 +0200 Subject: [PATCH] change to recreate, probe update and limits --- owntracks/01-deployment.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/owntracks/01-deployment.yaml b/owntracks/01-deployment.yaml index 6ddec00..6fbf542 100644 --- a/owntracks/01-deployment.yaml +++ b/owntracks/01-deployment.yaml @@ -10,7 +10,7 @@ spec: matchLabels: app: recorder strategy: - type: RollingUpdate + type: Recreate template: metadata: labels: @@ -30,10 +30,10 @@ spec: - --viewsdir - /htdocs/viewsjson livenessProbe: - exec: - command: - - /usr/local/sbin/recorder-health.sh - initialDelaySeconds: 5 + httpGet: + path: /api/0/monitor + port: 8083 + initialDelaySeconds: 1 periodSeconds: 30 ports: - containerPort: 8083 @@ -48,6 +48,13 @@ spec: securityContext: runAsUser: 9999 runAsGroup: 9999 + resources: + requests: + memory: 32Mi + cpu: 100m + limits: + memory: 128Mi + cpu: 300m volumes: - name: data persistentVolumeClaim: