apps/nocodb/resources/deployment.yaml

89 lines
2.3 KiB
YAML
Raw Normal View History

# yaml-language-server: $scheme=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.30.2-standalone-strict/deployment-apps-v1.json
2023-11-14 21:12:33 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nocodb
spec:
selector:
matchLabels:
app.kubernetes.io/name: nocodb
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/name: nocodb
spec:
containers:
2024-06-26 06:15:10 +00:00
- name: nocodb
image: nocodb
envFrom:
- secretRef:
name: nocodb-config
ports:
- containerPort: 8080
protocol: TCP
name: web
volumeMounts:
- name: nocodb-metadata
mountPath: /usr/app/data
- name: tmp
mountPath: /tmp
livenessProbe:
httpGet:
path: /api/v1/health
port: web
scheme: HTTP
initialDelaySeconds: 10
timeoutSeconds: 3
periodSeconds: 5
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /api/v1/health
port: web
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 3
periodSeconds: 5
successThreshold: 1
failureThreshold: 3
resources:
requests:
memory: "168Mi"
cpu: "50m"
limits:
memory: "256Mi"
cpu: "500m"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- arm64
2023-11-14 21:12:33 +00:00
volumes:
- name: nocodb-metadata
persistentVolumeClaim:
claimName: nocodb-metadata
2024-06-26 06:15:10 +00:00
- name: tmp
emptyDir:
sizeLimit: 50Mi
2023-11-14 21:12:33 +00:00
securityContext:
runAsUser: 1000
runAsGroup: 1000
2024-05-07 15:17:04 +00:00
fsGroup: 1000
2024-06-26 06:15:10 +00:00
runAsNonRoot: true