Skip to main content

Assign a Domain

You can assign a custom domain to your project if you are subscribed to a commercial Flinkwerk plan. This domain can have any format of your choosing.

note

Custom domains are optional. You will always be able to access your project at its preview URL.

Follow these steps to assign your custom domain:

  1. Add this to your project configuration.

    .flinkwerk/config.yml
    environments:
    my-environment:
    cluster: my-cluster
    domain: my-domain.com

    The my-environment field can be just any name you want to give to your environment. Of course, replace my-domain.com with the actual name of your custom domain.

  2. Detect the IP address of your cluster by issuing this command in your terminal:

    flinkwerk cluster info my-cluster
  3. Set the following record on your DNS provider:

    Type  Name  Value
    A @ xx.xx.xx.xx

    Please replace xx.xx.xx.xx with the IP address you detected previously.

  4. Finally, run this command in your project root for the changes to take effect:

    flinkwerk deploy