Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/prometheus-operator] Error: no kind "Job" is registered for version "batch/v1" #18732

Closed
omnipresent07 opened this issue Nov 8, 2019 · 7 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@omnipresent07
Copy link

Describe the bug
A clear and concise description of what the bug is.

Client: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}

Which chart:

https://github.com/helm/charts/tree/master/stable/prometheus-operator

What happened:

helm upgrade --install prometheus stable/prometheus-operator --set kubeEtcd.enabled=true,kubeControllerManager.enabled=true,kubeScheduler.enabled=true,prometheusOperator.createCustomResource=true --namespace monitoring

Release "prometheus" does not exist. Installing it now.
Error: no kind "Job" is registered for version "batch/v1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:30"

What you expected to happen:

Installation of prometheus-operator

How to reproduce it (as minimally and precisely as possible):

helm upgrade --install prometheus stable/prometheus-operator --set kubeEtcd.enabled=true,kubeControllerManager.enabled=true,kubeScheduler.enabled=true,prometheusOperator.createCustomResource=true --namespace monitoring

Release "prometheus" does not exist. Installing it now.
Error: no kind "Job" is registered for version "batch/v1" in scheme "k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go:30"

Anything else we need to know:

@klafbang
Copy link

This is known behavior on Kubernetes 1.16; old deprecated versions have been removed, so the apiVersion needs to be bumped to v1. The same issue probably exists for Deployment.

@asychev
Copy link

asychev commented Nov 11, 2019

Same for us

Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T23:41:55Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.6-eks-5047ed", GitCommit:"5047edce664593832e9b889e447ac75ab104f527", GitTreeState:"clean", BuildDate:"2019-08-21T22:32:40Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}

@asychev
Copy link

asychev commented Nov 11, 2019

Ah, helm/helm#6894

@omnipresent07
Copy link
Author

Downgrading helm from 2.16.0 to 2.15.2 worked for us.

@stale
Copy link

stale bot commented Dec 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 11, 2019
@stale
Copy link

stale bot commented Dec 25, 2019

This issue is being automatically closed due to inactivity.

@stale stale bot closed this as completed Dec 25, 2019
@zacker330
Copy link

v2.16.6 has this issue also

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

4 participants