46 lines
959 B
YAML
46 lines
959 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: web-app
|
|
namespace: web-app
|
|
labels:
|
|
app: k8s-task-manager
|
|
tier: frontend
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: k8s-task-manager
|
|
tier: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: k8s-task-manager
|
|
tier: frontend
|
|
spec:
|
|
containers:
|
|
- name: web-app
|
|
image: k8s-task-manager-frontend:latest
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 80
|
|
resources:
|
|
requests:
|
|
cpu: "100m"
|
|
memory: "128Mi"
|
|
limits:
|
|
cpu: "250m"
|
|
memory: "256Mi"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|