Added Argo Manifests

This commit is contained in:
Corrado Mulas
2026-06-19 11:33:42 +02:00
parent 2773db9e88
commit f62a24ecec
13 changed files with 236 additions and 47 deletions

66
k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,66 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: groupfactory
namespace: groupfactory
labels:
app.kubernetes.io/name: groupfactory
app.kubernetes.io/component: app
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: groupfactory
app.kubernetes.io/component: app
template:
metadata:
labels:
app.kubernetes.io/name: groupfactory
app.kubernetes.io/component: app
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: groupfactory
image: registry.example.com/groupfactory:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8000
envFrom:
- configMapRef:
name: telegram-config
- secretRef:
name: groupfactory-tg-auth
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 30
periodSeconds: 20
startupProbe:
httpGet:
path: /health
port: http
failureThreshold: 30
periodSeconds: 5
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

4
k8s/namespace.yaml Normal file
View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: groupfactory

17
k8s/service.yaml Normal file
View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: groupfactory
namespace: groupfactory
labels:
app.kubernetes.io/name: groupfactory
app.kubernetes.io/component: app
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: groupfactory
app.kubernetes.io/component: app
ports:
- name: http
port: 8000
targetPort: http