Code Monkey home page Code Monkey logo

designate-in-a-box's Introduction

designate-in-a-box

This project provides a standalone OpenStack Designate service. All dependent services such as the OpenStack Keystone service are provided as well. OSISM is used as the lifecycle management solution for this.

The purpose of this project is to be able to use Gardener on OpenStack-based CSPs that do not yet have a Designate in use without having to rely on an external DNS service.

It is intended as an interim solution until the respective CSPs provide Designate themselves. It's not meant to be a long-term solution.

The project is provided "AS IS", without warranty of any kind.

Preparations

The first step is to create a new floating IP address on which the Designat endpoint and the name server are made available.

make openstack ENVIRONMENT=citycloud
(openstack) floating ip create -f json ext-net
{
  "created_at": "2021-06-11T19:38:12Z",
  "description": "",
  "dns_domain": null,
  "dns_name": null,
  "fixed_ip_address": null,
  "floating_ip_address": "91.123.203.120",
  "floating_network_id": "2aec7a99-3783-4e2a-bd2b-bbe4fef97d1c",
  "id": "43fa2b45-2365-478e-bf7c-607078aa07e3",
  "name": "91.123.203.120",
  "port_details": null,
  "port_id": null,
  "project_id": "xxx",
  "qos_policy_id": null,
  "revision_number": 0,
  "router_id": null,
  "status": "DOWN",
  "subnet_id": null,
  "tags": [],
  "updated_at": "2021-06-11T19:38:12Z"
}

Next, A and NS records for this IP address are created on an existing name server. In this case, later citycloud.23technologies.xyz is to be managed by Designate. Via citycloud.designate-in-a-box.23technologies.xyz, the Designate API endpoint will be available.

A - citycloud.designate-in-a-box.23technologies.xyz - 91.123.203.120 (TTL = 1800)
NS - citycloud.23technologies.xyz - 91.123.203.120 (TTL = 1800)

Before creating the environment, make sure that the A-record resolves correctly. Otherwise, the creation of the certificate via Letencrypt will not work.

The previously created floating IP address is now made available.

make attach ENVIRONMENT=citycloud PARAMS=43fa2b45-2365-478e-bf7c-607078aa07e3

If the environment is removed or rebuilt, the floating IP address should be detached first. So it can be reused later.

make detach ENVIRONMENT=citycloud

Usage

To create a Designate service that manages the domain citycloud.23technologies.xyz with the endpoint at citycloud.designate-in-a-box.23technologies.xyz proceed as follows:

cd terraform
make create \
     ENVIRONMENT=citycloud \
     DOMAIN=citycloud.23technologies.xyz \
     ENDPOINT=citycloud.designate-in-a-box.23technologies.xyz

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.