Deploying Kitura with Docker & Kubernetes: Getting Started | raywenderlich.com

Kitura servers built in Swift are pretty cool, but it’s even cooler to deploy them in the cloud! See how to build a Docker image, then deploy to Kubernetes.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1244870-deploying-kitura-with-docker-kubernetes-getting-started

Overall, a very good tutorial. One issue I had…
This command…

helm install --name emojijournal .

…produced this error
Error: release emojijournal failed: namespaces “default” is forbidden: User “system:serviceaccount:kube-system:default” cannot get resource “namespaces” in API group “” in the namespace “default”

In searching StackOverflow, I came across this sequence which corrected this…

Did this per instructions on StackOverflow…of course, I have no idea what this does or is really fixing… Perhaps I made an error elsewhere…

That’s because you don’t have the permission to deploy tiller, add an account for it:

kubectl --namespace kube-system create serviceaccount tiller

kubectl create clusterrolebinding tiller-cluster-rule
–clusterrole=cluster-admin --serviceaccount=kube-system:tiller

kubectl --namespace kube-system patch deploy tiller-deploy
-p ‘{“spec”:{“template”:{“spec”:{“serviceAccount”:“tiller”}}}}’

Console output:

serviceaccount “tiller” created
clusterrolebinding “tiller-cluster-rule” created
deployment “tiller-deploy” patched

Then run command below to check it :

helm list
helm repo update
helm install --name nginx-ingress stable/nginx-ingress

hi Dale: thanks for finding this!

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!