add security and resource limits to flyimg
This commit is contained in:
parent
e6daf1382f
commit
0e51f18376
@ -17,8 +17,17 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: flyimg-container
|
- name: flyimg-container
|
||||||
image: flyimg/flyimg:1.4.12
|
image: flyimg/flyimg:1.4.12
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 200Mi
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 300Mi
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
Reference in New Issue
Block a user