diff --git a/arcade.yaml b/arcade.yaml new file mode 100644 index 0000000..d919cd6 --- /dev/null +++ b/arcade.yaml @@ -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