text stringlengths 0 59.1k |
|---|
apiVersion: v1 |
kind: ServiceAccount |
metadata: |
name: prometheus-adapter |
namespace: monitoring |
--- |
apiVersion: rbac.authorization.k8s.io/v1 |
kind: ClusterRole |
metadata: |
name: prometheus-adapter |
rules: |
- apiGroups: |
- "" |
resources: |
- nodes |
- namespaces |
- pods |
- services |
verbs: |
- get |
- list |
- watch |
- apiGroups: |
- extensions |
resources: |
- deployments |
- replicasets |
- ingresses |
verbs: |
- get |
- list |
- watch |
- apiGroups: |
- apps |
resources: |
- deployments |
- replicasets |
- statefulsets |
verbs: |
- get |
- list |
- watch |
- apiGroups: |
- custom.metrics.k8s.io |
resources: |
- '*' |
verbs: |
- '*' |
--- |
apiVersion: rbac.authorization.k8s.io/v1 |
kind: ClusterRoleBinding |
metadata: |
name: prometheus-adapter |
roleRef: |
apiGroup: rbac.authorization.k8s.io |
kind: ClusterRole |
name: prometheus-adapter |
subjects: |
- kind: ServiceAccount |
name: prometheus-adapter |
namespace: monitoring |
--- |
apiVersion: rbac.authorization.k8s.io/v1 |
kind: RoleBinding |
metadata: |
name: prometheus-adapter-auth-reader |
namespace: kube-system |
roleRef: |
apiGroup: rbac.authorization.k8s.io |
kind: Role |
name: extension-apiserver-authentication-reader |
subjects: |
- kind: ServiceAccount |
name: prometheus-adapter |
namespace: monitoring |
--- |
apiVersion: rbac.authorization.k8s.io/v1 |
kind: ClusterRoleBinding |
metadata: |
name: prometheus-adapter-system-auth-delegator |
roleRef: |
apiGroup: rbac.authorization.k8s.io |
kind: ClusterRole |
name: system:auth-delegator |
subjects: |
- kind: ServiceAccount |
name: prometheus-adapter |
namespace: monitoring |
--- |
apiVersion: v1 |
kind: ConfigMap |
metadata: |
name: prometheus-adapter |
namespace: monitoring |
data: |
config.yaml: | |
# This 'rules' section is the core of the Prometheus Adapter's configuration. |
# It defines how metrics from Prometheus are transformed and exposed to the |
# Kubernetes Custom Metrics API. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.