---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: vikunja-ui
spec:
  replicas: 2
  selector:
    matchLabels:
      app.kubernetes.io/name: vikunja
      app.kubernetes.io/component: ui
      app.kubernetes.io/part-of: vikunja
  template:
    metadata:
      labels:
        app.kubernetes.io/name: vikunja
        app.kubernetes.io/component: ui
        app.kubernetes.io/part-of: vikunja
    spec:
      containers:
      - name: vikunja-ui
        image: vikunja-ui
        env:
          - name: VIKUNJA_API_URL
            value: https://todo.icb4dc0.de/api/v1
          - name: VIKUNJA_HTTP_PORT
            value: "8080"
        resources:
          requests:
            memory: 15Mi
            cpu: 10m
          limits:
            memory: "50Mi"
            cpu: "50m"
        ports:
        - containerPort: 8080
      affinity:
        nodeAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
            - weight: 100
              preference:
                matchExpressions:
                  - key: kubernetes.io/arch
                    operator: In
                    values:
                      - arm64