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

This commit is contained in:
2026-04-17 08:05:20 +00:00
parent a18b41e48f
commit e88fc715f9

View File

@@ -5,42 +5,50 @@ metadata:
namespace: devsecops namespace: devsecops
labels: labels:
app: arcade app: arcade
annotations:
app.onlionel.com/git-sha: "__GIT_SHA__"
spec: spec:
replicas: 2 replicas: 1
revisionHistoryLimit: 5 revisionHistoryLimit: 10
selector:
matchLabels:
app: arcade
strategy: strategy:
type: RollingUpdate type: RollingUpdate
rollingUpdate: rollingUpdate:
maxUnavailable: 0 maxUnavailable: 0
maxSurge: 1 maxSurge: 1
selector:
matchLabels:
app: arcade
template: template:
metadata: metadata:
labels: labels:
app: arcade app: arcade
annotations:
app.onlionel.com/git-sha: "__GIT_SHA__"
spec: spec:
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: arcade - name: arcade
image: git.onlionel.com/lionel/arcade:latest image: git.onlionel.com/lionel/arcade:__IMAGE_TAG__
imagePullPolicy: IfNotPresent imagePullPolicy: Always
ports: ports:
- containerPort: 5000 - containerPort: 5000
readinessProbe: readinessProbe:
httpGet: httpGet:
path: / path: /health
port: 5000 port: 5000
initialDelaySeconds: 5 initialDelaySeconds: 5
periodSeconds: 10 periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 6
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /health
port: 5000 port: 5000
initialDelaySeconds: 15 initialDelaySeconds: 15
periodSeconds: 20 periodSeconds: 10
imagePullSecrets: timeoutSeconds: 2
- name: gitea-registry failureThreshold: 3
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@@ -51,8 +59,7 @@ spec:
selector: selector:
app: arcade app: arcade
ports: ports:
- name: http - port: 80
port: 80
targetPort: 5000 targetPort: 5000
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
@@ -62,10 +69,13 @@ metadata:
namespace: devsecops namespace: devsecops
annotations: annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.tls.certresolver: le traefik.ingress.kubernetes.io/router.tls.certresolver: le
spec: spec:
ingressClassName: traefik ingressClassName: traefik
tls:
- hosts:
- arcade.onlionel.com
secretName: arcade-tls
rules: rules:
- host: arcade.onlionel.com - host: arcade.onlionel.com
http: http:
@@ -76,4 +86,4 @@ spec:
service: service:
name: arcade name: arcade
port: port:
number: 80 number: 80