chore: add k8s manifests and deploy workflow for portal
Some checks failed
Build (develop) / Promote (main) / build-and-push-deploy (push) Failing after 8s
Some checks failed
Build (develop) / Promote (main) / build-and-push-deploy (push) Failing after 8s
This commit is contained in:
69
k8s/base/deployment.yaml
Normal file
69
k8s/base/deployment.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: vendaweb-portal
|
||||
labels:
|
||||
app: vendaweb-portal
|
||||
spec:
|
||||
replicas: 3
|
||||
revisionHistoryLimit: 5
|
||||
minReadySeconds: 10
|
||||
progressDeadlineSeconds: 600
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
selector:
|
||||
matchLabels:
|
||||
app: vendaweb-portal
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: vendaweb-portal
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: gitea-auth
|
||||
terminationGracePeriodSeconds: 30
|
||||
containers:
|
||||
- name: portal
|
||||
image: git.simplifiquehc.com.br/simplifique/vendaweb-portal:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: vendaweb-portal-config
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 6
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 6
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 24
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
Reference in New Issue
Block a user