Comments (3)
Hi Marcel,
Thanks a lot for your help. I've managed to make it work... as I'm not a kubernetes experience professional I struggled a lot... but finally made it.
Take a look how I've done it:
apiVersion: v1
kind: Service
metadata:
name: myapp
annotations:
load-balancer.hetzner.cloud/location: fsn1
load-balancer.hetzner.cloud/use-private-ip: "true"
load-balancer.hetzner.cloud/disable-private-ingress: "true"
spec:
selector:
app: myapp
ports:
- protocol: TCP
port: 80
targetPort: 5000
type: LoadBalancer
without the use-private-ip the Loadbalancer couldn't get into the container... .and without disable-private-ingress the load balance isn't created.
Thanks,
Joao
from terraform-hcloud-talos.
As I wrote in the mail, have you red the following docs?
https://github.com/hetznercloud/hcloud-cloud-controller-manager/blob/main/docs/load_balancers.md
I think you have to add the annotation.
apiVersion: v1
kind: Service
metadata:
name: example-service
annotations:
load-balancer.hetzner.cloud/location: hel1
spec:
selector:
app: example
ports:
- port: 80
targetPort: 8080
type: LoadBalancer
How does your service config look?
from terraform-hcloud-talos.
You are welcome. Kubernetes has a steep learning curve. Always try to understand what settings have what effects. Keep having fun.
from terraform-hcloud-talos.
Related Issues (12)
- Dependency Dashboard
- firewall.tf - https://ipv6.icanhazip.com isnt working HOT 2
- Feedback: Don't put the hcloud token in a var HOT 1
- Support for cluster auto scaling HOT 1
- Support for nodes in different regions HOT 3
- ARM or AMD HOT 1
- Error: Error making request ipv6.icanhazip.com HOT 2
- Awesome project! HOT 1
- Error complains about wrong kubernetes version 1.20.0 HOT 4
- Add docs for 403 forbidden on gcr.io pull HOT 2
- Support for updating live machines using the talos provider HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-hcloud-talos.