59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: buildr-docs
|
||
|
namespace: buildr
|
||
|
labels:
|
||
|
app.kubernetes.io/name: buildr-docs
|
||
|
spec:
|
||
|
replicas: 2
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/name: buildr-docs
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app.kubernetes.io/name: buildr-docs
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: inetmock-docs
|
||
|
image: code.icb4dc0.de/buildr/docs
|
||
|
ports:
|
||
|
- name: http
|
||
|
containerPort: 3000
|
||
|
protocol: TCP
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: 100m
|
||
|
memory: 60Mi
|
||
|
requests:
|
||
|
cpu: 50m
|
||
|
memory: 20Mi
|
||
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: http
|
||
|
scheme: HTTP
|
||
|
timeoutSeconds: 1
|
||
|
periodSeconds: 10
|
||
|
successThreshold: 1
|
||
|
failureThreshold: 3
|
||
|
readinessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: http
|
||
|
scheme: HTTP
|
||
|
timeoutSeconds: 1
|
||
|
periodSeconds: 10
|
||
|
successThreshold: 1
|
||
|
failureThreshold: 3
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
securityContext:
|
||
|
capabilities:
|
||
|
drop:
|
||
|
- ALL
|
||
|
runAsUser: 65532
|
||
|
runAsNonRoot: true
|
||
|
readOnlyRootFilesystem: true
|
||
|
allowPrivilegeEscalation: false
|