docs: add deployment playbooks and templates

This commit is contained in:
2026-07-19 18:02:47 +00:00 Unverified
commit b59d1df970
124 changed files with 2005 additions and 0 deletions
@@ -0,0 +1,14 @@
# Compose Single Service Migration
Before:
1. One compose service
2. Optional `env_file`
3. Exposed port
After:
1. One Kubernetes deployment
2. One service
3. One ingress
4. One secret
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: #APP_NAME
spec:
replicas: 1
selector:
matchLabels:
app: #APP_NAME
template:
metadata:
labels:
app: #APP_NAME
spec:
containers:
- name: #APP_NAME
image: #IMAGE
envFrom:
- secretRef:
name: #SECRET_NAME
@@ -0,0 +1,6 @@
services:
#APP_NAME:
build: .
env_file: .env
ports:
- "3000:3000"