Skip to content

Instantly share code, notes, and snippets.

Avatar

TJ Zimmerman zimmertr

View GitHub Profile
View gist:610820a6bfd95ae8f87e5242bcd5d94d
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: grafana-prometheus-scraper
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: grafana-prometheus-scraper
subjects:
- kind: ServiceAccount
View gist:54281cb5cb5bfec3e8cbe25916c20529
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: grafana-prometheus-scraper
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: grafana-prometheus-scraper
subjects:
- kind: ServiceAccount
View gist:7be1bfce12537b98d90cb786590deaa7
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
name: kube-state-metrics
rules:
- apiGroups:
- ""
resources:
View gist:e318c26c239b87a957ea8b707d19c960
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
name: kube-state-metrics
namespace: grafana
View gist:cfc04d93a72a6197999bc078b28070a3
apiVersion: v1
kind: Service
metadata:
name: prometheus
annotations:
metallb.universe.tf/address-pool: {{ load_balancer_address_pool }}
namespace: {{ namespace }}
labels:
app: prometheus
spec:
View gist:f2e3b44a9b83858c2702e7e8b4966d79
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus
namespace: {{ namespace }}
labels:
app: grafana-prometheus
version: latest
type: offical
facing: internal
View gist:4d283edd0def2341c992375ebf351f31
apiVersion: v1
kind: ServiceAccount
metadata:
name: grafana-prometheus-scraper
namespace: "{{ namespace }}"
View gist:4c9dc9547e71067279c4127f7847e687
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: grafana-prometheus-scraper
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: grafana-prometheus-scraper
subjects:
- kind: ServiceAccount
View gist:13fd094ca7abfdadc568a08be6069758
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: grafana-prometheus-scraper
rules:
- apiGroups: [""]
resources:
- configmaps
- secrets
- nodes
View gist:985a2d9716e18fa24def9c2d11f2eded
launch=gmysql
gmysql-host=127.0.0.1
gmysql-socket=/run/mysqld/mysqld.sock
gmysql-user=pdns
gmysql-password=REDACTED
gmysql-dbname=pdns
local-address=127.0.0.1
local-address-nonexist-fail
local-port=54
api=yes