Initial commit

This commit is contained in:
2025-01-23 14:30:16 +00:00
commit 4519204c41
10 changed files with 316 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: exempleci-deployment
labels:
app: exempleci
spec:
selector:
matchLabels:
app: exempleci
replicas: 1
template:
metadata:
labels:
app: exempleci
spec:
containers:
- name: flask
image: git.lab.adho.app/{{ username }}/exempleci:latest
livenessProbe:
httpGet:
path: /
port: 5000
initialDelaySeconds: 10
periodSeconds: 5
startupProbe:
httpGet:
path: /
port: 5000
failureThreshold: 30
periodSeconds: 20
ports:
- containerPort: 5000
imagePullSecrets:
- name: registry-lab-secret
+13
View File
@@ -0,0 +1,13 @@
kind: Service
apiVersion: v1
metadata:
name: exempleci
labels:
app: exempleci
spec:
type: ClusterIP
selector:
app: exempleci
ports:
- port: 5000
targetPort: 5000
+25
View File
@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: exempleci-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
labels:
app: exempleci
spec:
ingressClassName: nginx
tls:
- hosts:
- exempleci.{{TRIGRAMME}}.lab.adho.app
secretName: exempleci-tls
rules:
- host: exempleci.{{TRIGRAMME}}.lab.adho.app
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: exempleci
port:
number: 5000