hcloud-connect

command module
v0.0.0-...-ca14ec2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 12 Imported by: 0

README

Hetzner Cloud Connect

golangci-lintDocker

Handles automatically adding servers to load balancers

Usage

All configuration is passed with environment variables. We recommend storing these variables as secrets.

First create a secret containing your hetzner credentials:

---
apiVersion: v1
kind: Secret
metadata:
  name: hcloud
  namespace: kube-system
type: Opaque
stringData:
  token: "{HETZNER_API_TOKEN}"
  loadBalancer: "{LOAD_BALANCER_ID}"

Then deploy the daemonset to your cluster:

kubectl apply -f https://raw.githubusercontent.com/BlueBambooStudios/hcloud-connect/master/deployment/daemonset.yaml
Environment variables
Key Type Default Description
HCLOUD_TOKEN String Hetzner API token
HCLOUD_ENDPOINT String (Optional) Optional endpoint URL for Hetzner Cloud
HCLOUD_DEBUG Boolean (Optional) FALSE Enable debug loggin
HCLOUD_LOAD_BALANCER String Load balancer id
HCLOUD_USE_PRIVATE_NETWORK Boolean (Optional) FALSE Use the private network when attaching targets
NODE_NAME String Node name as shown in Hetzner control panel
N.B.

There are no tests, use at your own peril

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL