feat: initial GitOps infrastructure

ArgoCD app definitions, Kustomize manifests for health-app,
cert-manager ClusterIssuer, and AppProject configuration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-01 20:25:58 +00:00
commit cd9d319f0a
10 changed files with 255 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: health-app
labels:
app.kubernetes.io/name: health-app
app.kubernetes.io/part-of: infinicaretech
spec:
replicas: 2
revisionHistoryLimit: 5
selector:
matchLabels:
app.kubernetes.io/name: health-app
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
labels:
app.kubernetes.io/name: health-app
spec:
automountServiceAccountToken: false
securityContext:
runAsNonRoot: true
runAsUser: 1001
runAsGroup: 1001
fsGroup: 1001
seccompProfile:
type: RuntimeDefault
containers:
- name: health-app
image: ghcr.io/infinicaretech/health-app:latest
ports:
- name: http
containerPort: 3000
protocol: TCP
env:
- name: PORT
value: "3000"
- name: NODE_ENV
value: "production"
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 10
periodSeconds: 30
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
httpGet:
path: /ready
port: http
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 2
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
imagePullSecrets:
- name: ghcr-cred

View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: health-app
annotations:
cert-manager.io/cluster-issuer: infinicaretech-ca-issuer
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- health.infinicaretech.local
secretName: health-app-tls
rules:
- host: health.infinicaretech.local
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: health-app
port:
name: http

View File

@@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: health-app
resources:
- deployment.yaml
- service.yaml
- ingress.yaml
- networkpolicy.yaml
commonLabels:
app.kubernetes.io/managed-by: argocd

View File

@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: health-app-netpol
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: health-app
policyTypes:
- Ingress
- Egress
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: ingress-nginx
ports:
- port: 3000
protocol: TCP
egress:
- {}

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: health-app
labels:
app.kubernetes.io/name: health-app
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: health-app
ports:
- name: http
port: 80
targetPort: http
protocol: TCP