apiVersion: apps/v1 kind: Deployment metadata: name: combined-load-agent namespace: prod spec: selector: matchLabels: app: combined-load-agent replicas: 2 template: metadata: labels: app: combined-load-agent annotations: cluster-autoscaler.kubernetes.io/safe-to-evict: "true" spec: containers: - name: combined-load-agent image: ${CONTAINER_REGISTRY}:${CI_COMMIT_SHA} args: - run - --url-file - /etc/chromedp-load-agent/all-urls.txt - --concurrency - "2" - --headers="Authorization=Bearer $(GRAFANA_BEARER_TOKEN)" - --window-width=1280 - --window-height=1024 imagePullPolicy: IfNotPresent env: - name: GRAFANA_BEARER_TOKEN valueFrom: secretKeyRef: name: grafana-load-agent key: bearer_token resources: limits: cpu: 0.75 memory: 2Gi requests: cpu: 0.5 memory: 1Gi volumeMounts: - mountPath: /dev/shm name: dev-shm - mountPath: /tmp name: dev-shm - mountPath: /etc/chromedp-load-agent name: combined-load-agent readOnly: true volumes: - name: combined-load-agent configMap: name: chrome-load-agent - name: dev-shm emptyDir: medium: Memory