39 lines
803 B
Smarty
Executable File
39 lines
803 B
Smarty
Executable File
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frontend
|
|
namespace: sk1
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: gcr.io/${PROJECT}/frontend:latest
|
|
resources:
|
|
limits:
|
|
cpu: "0.3"
|
|
memory: "256Mi"
|
|
requests:
|
|
cpu: "0.1"
|
|
memory: "128Mi"
|
|
ports:
|
|
- containerPort: 80
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 15 |