add security and resource limits to flyimg

This commit is contained in:
Lee 2024-09-23 07:46:29 +01:00
parent e6daf1382f
commit 0e51f18376

View File

@ -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