---
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: utils
  name: static
spec:
  selector:
    matchLabels:
      app: static
  replicas: 1
  template:
    metadata:
      labels:
        app: static
    spec:
      containers:
        - name: static
          env:
            - name: "TZ"
              value: "Europe/Zurich"
          image: tdeutsch/minilighttpd@sha256:d2485ff17085c94d4c4d4b8c947fdb4d857644d74d7348ea177428d36b4d3387
          imagePullPolicy: Always
          resources:
            limits:
              cpu: 500m
              memory: 200Mi
          ports:
            - containerPort: 80
          volumeMounts:
            - mountPath: /data
              name: static-data
      volumes:
        - name: static-data
          persistentVolumeClaim:
            claimName: static-data-pvc
