-
Notifications
You must be signed in to change notification settings - Fork 345
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
can't run hello.java,maybe somethings wrong with registry #1699
Comments
pod logs:
|
Can you try adding Then |
thank you,I will try it! |
spectrum - 2020/09/11 10:48:41 Composing layers... spectrum - 2020/09/11 10:48:41 Pushing image docker.io/office602org/camel-k-kit-btdl9p3r4smi8mn5l4l0:2174943 (insecure=true)... {"level":"info","ts":1599821329.5719368,"logger":"camel-k.builder","msg":"step failed with error: Head https://index.docker.io/v2/office602org/camel-k-kit-btdl9p3r4smi8mn5l4l0/blobs/sha256:6de1a9cecd4603db2034d7a4779017912e9638454a4ea499e8257f4176bfd0b2: stopped after 10 redirects","step":"github.com/apache/camel-k/pkg/builder/spectrum/Publisher","phase":40,"name":"kit-btdl9p3r4smi8mn5l4l0","task":"builder"} |
docker.io after create user,have need to do something else? |
I see docker hub is doing something strange: Ideas @astefanutti , @lburgazzoli ? |
./kamel install --registry docker.io --organization office602org --registry-auth-username office602 --registry-auth-password ****** -n camel-k --maven-settings=configmap:maven-settings/settings.xml --build-timeout 12h --cluster-type kubernetes --registry-insecure true --force --build-publish-strategy=Spectrum |
Are you using your own user ID as Which kubernetes env are you using? |
Probably you should not set |
only kubenetes,not minikube |
I use kubesphere,it is like minikube |
./kamel install --registry docker.io --registry-auth-username office602 --registry-auth-password ***** -n camel-k --maven-settings=configmap:maven-settings/settings.xml --build-timeout 12h --cluster-type kubernetes --build-publish-strategy=Spectrum |
spectrum - 2020/09/11 11:13:18 Pulling base image adoptopenjdk/openjdk11:slim (insecure=false)... spectrum - 2020/09/11 11:13:18 No matching credentials were found, falling back on anonymous spectrum - 2020/09/11 11:13:23 Composing layers... spectrum - 2020/09/11 11:13:23 Pushing image docker.io/camel-k/camel-k-kit-btdln38c8068mibhvbjg:2182394 (insecure=false)... {"level":"info","ts":1599822811.2376115,"logger":"camel-k.builder","msg":"step failed with error: HEAD https://index.docker.io/v2/camel-k/camel-k-kit-btdln38c8068mibhvbjg/blobs/sha256:f08d8e2a3ba11bea23cf5c17e8e1c620057412ed05c32d1114640e18d6dd0a43: unsupported status code 401","step":"github.com/apache/camel-k/pkg/builder/spectrum/Publisher","phase":40,"name":"kit-btdln38c8068mibhvbjg","task":"builder"} |
{"level":"info","ts":1599826868.3883812,"logger":"camel-k","msg":"could not find any knative type in namespace camel-k, last error was: services.serving.knative.dev is forbidden: User "system:serviceaccount:camel-k:camel-k-operator" cannot list resource "services" in API group "serving.knative.dev" in the namespace "camel-k""} |
I think you forgot the |
knative need installed? |
No, it's just an info message. Knative is optional. |
thks,it's ok,because I am from china can't direct to visit docker.io, I need modify /etc/hosts |
Hi @w-j-d, |
This issue has been automatically marked as stale due to 90 days of inactivity. |
Camel-k Install command-line:
./kamel install --registry docker.io --organization XXXXXXorg --registry-auth-username XXXXX --registry-auth-password XXXX -n camel-k --maven-settings=configmap:maven-settings/settings.xml --build-timeout 12h --cluster-type kubernetes
./kamel init Hello.java
./kamel run Hello.java -n camel-k --dev
then:
The text was updated successfully, but these errors were encountered: