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

Issue while installing stash kubernetes 1.11.2 #587

Closed
davidcodesido opened this issue Sep 26, 2018 · 4 comments
Closed

Issue while installing stash kubernetes 1.11.2 #587

davidcodesido opened this issue Sep 26, 2018 · 4 comments

Comments

@davidcodesido
Copy link

I'm installing stash for the first time on kubernetes 1.11.5 via heml. I'm running the following command:

helm install appscode/stash --version 0.7.0 --name stash-operator --set apiserver.enableValidatingWebhook=true --set apiserver.enableMutatingWebhook=true

and I'm getting the following error:

Error: render error in "stash/templates/validating-webhook.yaml": template: stash/templates/validating-webhook.yaml:21:31: executing "stash/templates/validating-webhook.yaml" at <.Values.apiserver.ca>: wrong type for value; expected string; got interface {}

Any advice?

@tamalsaha
Copy link
Member

tamalsaha commented Sep 26, 2018

What is your helm version? What is your onessl version ?

You need to use this command as documented:
https://github.com/appscode/stash/blob/0.7.0/docs/setup/install.md#using-helm

# Kubernetes 1.9.0 or later
$ helm install appscode/stash --name stash-operator --version 0.7.0 \
  --set apiserver.ca="$(onessl get kube-ca)" \
  --set apiserver.enableValidatingWebhook=true \
  --set apiserver.enableMutatingWebhook=true

apiserver.ca is not set, so you are seeing this error.

@davidcodesido
Copy link
Author

davidcodesido commented Sep 26, 2018

helm version

Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}

Not sure what onessl is or how to check the version. I'm relatively new to k8s.

[ Edited ]
I saw one comment in other thread by you and I installed onessl via:

curl -fsSL -o onessl https://github.com/kubepack/onessl/releases/download/0.5.0/onessl-linux-amd64 \
  && chmod +x onessl \
  && sudo mv onessl /usr/local/bin/

onessl version

Version = 0.5.0
VersionStrategy = tag
Os = linux
Arch = amd64
CommitHash = 7e97988ce097da268139a1732b16ba1905c6112d
GitBranch = release-0.5
GitTag = 0.5.0
CommitTimestamp = 2018-06-12T08:22:48

@tamalsaha
Copy link
Member

You can find the onessl here: https://github.com/kubepack/onessl/releases

We use this to issue certs for kubernetes operator apps.

@davidcodesido
Copy link
Author

After installing onessl the error no longer happens.

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