Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus-demo.yaml uses obsolete apiVersion #3

Open
torenware opened this issue Apr 24, 2020 · 0 comments
Open

prometheus-demo.yaml uses obsolete apiVersion #3

torenware opened this issue Apr 24, 2020 · 0 comments

Comments

@torenware
Copy link

torenware commented Apr 24, 2020

I'm doing your tutorial An introduction to monitoring with Prometheus and tripped on the line

$ kubectl create -f prometheus-deployment.yaml -n prometheus

There is a kubernetes/prometheus-deployment.yaml, but my 1.17 cluster did not accept it as syntactically valid. I've modified the file to use the current apps/v1 version of Deployment, and added the necessary selector so the deployment actually gets parsed and loaded.

You might want to edit the article; I'll add a PR for this as well.

torenware added a commit to torenware/prometheus-demo that referenced this issue Apr 24, 2020
Upped apiVersion to apps/v1 and added spec.selector section. File now loads and works on Kubernetes 1.17.
torenware added a commit to torenware/prometheus-demo that referenced this issue Apr 24, 2020
Upped apiVersion to apps/v1 and added spec.selector section. File now loads and works on Kubernetes 1.17.

Signed-off-by: Rob Thorne <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant