# CHANGE ME: replace GITEA_OWNER with your Gitea username/org (see
# docs/DEPLOYMENT.md Phase 5) before applying, e.g.:
#   sed -i '' 's/GITEA_OWNER/apexadmin/' deploy/k8s/apex-turf/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: apex-turf-web
  namespace: apex-turf
  labels:
    app: apex-turf-web
spec:
  replicas: 2
  selector:
    matchLabels:
      app: apex-turf-web
  template:
    metadata:
      labels:
        app: apex-turf-web
    spec:
      containers:
        - name: web
          image: git.apexturf.es/GITEA_OWNER/apex-turf-web:latest
          ports:
            - containerPort: 80
          resources:
            requests:
              cpu: 25m
              memory: 32Mi
            limits:
              cpu: 200m
              memory: 64Mi
          readinessProbe:
            httpGet:
              path: /
              port: 80
            initialDelaySeconds: 2
            periodSeconds: 5
          livenessProbe:
            httpGet:
              path: /
              port: 80
            initialDelaySeconds: 5
            periodSeconds: 10
      imagePullSecrets:
        - name: gitea-registry
