Skip to content

Instantly share code, notes, and snippets.

View zimmertr's full-sized avatar

TJ Zimmerman zimmertr

  • Issaquah, Washington
View GitHub Profile
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
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
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
name: kube-state-metrics
rules:
- apiGroups:
- ""
resources:
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
name: kube-state-metrics
namespace: grafana
apiVersion: v1
kind: Service
metadata:
name: prometheus
annotations:
metallb.universe.tf/address-pool: {{ load_balancer_address_pool }}
namespace: {{ namespace }}
labels:
app: prometheus
spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus
namespace: {{ namespace }}
labels:
app: grafana-prometheus
version: latest
type: offical
facing: internal
apiVersion: v1
kind: ServiceAccount
metadata:
name: grafana-prometheus-scraper
namespace: "{{ namespace }}"
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
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: grafana-prometheus-scraper
rules:
- apiGroups: [""]
resources:
- configmaps
- secrets
- nodes
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