# Error: cannot patch "prometheus-kube-state-metrics" with kind Service: Service "prometheus-kube-state-metrics" is invalid

**URL:** <https://discuss.prometheus.io/t/error-cannot-patch-prometheus-kube-state-metrics-with-kind-service-service-prometheus-kube-state-metrics-is-invalid/212>\
**Category:** General Help/Support\
**Created:** [May 8, 2021, 1:48pm UTC](https://discuss.prometheus.io/t/error-cannot-patch-prometheus-kube-state-metrics-with-kind-service-service-prometheus-kube-state-metrics-is-invalid/212 "2021-05-08T13:48:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snehil03](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/snehil03/32/117_2.png) [@Snehil03](https://discuss.prometheus.io/u/Snehil03)\
**Post date:** [May 8, 2021, 1:48pm UTC](https://discuss.prometheus.io/t/error-cannot-patch-prometheus-kube-state-metrics-with-kind-service-service-prometheus-kube-state-metrics-is-invalid/212/1 "2021-05-08T13:48:29Z")

</div>

Hello !  
I am new to prometheus ,  
I am trying to update my prometheus helm chart from stable to prometheus community one but end up with below error .  
Error: cannot patch “prometheus-kube-state-metrics” with kind Service: Service “prometheus-kube-state-metrics” is invalid: spec.clusterIP: Invalid value: “”: field is immutable && cannot patch “prometheus-kube-state-metrics” with kind Deployment: Deployment.apps “prometheus-kube-state-metrics” is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{“[app.kubernetes.io/name":"kube-state-metrics](http://app.kubernetes.io/name%22:%22kube-state-metrics)”}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable  
previously I were using stable/prometheus : 10.4.0 which was working before the upgrade now current state is it’s broken. helm is failed to deploy the release .  
Any pointers would be really helpful.

---

<div class="post-metadata">

**Author:** ![roidelapluie](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/roidelapluie/32/6_2.png) [@roidelapluie](https://discuss.prometheus.io/u/roidelapluie)\
**Post date:** [May 11, 2021, 9:37am UTC](https://discuss.prometheus.io/t/error-cannot-patch-prometheus-kube-state-metrics-with-kind-service-service-prometheus-kube-state-metrics-is-invalid/212/2 "2021-05-11T09:37:40Z")

</div>

Welcome to the community!

Which flavour/version of kubernetes are you using? Do you provide custom configurations/overrides to the helm chart that could cause this?
