Closed iohenkies closed 4 years ago
Lol solved after many hours I can tell you :)
The secret should be like this:
apiVersion: v1
kind: Secret
metadata:
name: fip-controller-secrets
stringData:
HCLOUD_API_TOKEN: "snip"
Instead of this:
apiVersion: v1
kind: Secret
metadata:
name: fip-controller-secrets
data:
HCLOUD_API_TOKEN: "snip"
Hi,
glad you figured out the problem. In the docs I am also using stringData (compare https://github.com/cbeneke/hcloud-fip-controller/blob/master/docs/deploy.md#manual-installation), even though this is just a casted type (the object in the cluster will still be created with base64 encoded data fields). Where did you find the data typed reference? The helm repo also uses stringData (and documents to not use base64 encoded values); https://github.com/cbeneke/helm-charts/blob/master/charts/hcloud-fip-controller/templates/secret.yaml
Hi,
At this point I really don't know where I got it from ;). Maybe here at the bottom? https://github.com/cbeneke/helm-charts/tree/master/charts/hcloud-fip-controller#configuration
Good catch, updated accordingly and closing here :)
Hi,
Some months ago I was able to setup everything with the fip-controller and now I'm trying again with a fresh install. But installing via the yml manifests as with a helm install results in the same error in the logs in fip controller deployment or deamonset:
time="2020-08-30T10:55:12Z" level=fatal msg="Could not run controller: could not get configured server: could not fetch servers: Get \"https://api.hetzner.cloud/v1/servers?page=1&per_page=50\": net/http: invalid header field value \"Bearer ꌰ��$\\x06\\t��\\f4�\\u0096��ˇ���\\x19\\x05\\x19�\\f�����]O�������\\x10n$Vg�g\" for key Authorization" func="github.com/sirupsen/logrus.(*Entry).Logf" file="/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:314"
Any idea?