apiVersion: apps/v1
kind: Deployment
metadata:
  name: scraper-test
  namespace: kube-scraper
spec:
  selector:
    matchLabels:
      run: scraper-test
  replicas: 1
  template:
    metadata:
      labels:
        run: scraper-test
    spec:
      volumes:
      - name: scrape-pages
        configMap:
          name: poll-pages
      containers:
      - name: scraper-test
        image: <image>
        imagePullPolicy: Always
        resources:
          requests:
            memory: "128Mi"
            cpu: "300m"
          limits:
            memory: "256Mi"
            cpu: "500m"
        securityContext:
          allowPrivilegeEscalation: false
        command:
        - /scrape
        - /pages/pages.yaml
        - --debug
        volumeMounts:
        - name: scrape-pages
          readOnly: true
          mountPath: "/pages"
