change to recreate, probe update and limits
This commit is contained in:
parent
d11a9d3aaf
commit
78890d3ec6
|
@ -10,7 +10,7 @@ spec:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: recorder
|
app: recorder
|
||||||
strategy:
|
strategy:
|
||||||
type: RollingUpdate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -30,10 +30,10 @@ spec:
|
||||||
- --viewsdir
|
- --viewsdir
|
||||||
- /htdocs/viewsjson
|
- /htdocs/viewsjson
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
httpGet:
|
||||||
command:
|
path: /api/0/monitor
|
||||||
- /usr/local/sbin/recorder-health.sh
|
port: 8083
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 1
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8083
|
- containerPort: 8083
|
||||||
|
@ -48,6 +48,13 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 9999
|
runAsUser: 9999
|
||||||
runAsGroup: 9999
|
runAsGroup: 9999
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 32Mi
|
||||||
|
cpu: 100m
|
||||||
|
limits:
|
||||||
|
memory: 128Mi
|
||||||
|
cpu: 300m
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
Reference in a new issue