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

Deployment version is out of date #6

Open
igitcode opened this issue Jun 25, 2020 · 1 comment
Open

Deployment version is out of date #6

igitcode opened this issue Jun 25, 2020 · 1 comment

Comments

@igitcode
Copy link

When running helm install I received this error:

Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1"

Upon changing the version to "apps/v1", I then received the error:

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec

I updated the Deployment spec with selector as such:

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "yelb.fullname" . }}-cache
spec:
selector:
matchLabels:
app: {{ template "yelb.fullname" . }}
replicas: {{ .Values.replicaCount }}
--- etc ---

Then I was able to successfully deploy the chart

@mreferre
Copy link
Owner

Ah. This is part of the 1.16 cleanup I intended to do (which I did for the yaml's but I did not do for the charts!). Thanks for spotting it. If you want to create a PR I will merge it otherwise I will fix it. Thanks again.

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

2 participants