2023-04-17 14:11:49 +00:00
|
|
|
---
|
|
|
|
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
|
2023-04-17 14:48:24 +00:00
|
|
|
image: buildr-docs
|
2023-04-17 14:11:49 +00:00
|
|
|
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
|