ci-workflows/templates/deployment.yaml
2026-04-29 22:39:12 +07:00

28 lines
629 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ${RESOURCE_NAME}
spec:
replicas: ${REPLICAS}
selector:
matchLabels:
app: ${RESOURCE_NAME}
template:
metadata:
labels:
app: ${RESOURCE_NAME}
spec:
imagePullSecrets:
- name: forgejo-registry
containers:
- name: ${APP_NAME}
image: ${IMAGE}
ports:
- containerPort: ${PORT}
resources:
requests:
cpu: ${CPU_REQUEST}
memory: ${MEMORY_REQUEST}
limits:
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}