diff --git a/manifests/exporters/kube-state-metrics-bundle.yaml b/manifests/exporters/kube-state-metrics-depl.yaml similarity index 53% rename from manifests/exporters/kube-state-metrics-bundle.yaml rename to manifests/exporters/kube-state-metrics-depl.yaml index 05a69b0b..b044ba2e 100644 --- a/manifests/exporters/kube-state-metrics-bundle.yaml +++ b/manifests/exporters/kube-state-metrics-depl.yaml @@ -1,22 +1,3 @@ -apiVersion: v1 -kind: Service -metadata: - annotations: - prometheus.io/scrape: 'true' - labels: - app: kube-state-metrics - name: kube-state-metrics - name: kube-state-metrics -spec: - clusterIP: None - ports: - - name: scrape - port: 8080 - protocol: TCP - selector: - app: kube-state-metrics - type: ClusterIP ---- apiVersion: extensions/v1beta1 kind: Deployment metadata: @@ -27,14 +8,13 @@ spec: metadata: labels: app: kube-state-metrics - annotations: - prometheus.io/scrape: 'true' spec: containers: - name: kube-state-metrics image: gcr.io/google_containers/kube-state-metrics:v0.3.0 ports: - - containerPort: 8080 + - name: metrics + containerPort: 8080 resources: requests: memory: 30Mi diff --git a/manifests/exporters/kube-state-metrics-svc.yaml b/manifests/exporters/kube-state-metrics-svc.yaml new file mode 100644 index 00000000..3b996b88 --- /dev/null +++ b/manifests/exporters/kube-state-metrics-svc.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + prometheus.io/scrape: 'true' + labels: + app: kube-state-metrics + name: kube-state-metrics +spec: + ports: + - name: metrics + port: 8080 + targetPort: metrics + protocol: TCP + selector: + app: kube-state-metrics +