---
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: networking
  name: speedtest-plotter
spec:
  selector:
    matchLabels:
      app: speedtest-plotter
  replicas: 1
  template:
    metadata:
      labels:
        app: speedtest-plotter
    spec:
      containers:
        - name: speedtest-plotter
          image: ansemjo/speedtest:0.4.0
          imagePullPolicy: Always
          env:
            - name: TESTSERVER
              value: "speedtest.ggamaur.net:8080"
              # value: "sonic.wingo.ch:8080"
            - name: MARKER_DOWNLOAD
              value: "1000"
            - name: MARKER_UPLOAD
              value: "1000"
            - name: TZ
              value: "Europe/Zurich"
            - name: SCHEDULE
              value: "0 */6 * * *"
          resources:
            limits:
              cpu: 500m
              memory: 500Mi
          ports:
            - containerPort: 8000
          volumeMounts:
            - mountPath: /data
              name: speedtest-plotter-data
      volumes:
        - name: speedtest-plotter-data
          persistentVolumeClaim:
            claimName: speedtest-plotter-data-pvc
