Use rust static-web-server instead of nginx

This commit is contained in:
2022-10-25 16:28:16 +00:00
parent 310513ff97
commit 747208a364
2 changed files with 31 additions and 20 deletions

View File

@@ -7,6 +7,7 @@ metadata:
app: dsm-client
spec:
replicas: 2
selector:
matchLabels:
app: dsm-client
@@ -17,33 +18,32 @@ spec:
app: dsm-client
spec:
securityContext:
runAsUser: 1001
runAsGroup: 1001
runAsNonRoot: true
containers:
- name: dsm-client
image: IMAGE
resources:
limits:
memory: 32Mi
cpu: 500m
requests:
memory: 32Mi
cpu: 5m
ports:
- name: http
containerPort: 80
containerPort: 8080
resources:
limits:
cpu: 100m
memory: 32Mi
requests:
cpu: 5m
memory: 32Mi
livenessProbe:
tcpSocket:
port: http
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
readinessProbe:
tcpSocket:
port: http
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
successThreshold: 1
initialDelaySeconds: 5