apiVersion: apps/v1
kind: Deployment
metadata:
  name: speedtest-exporter
  labels:
    helm.sh/chart: speedtest-exporter-0.1.2
    app.kubernetes.io/name: speedtest-exporter
    app.kubernetes.io/instance: speedtest-exporter
    app.kubernetes.io/version: "v3.5.4"
    app.kubernetes.io/managed-by: Helm
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: speedtest-exporter
      app.kubernetes.io/instance: speedtest-exporter
  template:
    metadata:
      labels:
        app.kubernetes.io/name: speedtest-exporter
        app.kubernetes.io/instance: speedtest-exporter
    spec:
      serviceAccountName: speedtest-exporter
      securityContext: {}
      containers:
        - name: speedtest-exporter
          securityContext:
            capabilities:
              drop:
                - ALL
            readOnlyRootFilesystem: true
            runAsNonRoot: true
            runAsUser: 1000
          image: "ghcr.io/miguelndecarvalho/speedtest-exporter:v3.5.4@sha256:f1064d49124c7fc45faabb87c6c876a2fd04e92b3dc14d4b871301217ba30fed"
          imagePullPolicy: IfNotPresent
          ports:
            - name: http
              containerPort: 9798
              protocol: TCP
          resources:
            requests:
              cpu: 10m
              memory: 30Mi
