docs: add deployment playbooks and templates
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: #APP_NAME
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: #APP_NAME
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: #APP_NAME
|
||||
spec:
|
||||
containers:
|
||||
- name: #APP_NAME
|
||||
image: #IMAGE:frontend
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: #SECRET_NAME
|
||||
ports:
|
||||
- containerPort: #PORT
|
||||
name: http
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: http
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: http
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: #APP_NAME
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: #HOST
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: #APP_NAME
|
||||
port:
|
||||
number: 80
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- deployment-app.yaml
|
||||
- service-app.yaml
|
||||
- ingress.yaml
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: #APP_NAME
|
||||
spec:
|
||||
selector:
|
||||
app: #APP_NAME
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: http
|
||||
name: http
|
||||
Reference in New Issue
Block a user