github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/velodrome/prober/blackbox.yaml (about)

     1  apiVersion: extensions/v1beta1
     2  kind: Deployment
     3  metadata:
     4    name: blackbox-prober
     5    labels:
     6      app: blackbox-prober
     7  spec:
     8    replicas: 1
     9    template:
    10      metadata:
    11        labels:
    12          app: blackbox-prober
    13      spec:
    14        containers:
    15        - name: blackbox-prober
    16          args:
    17          - --config.file=/etc/prometheus/prober.yaml
    18          image: prom/blackbox-exporter:v0.8.1
    19          volumeMounts:
    20          - name: config
    21            mountPath: /etc/prometheus/
    22        volumes:
    23        - name: config
    24          configMap:
    25            name: blackbox-prober-config
    26  ---
    27  apiVersion: v1
    28  kind: ConfigMap
    29  metadata:
    30    name: blackbox-prober-config
    31  data:
    32    prober.yaml: |-
    33      modules:
    34        http_2xx:
    35          prober: http
    36          timeout: 5s
    37          http:
    38            valid_status_codes: [] # Defaults to 2xx
    39            method: GET
    40            headers:
    41              Host: prow.k8s.io
    42              Accept-Language: en-US
    43            no_follow_redirects: false
    44            fail_if_ssl: false
    45            fail_if_not_ssl: false
    46            tls_config:
    47              insecure_skip_verify: true
    48            preferred_ip_protocol: "ip4" # Defaults to ip6
    49        http_2xx_post:
    50          prober: http
    51          timeout: 5s
    52          http:
    53            valid_status_codes: [] # Defaults to 2xx
    54            method: POST
    55            headers:
    56              Host: prow.k8s.io
    57            no_follow_redirects: false
    58            fail_if_ssl: false
    59            fail_if_not_ssl: false
    60            tls_config:
    61              insecure_skip_verify: true
    62            preferred_ip_protocol: "ip4" # Defaults to ip6
    63  ---
    64  apiVersion: v1
    65  kind: Service
    66  metadata:
    67    name: blackbox-prober
    68    labels:
    69      app: blackbox-prober
    70    annotations:
    71      cloud.google.com/load-balancer-type: "internal"
    72  spec:
    73    type: LoadBalancer
    74    ports:
    75    - name: blackbox-prober
    76      port: 80
    77      targetPort: 9115
    78    selector:
    79      app: blackbox-prober
    80