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

Installation on a kind cluster #1468

Closed
doru1004 opened this issue May 26, 2020 · 10 comments
Closed

Installation on a kind cluster #1468

doru1004 opened this issue May 26, 2020 · 10 comments
Assignees
Labels
area/documentation Documentation task
Milestone

Comments

@doru1004
Copy link
Contributor

Hello,

I'm trying to use Camel K in conjunction with a kind cluster I'm running locally, are there any additional configuration steps that I need to do for this cluster type? When trying to run the example the builder is stuck initializing and the eventually times out.

Just to check, are there any pre-requisites that are not mentioned explicitly in the README that I need to satisfy before running Camel K?

Thanks a lot!

@heiko-braun
Copy link

Out of curiosity, what's a "kind cluster"?

@heiko-braun
Copy link

Ah, I see: https://kind.sigs.k8s.io/

@davsclaus
Copy link
Contributor

Oh yeah its a new kubernetes distribution. I have not personally tried with kind yet. Vanilla kubernetes or minikube works.

Did you try installing with the latest nighty build of camel-k or was it the old RC2 build?

@lburgazzoli
Copy link
Contributor

We do use kind in our integration tests, see:

https://github.com/apache/camel-k/blob/master/.github/workflows/kubernetes.yml

@doru1004
Copy link
Contributor Author

I created my kind cluster with a local registry.

Then I ran:

kamel install --registry=http://localhost:5000 --force

( If I don't run it with --registry then it prints "Error: cannot find automatically a registry where to push images" but the kamel operator pod continues to set up and reaches "Running" state. I'd expect it to fail completely and not even start but that's not the case).

After I do this I do:

git clone git@github.com:apache/camel-k.git
cd camel-k
kamel run examples/Sample.java

The output of that last instruction is:

integration "sample" created

But when I look at the pods I get:

camel-k $ kubectl get pods -w
NAME                                       READY   STATUS     RESTARTS   AGE
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:0/1   0          3s
camel-k-operator-8d68bb8cb-np6vw           1/1     Running    0          72s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:Error   0          6s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Terminating   0          11s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Terminating   0          11s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Pending       0          0s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Pending       0          0s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:0/1      0          0s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:0/1      0          2s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:Error    0          5s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Terminating   0          10s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Terminating   0          10s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Pending       0          0s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Pending       0          0s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:0/1      0          0s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:0/1      0          2s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:Error    0          5s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Terminating   0          20s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Terminating   0          20s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Pending       0          0s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Pending       0          0s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:0/1      0          0s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:0/1      0          2s
camel-k-kit-br79m5resvdcd21krbfg-builder   0/1     Init:Error    0          5s
...

Any help is welcome.

@doru1004
Copy link
Contributor Author

Did you try installing with the latest nighty build of camel-k or was it the old RC2 build?

I am using the latest nightly build.

@doru1004
Copy link
Contributor Author

doru1004 commented May 27, 2020

Started using kamel from RC2.

Installation steps (the ones that have gotten me the furthest):

kamel install --cluster-setup
kamel install --registry=localhost:5000 --registry-insecure --force

After this I see:

> kubectl get pods
camel-k-operator-8d68bb8cb-hgv9n           1/1     Running      0          2m29s

But ...

When running:

kamel run examples/Sample.java

the builder pod ('camel-k-kit-br7e120nhkmmt13821n0-builder') gets to the 'Running' stage (for a bit) before it errors:

STEP 1: FROM adoptopenjdk/openjdk8:slim
Getting image source signatures
Copying blob sha256:91de130195aaf87ff518e03d3bf36f4264dc436f6a008d7144cec7230d98a2d1
Copying blob sha256:5a76b7e038d90b8112f088277d529098809f656904bdb7f200a84dcc143b4ed1
Copying blob sha256:23884877105a7ff84a910895cd044061a4561385ff6c36480ee080b76ec0e771
Copying blob sha256:2910811b6c4227c2f42aaea9a3dd5f53b1d469f67e2cf7e601f631b119b61ff7
Copying blob sha256:36505266dcc64eeb1010bd2112e6f73981e1a8246e4f6d4e287763b57f101b0b
Copying blob sha256:bc38caa0f5b94141276220daaf428892096e4afd24b05668cd188311e00a635f
Copying blob sha256:fcfaf118f7f0ce09ab2be177f6837f2a8b62ef7b41697e661fcd6c0bb09e6c40
Copying config sha256:c6938a4e7977e9b4c2be61ee0e524c273c1eef8dc53c9cd4720c243c8402146d
Writing manifest to image destination
Storing signatures
STEP 2: ADD . /deployments
STEP 3: USER 1000
STEP 4: COMMIT localhost:5000/default/camel-k-kit-br7e120nhkmmt13821n0:697
Getting image source signatures
Copying blob sha256:b7f7d2967507ba709dbd1dd0426a5b0cdbe1ff936c131f8958c8d0f910eea19e
Copying blob sha256:a6ebef4a95c345c844c2bf43ffda8e36dd6e053887dd6e283ad616dcc2376be6
Copying blob sha256:838a37a24627f72df512926fc846dd97c93781cf145690516e23335cc0c27794
Copying blob sha256:28ba7458d04b8551ff45d2e17dc2abb768bf6ed1a46bb262f26a24d21d8d7233
Copying blob sha256:11e65cd17c4515a2f98ed2816db45f4ff3e03ee7a31ee721da6f050661193243
Copying blob sha256:0e4d5b5a1cacc8f12d2f5d9ccd5210ed9dbffd437a14392e9bebf099ea5f8ddc
Copying blob sha256:cc72bf63f6258407a3ac135b7a51e063e2e879b2fcf63a9dae184e0bf461aabf
Copying blob sha256:941d16eb40eca7fcc3004cb9ef917799eff8bf9ecaf0aa1c85da144b497e5e54
Copying config sha256:4213146af381012b71665329d4050a1783c8b2d9a8d20fe0c2c5a12a9b11a956
Writing manifest to image destination
Storing signatures
4213146af381012b71665329d4050a1783c8b2d9a8d20fe0c2c5a12a9b11a956
4213146af381012b71665329d4050a1783c8b2d9a8d20fe0c2c5a12a9b11a956
Getting image source signatures
Get http://localhost:5000/v2/: dial tcp [::1]:5000: connect: connection refused
level=error msg="exit status 1"

Any ideas what's going on?

@doru1004
Copy link
Contributor Author

doru1004 commented Jun 3, 2020

Any ideas what might be going wrong here?

@orpiske
Copy link
Contributor

orpiske commented May 13, 2021

I've took notes of running Camel K with Kind and with Kind + A Local Registry. I'll open a PR tomorrow with the details for this.

@orpiske orpiske self-assigned this May 13, 2021
@orpiske orpiske added the area/documentation Documentation task label May 13, 2021
@orpiske orpiske added this to the 1.5.0 milestone May 13, 2021
@orpiske
Copy link
Contributor

orpiske commented May 14, 2021

I added notes about installing Camel K on Kind and they should be available on the website soon, therefore closing it.

Disclaimer: non-official documentation/steps below.

As an additional comment about the failure above. The problem Get http://localhost:5000/v2/: dial tcp [::1]:5000: connect: connection refused is likely caused because there is a problem in the script (the script available on Kind website) that is normally used to setup Kind with a local registry.

@orpiske orpiske closed this as completed May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation task
Projects
None yet
Development

No branches or pull requests

5 participants