apiVersion: apps/v1
kind: Deployment
metadata:
  name: news-site
  namespace: openclaw-private
  labels:
    app: news-site
    app.kubernetes.io/component: frontend
    app.kubernetes.io/part-of: signalledger
    app.kubernetes.io/managed-by: gitea-actions
spec:
  replicas: 2
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
  selector:
    matchLabels:
      app: news-site
  template:
    metadata:
      labels:
        app: news-site
        app.kubernetes.io/component: frontend
        app.kubernetes.io/part-of: signalledger
    spec:
      containers:
        - name: news-site
          image: registry.claw.jopdorp.nl/signalledger:latest
          imagePullPolicy: Always
          ports:
            - containerPort: 80
              name: http
          resources:
            requests:
              memory: "32Mi"
              cpu: "50m"
            limits:
              memory: "128Mi"
              cpu: "200m"
          livenessProbe:
            httpGet:
              path: /
              port: 80
            initialDelaySeconds: 10
            periodSeconds: 10
          readinessProbe:
            httpGet:
              path: /
              port: 80
            initialDelaySeconds: 5
            periodSeconds: 5
