63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: vendaweb-api
|
|
labels:
|
|
app: vendaweb-api
|
|
spec:
|
|
replicas: 15
|
|
selector:
|
|
matchLabels:
|
|
app: vendaweb-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: vendaweb-api
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: gitea-auth
|
|
containers:
|
|
- name: api
|
|
image: git.simplifiquehc.com.br/simplifique/vendaweb-api:589fa29
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 8067
|
|
protocol: TCP
|
|
envFrom:
|
|
- configMapRef:
|
|
name: vendaweb-api-config
|
|
- secretRef:
|
|
name: vendaweb-api-secrets
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
timeoutSeconds: 2
|
|
failureThreshold: 6
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 2
|
|
failureThreshold: 6
|
|
startupProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
timeoutSeconds: 2
|
|
failureThreshold: 24
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|