pushgateway-deployment.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ---
  2. # Source: loki-stack/charts/prometheus/templates/pushgateway-deployment.yaml
  3. apiVersion: apps/v1
  4. kind: Deployment
  5. metadata:
  6. labels:
  7. component: "pushgateway"
  8. app: prometheus
  9. release: loki
  10. chart: prometheus-9.3.1
  11. heritage: Tiller
  12. name: loki-prometheus-pushgateway
  13. spec:
  14. selector:
  15. matchLabels:
  16. component: "pushgateway"
  17. app: prometheus
  18. release: loki
  19. replicas: 1
  20. template:
  21. metadata:
  22. labels:
  23. component: "pushgateway"
  24. app: prometheus
  25. release: loki
  26. chart: prometheus-9.3.1
  27. heritage: Tiller
  28. spec:
  29. serviceAccountName: loki-prometheus-pushgateway
  30. containers:
  31. - name: prometheus-pushgateway
  32. image: "prom/pushgateway:v0.8.0"
  33. imagePullPolicy: "IfNotPresent"
  34. args:
  35. ports:
  36. - containerPort: 9091
  37. readinessProbe:
  38. httpGet:
  39. path: /#/status
  40. port: 9091
  41. initialDelaySeconds: 10
  42. timeoutSeconds: 10
  43. resources:
  44. {}
  45. securityContext:
  46. runAsNonRoot: true
  47. runAsUser: 65534