www/manifest/deployment.yaml

45 lines
1.1 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: techaro-lol
annotations:
operator.1password.io/auto-restart: "true"
spec:
replicas: 1
template:
spec:
securityContext:
fsGroup: 1000
containers:
- name: main
image: ghcr.io/xe/techaro-lol:latest
imagePullPolicy: "Always"
resources:
limits:
cpu: "2"
memory: "1Gi"
requests:
cpu: "500m"
memory: "512Mi"
envFrom:
- secretRef:
name: techaro-lol
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
livenessProbe:
httpGet:
path: /
port: 3000
httpHeaders:
- name: X-Kubernetes
value: "is kinda okay"
initialDelaySeconds: 3
periodSeconds: 3