The Prometheus server monitoring Kubernetes should be default cover: - node exporter - kubelets - kube-state-metrics - apiservers The version in this commit still has certificate issues with the API server in minikube. Kubelet scraping likely only works in minikube as it doesn't seem to use https.
15 lines
235 B
YAML
15 lines
235 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: prometheus-k8s
|
|
spec:
|
|
type: NodePort
|
|
ports:
|
|
- name: web
|
|
nodePort: 30900
|
|
port: 9090
|
|
protocol: TCP
|
|
targetPort: web
|
|
selector:
|
|
prometheus.coreos.com: prometheus-k8s
|