evaluation_interval | scrape_interval | http_timeout | scrape_timeout | for | group_wait | |
---|---|---|---|---|---|---|
Location | prometheus.yml | prometheus.yml | blackbox.yml | prometheus.yml | alert_rules.yml | alertmanager/config.yml |
Description | Delay between the evaluations of the alert rules | Delay between instance scrapes | Delay after which the blackbox request timeout | Delay after which the instance scrape timeout | Delay before fire |
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
from kubernetes import client | |
SERVICE_ACCOUNT_PATH = '/var/run/secrets/kubernetes.io/serviceaccount' | |
configuration = client.Configuration() | |
with open(f'{SERVICE_ACCOUNT_PATH}/token') as token_fd: | |
configuration.api_key['authorization'] = token_fd.read() | |
configuration.api_key_prefix['authorization'] = 'Bearer' | |
configuration.ssl_ca_cert = f'{SERVICE_ACCOUNT_PATH}/ca.crt' | |
configuration.host = 'https://kubernetes' |
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: DaemonSet | |
metadata: | |
name: nvidia-driver-installer | |
namespace: kube-system | |
labels: | |
k8s-app: nvidia-driver-installer | |
spec: | |
selector: | |
matchLabels: |
A bunch of True (when relevant) haskell statements.
General
Flow control
Data structures
Conversions
Modules and types definition
Ghci
Usefull links