gojek / weaver

An Advanced HTTP Reverse Proxy with Dynamic Sharding Strategies
Apache License 2.0
601 stars 53 forks source link

deployment error #27

Open surendra-devops opened 3 years ago

surendra-devops commented 3 years ago

When I am trying to deploy the weaver I am getting the error :

version for aks I am using 1.19.0 helm version : version.BuildInfo{Version:"v3.3.4", GitCommit:"a61ce5633af99708171414353ed49547cf05013d", GitTreeState:"clean", GoVersion:"go1.14.9"}

When I run the command I get the following error , Please help me.

ubuntu@test:~/weaver$ helm upgrade --debug --install proxy-cluster ./deployment/weaver -f ./deployment/weaver/values-env.yaml history.go:53: [debug] getting history for release proxy-cluster upgrade.go:121: [debug] preparing upgrade for proxy-cluster Error: UPGRADE FAILED: error validating "": error validating data: [ValidationError(Deployment): unknown field "name" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec] helm.go:94: [debug] error validating "": error validating data: [ValidationError(Deployment): unknown field "name" in io.k8s.api.apps.v1.Deployment, ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec] helm.sh/helm/v3/pkg/kube.scrubValidationError /home/circleci/helm.sh/helm/pkg/kube/client.go:566 helm.sh/helm/v3/pkg/kube.(Client).Build /home/circleci/helm.sh/helm/pkg/kube/client.go:159 helm.sh/helm/v3/pkg/action.validateManifest /home/circleci/helm.sh/helm/pkg/action/upgrade.go:451 helm.sh/helm/v3/pkg/action.(Upgrade).prepareUpgrade /home/circleci/helm.sh/helm/pkg/action/upgrade.go:233 helm.sh/helm/v3/pkg/action.(Upgrade).Run /home/circleci/helm.sh/helm/pkg/action/upgrade.go:122 main.newUpgradeCmd.func2 /home/circleci/helm.sh/helm/cmd/helm/upgrade.go:154 github.com/spf13/cobra.(Command).execute /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842 github.com/spf13/cobra.(Command).ExecuteC /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 github.com/spf13/cobra.(Command).Execute /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887 main.main /home/circleci/helm.sh/helm/cmd/helm/helm.go:93 runtime.main /usr/local/go/src/runtime/proc.go:203 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1373 UPGRADE FAILED main.newUpgradeCmd.func2 /home/circleci/helm.sh/helm/cmd/helm/upgrade.go:156 github.com/spf13/cobra.(Command).execute /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842 github.com/spf13/cobra.(Command).ExecuteC