Skip to content

Instantly share code, notes, and snippets.

TJ Zimmerman zimmertr

Block or report user

Report or block zimmertr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f03152da8411ae79e46a189153bfe52e
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
name: kube-state-metrics
namespace: {{ namespace }}
spec:
clusterIP: None
ports:
View gist:ce73808cf786f5f5c2944d577ddc90cf
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
name: kube-state-metrics
namespace: {{ namespace }}
spec:
replicas: 1
selector:
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
You can’t perform that action at this time.