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

Failed to run the example when Kamus is not running in the default namespace #132

Closed
itsvikasgupta opened this issue Mar 27, 2019 · 5 comments · Fixed by #133
Closed

Failed to run the example when Kamus is not running in the default namespace #132

itsvikasgupta opened this issue Mar 27, 2019 · 5 comments · Fixed by #133
Labels
bug Something isn't working

Comments

@itsvikasgupta
Copy link
Contributor

I am following the steps at https://github.com/Soluto/kamus/tree/master/example

Any ideas what could be the reason for this error?

Here are my pods and services:

$ gpods

NAME                                         READY     STATUS             RESTARTS   AGE
etcd-docker-for-desktop                      1/1       Running            61         75d
kamus-decryptor-65fb5845b-qmzcj              1/1       Running            2          20h
kamus-decryptor-65fb5845b-xrcrq              1/1       Running            2          20h
kamus-encryptor-5fd59d766d-2qzqd             1/1       Running            0          20h
kamus-encryptor-5fd59d766d-brzht             1/1       Running            0          20h
kamus-example-58759b488f-rpdnd               1/2       CrashLoopBackOff   8          16m
kube-apiserver-docker-for-desktop            1/1       Running            93         69d
kube-controller-manager-docker-for-desktop   1/1       Running            6          69d
kube-dns-86f4d74b45-fwgc4                    3/3       Running            0          75d
kube-proxy-zqhl8                             1/1       Running            2          69d
kube-scheduler-docker-for-desktop            1/1       Running            6          69d
kubernetes-dashboard-669f9bbd46-65lhk        1/1       Running            2          50d
tiller-deploy-78c6868dd6-bkscs               1/1       Running            5          22h
 
$ kubectl get services | awk '\''{print $1" " $2" " $3" " $4" " $5" " $6}'\'' | column -t'

NAME                  TYPE       CLUSTER-IP      EXTERNAL-IP  PORT(S)        AGE
kamus-decryptor       ClusterIP  10.107.132.193  <none>       80/TCP         20h
kamus-encryptor       ClusterIP  10.105.21.53    <none>       80/TCP         20h
kube-dns              ClusterIP  10.96.0.10      <none>       53/UDP,53/TCP  75d
kubernetes-dashboard  ClusterIP  10.108.232.49   <none>       443/TCP        62d
tiller-deploy         ClusterIP  10.100.43.56    <none>       44134/TCP      22h
@itsvikasgupta
Copy link
Contributor Author

itsvikasgupta commented Mar 27, 2019

I found out that I am running the encryptor and decryptor pods under namespace kube-system whereas it should be under default else the URL kamus-decryptor.default.svc.cluster.local won't resolve.

So, I did:

$ helm  delete kamus
release "kamus" deleted

and then switched to the default namespace and tried:

$ helm upgrade --install kamus soluto/kamus

WARNING: Namespace "default" doesn't match with previous. Release will be deployed to kube-system
UPGRADE FAILED
ROLLING BACK
Error: "kamus" has no deployed releases
Error: UPGRADE FAILED: "kamus" has no deployed releases

What's the correct way to uninstall kamus and reinstall it?

BTW, is there a way to install kamus without helm? I couldn't find much in the github repo.

Thanks a lot for your help.

@itsvikasgupta
Copy link
Contributor Author

I needed to do:

$ helm  delete --purge kamus

@itsvikasgupta
Copy link
Contributor Author

After I switched to the default namespace, I am not seeing this error error anymore:

Failed to run init container: Error: request to decrypt API failed: getaddrinfo ENOTFOUND kamus-decryptor.default.svc.cluster.local kamus-decryptor.default.svc.cluster.local:80 #132 

@itsvikasgupta
Copy link
Contributor Author

#133

@omerlh omerlh changed the title Failed to run init container: Error: request to decrypt API failed: getaddrinfo ENOTFOUND kamus-decryptor.default.svc.cluster.local kamus-decryptor.default.svc.cluster.local:80 Failed to run the example when Kamus is not running in the default namespace Mar 28, 2019
@omerlh omerlh added the bug Something isn't working label Mar 28, 2019
@omerlh
Copy link
Contributor

omerlh commented Mar 28, 2019

Thanks for reporting this! I'm happy to see it solved, will take a look on the PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants