Description
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
Activity