benbuzzelli opened a new issue #1476:
URL: https://github.com/apache/camel-k/issues/1476
### Background
I am trying to run Apache Camel K in my Kubernetes environment. We have a
registry set up with a secret name, username, and password. Our registry has a
private and public address. I decided to use `helm` to install `camel-k` into
my kubernetes namespace `camel-caravan`. I was successful in installing
camel-k, however, my `helloworld.groovy` route fails in `phase Building Kit`.
Below is a more detailed description of my setup and error.
---
**Setup**
I have installed camel-k with helm using this command:
```
helm install --set platform.build.registry.address=<my.io> --set
platform.build.registry.secret=<my-regcred-secret> --set
platform.build.registry.insecure=true --set
platform.build.publishStrategy=Kaniko camel-k .
```
And check that the pod is up in kubernetes:
```
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
camel-k-operator-6df876d8df-pkhdq 1/1 Running 0 22m
```
---
**Running the Route**
I then run my `helloworld.groovy` route with the following command:
```
kamel run helloworld.groovy --dev
```
This is my `helloworld.groovy` file:
```
from('timer:tick?period=3000')
.setBody().constant('Hello world from Camel K')
.to('log:info')
```
---
**Kubernetes Namespace**
Here's the role and rolebinding in my namespace:
```
$ kubectl get role
NAME AGE
camel-k-operator 22m
```
```
kubectl get rolebinding
NAME AGE
camel-k-operator 22m
clusterrolebinding-8mnvt 19h
clusterrolebinding-98j9b 19h
clusterrolebinding-f69v5 19h
clusterrolebinding-f8lbj 19h
```
---
**Error and Logs**
This is the main error found in the camel-k-operator pod:
```
$ kubectl logs -f camel-k-operator-6df876d8df-zrm6k
...
"error":"cannot create build pod: pods
\"camel-k-kit-br7gkofag096rp8c3e7g-builder\" is
forbidden: error looking up service account camel-caravan/camel-k-builder:
serviceaccount
\"camel-k-builder\" not found","errorVerbose":"pods
\"camel-k-kit-br7gkofag096rp8c3e7g-
builder\" is forbidden: error looking up service account
camel-caravan/camel-k-builder
...
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]