docs: add deployment playbooks and templates
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user