Skip to content

Commit

Permalink
include kube-state-metrics and kubelet cAdvisor metrics
Browse files Browse the repository at this point in the history
Signed-off-by: ksatchit <karthik.s@openebs.io>
  • Loading branch information
ksatchit authored and kmova committed Aug 20, 2019
1 parent 54a2684 commit 25aac7c
Show file tree
Hide file tree
Showing 4 changed files with 2,183 additions and 4 deletions.
60 changes: 60 additions & 0 deletions k8s/openebs-kube-state-metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
k8s-app: kube-state-metrics
name: kube-state-metrics
namespace: openebs
spec:
selector:
matchLabels:
k8s-app: kube-state-metrics
replicas: 1
template:
metadata:
labels:
k8s-app: kube-state-metrics
spec:
serviceAccountName: openebs-maya-operator
containers:
- name: kube-state-metrics
image: quay.io/coreos/kube-state-metrics:v1.7.2
ports:
- name: http-metrics
containerPort: 8080
- name: telemetry
containerPort: 8081
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: kube-state-metrics
namespace: openebs
labels:
k8s-app: kube-state-metrics
annotations:
prometheus.io/scrape: 'true'
spec:
ports:
- name: http-metrics
port: 8080
targetPort: http-metrics
protocol: TCP
- name: telemetry
port: 8081
targetPort: telemetry
protocol: TCP
selector:
k8s-app: kube-state-metrics
Loading

0 comments on commit 25aac7c

Please sign in to comment.