Drachenfels-GmbH / kubernetes-crio-lxc

Instructions and experiences using kubernetes with crio-lxc
0 stars 0 forks source link

helm install gomods/athens-proxy : Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1" #2

Open r10r opened 4 years ago

r10r commented 4 years ago

Failed to install gomods/athens-proxy from upstream help chart.

root@container-node:/usr/local/bin# helm install gomods/athens-proxy -n athens --namespace athens --generate-name --debug
install.go:159: [debug] Original chart version: ""
install.go:176: [debug] CHART PATH: /root/.cache/helm/repository/athens-proxy-0.4.12.tgz

Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1"
helm.go:84: [debug] unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to build kubernetes objects from release manifest
helm.sh/helm/v3/pkg/action.(*Install).Run
    /home/circleci/helm.sh/helm/pkg/action/install.go:256
main.runInstall
    /home/circleci/helm.sh/helm/cmd/helm/install.go:229
main.newInstallCmd.func1
    /home/circleci/helm.sh/helm/cmd/helm/install.go:117
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:83
runtime.main
    /usr/local/go/src/runtime/proc.go:203
runtime.goexit
    /usr/local/go/src/runtime/asm_amd64.s:1357
r10r commented 4 years ago

Fixed by modifying athens-proxy/templates/jaeger-deploy.yaml See Kubernetes: Deprecated APIs Removed In 1.16: Here’s What You Need To Know

root@container-node:~/packages/tmp# diff -ur athens-proxy athens-proxy.mod/
diff -ur athens-proxy/templates/jaeger-deploy.yaml athens-proxy.mod/templates/jaeger-deploy.yaml
--- athens-proxy/templates/jaeger-deploy.yaml   2020-07-03 17:07:45.000000000 +0200
+++ athens-proxy.mod/templates/jaeger-deploy.yaml   2020-07-24 16:19:11.894111072 +0200
@@ -1,5 +1,5 @@
 {{- if .Values.jaeger.enabled -}}
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ template "fullname" . }}-jaeger
root@container-node:~/packages/tmp# tar xzf  /root/.cache/helm/repository/athens-proxy-0.4.12.tgz
root@container-node:~/packages/tmp# vim athens-proxy/templates/jaeger-deploy.yaml
root@container-node:~/packages/tmp# tar czpf athens-proxy-0.4.12-1.tgz  athens-proxy
root@container-node:~/packages/tmp# helm install athens-proxy-0.4.12-1.tgz --generate-name
NAME: athens-proxy-0-1595600369
LAST DEPLOYED: Fri Jul 24 16:19:29 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Get the Athens URL by running these commands:
  export POD_NAME=$(kubectl get pods --namespace default -l "app=athens-proxy-0-1595600369,release=athens-proxy-0-1595600369" -o jsonpath="{.items[0].metadata.name}")
  echo "Visit http://127.0.0.1:8080 to use your application"
  kubectl port-forward $POD_NAME 8080:3000
r10r commented 4 years ago

See https://docs.gomods.io/install/install-on-kubernetes/ for advanced installation instructions.