45 lines
957 B
YAML
45 lines
957 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: online-loan-app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: online-loan-app
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: online-loan-app
|
|
spec:
|
|
containers:
|
|
- name: online-loan-app
|
|
env: []
|
|
image: online-loan-app
|
|
resources:
|
|
limits:
|
|
memory: "1536Mi"
|
|
requests:
|
|
memory: "1536Mi"
|
|
cpu: "100m"
|
|
ports:
|
|
- containerPort: 80
|
|
livenessProbe:
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
readinessProbe:
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
httpGet:
|
|
path: /
|
|
port: 80
|