kube-prometheus icon indicating copy to clipboard operation
kube-prometheus copied to clipboard

Error while deploying using manifests

Open Choogster1 opened this issue 3 years ago • 2 comments

I'm getting the following error for the kubectl apply --server-side -f manifests/setup command which fails to deploy

Error from server: failed to create typed patch object: errors: .spec.template.spec.containers[name="prometheus-operator"].ports: element 0: associative list with keys has an element that omits key field "protocol" .spec.template.spec.containers[name="kube-rbac-proxy"].ports: element 0: associative list with keys has an element that omits key field "protocol" Error from server: failed to create typed patch object: .spec.ports: element 0: associative list with keys has an element that omits key field "protocol"

I've previously used the same method for deployment on the same server, but now it fails. Has anybody come across this?

Choogster1 avatar May 03 '22 03:05 Choogster1

Hi @Choogster1, I encountered the same error when trying to install release-0.7 on k8s v1.19, which lead me to:

  • kubernetes-sigs/structured-merge-diff/issues/130

Based on that issue, I tried removing --server-side and was able to proceed with the quickstart:

kubectl apply -f manifests/setup
until kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""; done 
kubectl apply -f manifests/

thinkmassive avatar May 17 '22 05:05 thinkmassive

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

github-actions[bot] avatar Jul 17 '22 03:07 github-actions[bot]

This issue was closed because it has not had any activity in the last 120 days. Please reopen if you feel this is still valid.

github-actions[bot] avatar Jan 13 '23 03:01 github-actions[bot]