Skip to content

Support Single-Drone Scenario, with Wildcard Dns #279

Closed

Description

@t-moe

Hi there,
This project looks like the perfect foundation for our use case:
We develop a webapp in .NET/Angular and want to spin up a backend (single docker container) for each developer when they click a link in the CI build output of our project (e.g. to Preview a PullRequest).

We want to host plane on our azure infrastructure, but we don't need multiple drones right now.
Is there a way to disable the DNS stuff and just create a single drone and a scheduler?
We would then create a wildcard dns to map *.test-our-webapp.com => The-One-And-Only-Drone-IP. We really don't want to host multiple services (dns, scheduler, drone) for this, because we need to keep our cloud cost at a minimum....

Thanks in advance

Activity

  1. paulgb commented on Dec 5, 2022

    @paulgb
    Member

    Hi Timo,

    Yes, your use case should work.

    • To disable the DNS server, remove the [dns] line from the toml file passed to the controller (e.g. this line).
    • Since the DNS server is required for Plane to obtain its own certificates, you'll need to get certificates some other way and pass them in instead. Once you do, you can pass them in to the drone process with drone.toml.

    You'll still need three processes (nats server, controller, and drone), but they can all be run on the same machine (I recommend using Docker Compose for this).

    Hope that helps, happy to elaborate more if that would be helpful.

  2. t-moe commented on Dec 7, 2022

    @t-moe
    Author

    Hi Paul,
    Thank you for fast response!
    It works! Awesome!!

    I've removed the firefox and dnsmasq containers from the docker-compose sample configuration, exposed the nats and drone https port to get the desired use case working. I've also built a small nodejs app that uses the NATS api to spawn our containers. Next, I will be looking at the authentication part...

  3. paulgb commented on Dec 7, 2022

    @paulgb
    Member

    Awesome, glad that worked! I think we should provide an example like this out of the box, so I've opened #283.

  4. locked and limited conversation to collaborators on Dec 7, 2022
  5. converted this issue into a discussion #284 on Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions