oslabs-beta / kubermetrics

193 stars 33 forks source link

prometheus-ingress.yaml fails to load on 1.22.1 due to deprecated API #31

Open PisanoJ opened 3 years ago

PisanoJ commented 3 years ago

When running kubectl apply -f manifests on a 1.22.1 deployment, the prometheus-ingress.yaml fails to load due to deprecated API. When manually adjusting the API to the 1.22 supported version, additional failures occurred due to changed in the API.

Error when running kubectl apply -f manifests: error: unable to recognize "manifests/prometheus-ingress.yaml": no matches for kind "Ingress" in version "extensions/v1beta1"

Error when running kubectl apply -f manifests w/Updated API: error: error validating "manifests/prometheus-ingress.yaml": error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend, ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "servicePort" in io.k8s.api.networking.v1.IngressBackend, ValidationError(Ingress.spec.rules[0].http.paths[0]): missing required field "pathType" in io.k8s.api.networking.v1.HTTPIngressPath]; if you choose to ignore these errors, turn validation off with --validate=false

arajput96 commented 3 years ago

Hey PisanoJ!

Thanks for giving Kubermetrics a try and I apologize for the issues you are having. Would you be able to confirm what installation process of Kubernetes you have as well as the OS. Another user is having a similar problem and we believe it stems from the Linux installation of Kubernetes and a compatibility issue with our product.

Once again thank you for giving our product a shot and issues like these will help us make a better product for others in the future.

PisanoJ commented 3 years ago

k8s Version Information: Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.1", GitCommit:"632ed300f2c34f6d6d15ca4cef3d3c7073412212", GitTreeState:"clean", BuildDate:"2021-08-19T15:45:37Z", GoVersion:"go1.16.7", Compiler:"gc", Platform:"linux/arm64"}

OS Information: Ubuntu 20.04.3 LTS on RPi

With the exception of the Prometheu-ingress failing, it looks like the pods are all running.