Update arcade.yaml
Some checks failed
Flask CI/CD Pipeline / format-and-auto-fix (push) Successful in 17s
Flask CI/CD Pipeline / test-and-verify (push) Successful in 32s
Flask CI/CD Pipeline / deploy-to-k3s (push) Has been cancelled
Flask CI/CD Pipeline / build-scan-and-push-image (push) Has been cancelled
Some checks failed
Flask CI/CD Pipeline / format-and-auto-fix (push) Successful in 17s
Flask CI/CD Pipeline / test-and-verify (push) Successful in 32s
Flask CI/CD Pipeline / deploy-to-k3s (push) Has been cancelled
Flask CI/CD Pipeline / build-scan-and-push-image (push) Has been cancelled
This commit is contained in:
42
arcade.yaml
42
arcade.yaml
@@ -5,42 +5,50 @@ metadata:
|
||||
namespace: devsecops
|
||||
labels:
|
||||
app: arcade
|
||||
annotations:
|
||||
app.onlionel.com/git-sha: "__GIT_SHA__"
|
||||
spec:
|
||||
replicas: 2
|
||||
revisionHistoryLimit: 5
|
||||
selector:
|
||||
matchLabels:
|
||||
app: arcade
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 10
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxUnavailable: 0
|
||||
maxSurge: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: arcade
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: arcade
|
||||
annotations:
|
||||
app.onlionel.com/git-sha: "__GIT_SHA__"
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
containers:
|
||||
- name: arcade
|
||||
image: git.onlionel.com/lionel/arcade:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
image: git.onlionel.com/lionel/arcade:__IMAGE_TAG__
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
path: /health
|
||||
port: 5000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 6
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
path: /health
|
||||
port: 5000
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 3
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -51,8 +59,7 @@ spec:
|
||||
selector:
|
||||
app: arcade
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
- port: 80
|
||||
targetPort: 5000
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
@@ -62,10 +69,13 @@ metadata:
|
||||
namespace: devsecops
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
traefik.ingress.kubernetes.io/router.tls.certresolver: le
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- arcade.onlionel.com
|
||||
secretName: arcade-tls
|
||||
rules:
|
||||
- host: arcade.onlionel.com
|
||||
http:
|
||||
|
||||
Reference in New Issue
Block a user