change to recreate, probe update and limits
This commit is contained in:
parent
d11a9d3aaf
commit
78890d3ec6
|
@ -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:
|
||||
|
|
Reference in a new issue