Coder Social home page Coder Social logo

Comments (2)

s-daehling avatar s-daehling commented on July 19, 2024

I guess that you are using minikube and try to reuse the same image that is present on the host. Correct? This is not possible right away. There is a separate in-cluster docker-daemon that is different from the one on the host. However, you can directly access the cluster docker-daemon from your host by using the following command

eval $(minikube docker-env)

See also here: https://minikube.sigs.k8s.io/docs/handbook/pushing/

If you want to pull an image from a private registry (such as the agentlib gitlab) you have to create a PullSecret. Within your Gitlab project create a deploy token (Settings->Repository->Deploy tokens, scope: read_registry). With the username and token you can now create the PullSecret using following command:

kubectl create secret docker-registry <secret-name> --docker-server=<gitlab-registry-address> --docker-username=<username> --docker-password=<token>

You might also have to specify the namespace if cloneMAP is not started in the default namespace.

To let cloneMAP know the secret, you have to specify it in the yaml file you use for MAS deployment.

imagegroups":[
        {
            "config": {
                "image":"agentlibtest",
                "secret": **<secret-name>**
            },
            "agents":[...]
        }
    ],

Please let me know if this solves your issue.

from clonemap.

kwe712 avatar kwe712 commented on July 19, 2024

Thank you! I'm still working on this, not using Minikube but Rancher Desktop (with WSL2). Unfortunately so far the secret didn't work, I am now looking into ways to manage images from a private registry with rancher (similar to minikube cache).

I tried to use Minikube in the beginning, but I get a connection refused error every time I try to curl POST to the cluster's IP. Are there additional steps necessary to expose the clonemap API when using Minikube?

from clonemap.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.