Last active
February 2, 2025 11:29
-
-
Save arsalanses/f35985a0476e2dcddd47ed8966dee8bd to your computer and use it in GitHub Desktop.
blackbox exporter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: g2blackbox | |
| labels: | |
| app: g2blackbox | |
| spec: | |
| replicas: 1 | |
| revisionHistoryLimit: 3 | |
| selector: | |
| matchLabels: | |
| app: g2blackbox | |
| strategy: | |
| type: Recreate | |
| recreateParams: | |
| timeoutSeconds: "600" | |
| template: | |
| metadata: | |
| labels: | |
| app: g2blackbox | |
| name: g2blackbox | |
| spec: | |
| containers: | |
| - name: g2blackbox | |
| image: quay.io/prometheus/blackbox-exporter:v0.25.0 | |
| env: [] | |
| imagePullPolicy: IfNotPresent | |
| args: | |
| - "--web.config.file=/etc/blackbox_exporter_web/web_config.yml" | |
| - "--config.file=/etc/blackbox_exporter/config.yml" | |
| ports: | |
| - containerPort: 9115 | |
| protocol: TCP | |
| name: http | |
| volumeMounts: | |
| - mountPath: /etc/blackbox_exporter_web | |
| name: config-volume | |
| resources: | |
| limits: | |
| cpu: 1000m | |
| ephemeral-storage: 1G | |
| memory: 2G | |
| requests: | |
| cpu: 1000m | |
| ephemeral-storage: 1G | |
| memory: 2G | |
| terminationMessagePath: /dev/termination-log | |
| terminationMessagePolicy: File | |
| dnsPolicy: ClusterFirst | |
| restartPolicy: Always | |
| affinity: {} | |
| tolerations: [] | |
| volumes: | |
| - configMap: | |
| defaultMode: 420 | |
| name: blackbox-exporter-config | |
| name: config-volume | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| labels: | |
| app: g2blackbox | |
| name: g2blackbox | |
| spec: | |
| ports: | |
| - name: http | |
| port: 80 | |
| protocol: TCP | |
| targetPort: 9115 | |
| selector: | |
| app: g2blackbox | |
| type: ClusterIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: blackbox-exporter-config | |
| namespace: monitoring | |
| data: | |
| web_config.yml: | | |
| basic_auth_users: | |
| admin: $2y$05$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment