Add arcade.yaml
Some checks failed
Flask CI/CD Pipeline / format-and-auto-fix (push) Successful in 16s
Flask CI/CD Pipeline / test-and-verify (push) Successful in 33s
Flask CI/CD Pipeline / build-scan-and-push-image (push) Successful in 53s
Flask CI/CD Pipeline / deploy-to-k3s (push) Failing after 6s

This commit is contained in:
2026-04-16 20:26:43 +00:00
parent d90a98f241
commit aed9885701

79
arcade.yaml Normal file
View File

@@ -0,0 +1,79 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: arcade
namespace: devsecops
labels:
app: arcade
spec:
replicas: 2
revisionHistoryLimit: 5
selector:
matchLabels:
app: arcade
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
labels:
app: arcade
spec:
containers:
- name: arcade
image: git.onlionel.com/lionel/arcade:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5000
readinessProbe:
httpGet:
path: /
port: 5000
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: 5000
initialDelaySeconds: 15
periodSeconds: 20
imagePullSecrets:
- name: gitea-registry
---
apiVersion: v1
kind: Service
metadata:
name: arcade
namespace: devsecops
spec:
selector:
app: arcade
ports:
- name: http
port: 80
targetPort: 5000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: arcade
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
rules:
- host: arcade.onlionel.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: arcade
port:
number: 80