/rancher-cloudflare

Rancher Cloudflare

Primary LanguageKotlinMIT LicenseMIT

Rancher Cloudflare

Build Status Docker Pulls

Description

The project automatically synchronizes Rancher ingress records to Cloudflare DNS

Dockerhub

docker pull scalified/rancher-cloudflare:<version>

Version

Version Rancher API Version Cloudflare API Version
1.1.0 latest v3 v4
1.0.0 v3 v4

How-To

Usage

The following environment variables must be provided:

Environment Variable Example Description
RANCHER_URL https://rancher.example.com Rancher Server URL
RANCHER_ACCESS_KEY token-dukhk The token’s username. See API Keys
RANCHER_SECRET_KEY f6sdd2gt2t5gs779fpg9km6fl4d46nkfcnknqzjwszwb6jm4qfh48y The token’s password. See API Keys
CLOUDFLARE_IP_ADDRESS 50.20.120.200 IP Address to be written as A record content
CLOUDFLARE_PROXIED false Whether proxy needs to be enabled on Cloudflare
CLOUDFLARE_ZONE_ID 4ff62716278c165a1592992bde7ff64d Cloudflare Zone Id. See Api Documentation
CLOUDFLARE_API_KEY 794ce33565fec7fc069e0cdfb9c43a0dd1221 Cloudflare API Key See Api Documentation
CLOUDFLARE_EMAIL mail@example.com Cloudflare account email

Assembling

  1. Build the Project:
    ./gradlew clean build
  2. Build Docker image:
    docker build . -t scalified/rancher-cloudflare

Scalified Links