satoshipay / stellar-helm-charts

Helm charts for Stellar applications (Core, Horizon, Friendbot, ...)
Apache License 2.0
10 stars 11 forks source link

Error: validation failed: unable to recognize "": no matches for kind "StatefulSet" in version "apps/v1beta2" #14

Closed McCo0L closed 4 years ago

McCo0L commented 4 years ago

Running

 --namespace stellar-testnet \
 --name stellar-core \
 --set nodeSeed=$NODE_SEED \
 --values stellar-core.testnet.values.yaml \
  stellar-core

it fails with:

Error: validation failed: unable to recognize "": no matches for kind "StatefulSet" in version "apps/v1beta2" 

Running kubectl version:

Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

Helm version:

Server: &version.Version{SemVer:"v2.16.7", GitCommit:"5f2584fd3d35552c4af26036f0c464191287986b", GitTreeState:"clean"}

minikube version: minikube version: v1.11.0

andrenarchy commented 4 years ago

The api versions are fixed in the current code.

However, upgrading to the new versions can be a very annoying issue because of how Helm works. There's a Helm plugin to recover from this situation (if deleting and re-installing isn't an option): https://github.com/hickeyma/helm-mapkubeapis. I hope this works!

McCo0L commented 4 years ago

Hi @andrenarchy , According to this I should be able to remove the depecrecated API with that plugin, but I'm not sure on how to use it. I can also delete and re install, but also not sure what I should be installing instead.

McCo0L commented 4 years ago

reinstalled all with kubernetes version 1.15.11, now seems to work. Are you planning to move forward to a more recent version of kubernetes?