Files
cluster-state/apps/nihongo/deployment.yaml
2026-07-08 22:24:07 +02:00

48 lines
970 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nihongo
namespace: nihongo
spec:
replicas: 1
selector:
matchLabels:
app: nihongo
template:
metadata:
labels:
app: nihongo
spec:
containers:
- name: nginx
image: nginx:1.27-alpine
ports:
- containerPort: 80
volumeMounts:
- name: html
mountPath: /usr/share/nginx/html
readOnly: true
resources:
requests:
cpu: 10m
memory: 16Mi
limits:
cpu: 100m
memory: 64Mi
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 15
periodSeconds: 30
volumes:
- name: html
configMap:
name: nihongo-html