- Migrated from Python pre-commit to NodeJS-native solution - Reorganized documentation structure - Set up Husky + lint-staged for efficient pre-commit hooks - Fixed Dockerfile healthcheck issue - Added comprehensive documentation index
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ${APP_NAME}-frontend
|
|
labels:
|
|
app: ${APP_NAME}
|
|
component: frontend
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ${APP_NAME}
|
|
component: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ${APP_NAME}
|
|
component: frontend
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: ${DOCKER_IMAGE}
|
|
ports:
|
|
- containerPort: 80
|
|
envFrom:
|
|
- configMapRef:
|
|
name: ${APP_NAME}-config
|
|
resources:
|
|
requests:
|
|
memory: '32Mi'
|
|
cpu: '20m'
|
|
limits:
|
|
memory: '64Mi'
|
|
cpu: '40m'
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|