Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BlueBambooStudios/hcloud-connect
Heztner Cloud K8s Agent
https://github.com/BlueBambooStudios/hcloud-connect
Last synced: about 1 month ago
JSON representation
Heztner Cloud K8s Agent
- Host: GitHub
- URL: https://github.com/BlueBambooStudios/hcloud-connect
- Owner: BlueBambooStudios
- License: mit
- Created: 2020-09-20T21:51:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-14T23:50:00.000Z (over 3 years ago)
- Last Synced: 2024-08-03T21:02:32.107Z (5 months ago)
- Language: Go
- Size: 23.4 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hcloud - Hetzner Cloud Connect
README
# Hetzner Cloud Connect
![golangci-lint](https://github.com/BlueBambooStudios/hcloud-connect/workflows/golangci-lint/badge.svg)![Docker](https://github.com/BlueBambooStudios/hcloud-connect/workflows/Docker/badge.svg)
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