mathieu-souchet opened a new issue #1661:
URL: https://github.com/apache/camel-k/issues/1661


   Hello,
   
   I have some troubles with my setup `camel-k` + `GKE` :
   
   I have followed instructions on page 
https://camel.apache.org/camel-k/latest/installation/gke.html
   
   * create a new Service Account `camel-k-builder` with `Storage Admin` role 
in GKE
   * create a `kaniko-secret.json` file from this Service Account (with a new 
Key ID)
   * run `kubectl create secret generic kaniko-secret 
--from-file=kaniko-secret.json`
   * run `kamel install --cluster-type kubernetes --registry eu.gcr.io 
--registry-secret kaniko-secret --organization omega-lab-e5727d 
--build-publish-strategy=Kaniko`
   
   And if I check the logs with `kubectl` I have an error I don't understand :
   
   ```
   
{"level":"error","ts":1597158674.0363762,"logger":"controller-runtime.controller","msg":"Reconciler
 
error","controller":"integrationkit-controller","request":"default/kit-bsp5t2i2ef1ol6lso4ag","error":"cannot
 create build: Build.camel.apache.org \"kit-bsp5t2i2ef1ol6lso4ag\" is invalid: 
type: Required value","errorVerbose":"Build.camel.apache.org 
\"kit-bsp5t2i2ef1ol6lso4ag\" is invalid: type: Required value\ncannot create 
build\ngithub.com/apache/camel-k/pkg/controller/integrationkit.(*buildAction).handleBuildSubmitted\n\tgithub.com/apache/camel-k@/pkg/controller/integrationkit/build.go:112\ngithub.com/apache/camel-k/pkg/controller/integrationkit.(*buildAction).Handle\n\tgithub.com/apache/camel-k@/pkg/controller/integrationkit/build.go:57\ngithub.com/apache/camel-k/pkg/controller/integrationkit.(*ReconcileIntegrationKit).Reconcile\n\tgithub.com/apache/camel-k@/pkg/controller/integrationkit/integrationkit_controller.go:228\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Co
 
ntroller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:88\nruntime.goexit\n\truntime/asm_amd64.s:1357","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.1.1/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.
 
k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\tsigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:88"}
   ```
   
   FYI :
   
   ```
   > kamel kit get
   NAME                PHASE        TYPE        IMAGE
   kit-bsp5t2i2ef1ol6lso4ag    Build Submitted    platform
   
   > kubectl get pod
   NAME                                READY   STATUS    RESTARTS   AGE
   camel-k-operator-5985c6f7fd-n4bqk   1/1     Running   0          55m
   ```
   
   Ah, and a last information : **my GKE registry (eu.gcr.io) is private**
   
   If you can help me you'll be my hero ! :sweat_smile: 


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to