Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Reactive cli prepends https://registry.hub.docker.com/v2/ to my private AWS ECR registry #160

Closed
OguzhanSaltik opened this issue Jun 26, 2018 · 3 comments

Comments

@OguzhanSaltik
Copy link

OguzhanSaltik commented Jun 26, 2018

When I executed this command;
$ rp generate-kubernetes-resources "123456789000.dkr.ecr.eu-west-1.amazonaws.com/example-microservice-api-implementation:2.0-SNAPSHOT" --generate-pod-controllers --generate-services --pod-controller-image-pull-policy Always --env JAVA_OPTS="-Dplay.http.secret.key=secret_for_example-microservice -Dplay.filters.hosts.allowed.0=." --pod-controller-replicas 2 --external-service "cas_native=cassandra.default.svc.cluster.local" --external-service "kafka_native=ulterior-guppy-kafka-headless.default.svc.cluster.local" -l trace

I got this:

[debug, com.lightbend.rp.reactivecli.Main$] Attempting to pull manifest while unauthenticated

[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Image: Image(registry.hub.docker.com,Some(123456789000.dkr.ecr.eu-west-1.amazonaws.com),example-microservice-api-implementation,ImageTag(2.0-SNAPSHOT),None,Some(123456789000.dkr.ecr.eu-west-1.amazonaws.com),example-microservice-api-implementation,Some(ImageTag(2.0-SNAPSHOT)))

[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Request URL: https://registry.hub.docker.com/v2/123456789000.dkr.ecr.eu-west-1.amazonaws.com/example-microservice-api-implementation/tags/list?n=1

[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Received 401 from Registry, attempting to get a token and try again

[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Request URL: https://registry.hub.docker.com/v2/500558841489.dkr.ecr.eu-west-1.amazonaws.com/example-microservice-api-implementation/tags/list?n=1

[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Received 401 from Registry

[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] checkRepositoryValid failed: unable to access repository or registry; check authentication [401]

[error, com.lightbend.rp.reactivecli.Main$] Failed to obtain Docker config for 123456789000.dkr.ecr.eu-west-1.amazonaws.com/example-microservice-api-implementation:2.0-SNAPSHOT, unable to access repository or registry; check authentication [401]
@OguzhanSaltik
Copy link
Author

When I append --registry-use-local to the request it generates related yaml files. But after this process I executed kubectl apply -f generated.yaml files like deployment, service and ingress, service and ingress successfully applied but while applying deployment.yaml, I got error.

Readiness probe failed: HTTP probe failed with statuscode: 503

and inside of the logs I got error.
2018-06-26T14:49:05.120Z [error] akka.actor.ActorSystemImpl [sourceThread=application-akka.actor.default-dispatcher-3, akkaTimestamp=14:49:05.120UTC, akkaSource=akka.actor.ActorSystemImpl(application), sourceActorSystem=application] - Failed to unmarshal Kubernetes API response status [400 Bad Request]; check RBAC settings

I applied both of the RBAC settings on https://developer.ibm.com/code/2018/03/02/lightbend-orchestration-ibm-cloud/ and kubernetes/kops#3551 but I have same problem, nothing changed...

@OguzhanSaltik
Copy link
Author

I downgraded my sbt-reactive-app from 1.2.2 to 1.0.0 like the answer on lagom/online-auction-scala#78 it solves my problem temporarily.

@TimMoore
Copy link

Lightbend Orchestration is no longer actively developed and will reach its End of Life on April 15, 2020.

We recommend Migrating to the Improved Kubernetes Deployment Experience.

@ghost ghost removed the backlog label Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants