Closed Andre15711 closed 1 year ago
?
can you please fill out the template?
Sorry, for the confision. If you mark the line in the code directly in GitHub and select via right mouse click "open an issue", these is no template.....
All good! Do you mean that it is "not" working with 10. addresses? By chance do you have the error from the logs?
I just ran this with 10.* addresses and it worked fine.
$ kubectl describe service nginx
Name: nginx
Namespace: default
Labels: <none>
Annotations: <none>
Selector: app=nginx
Type: LoadBalancer
IP Family Policy: PreferDualStack
IP Families: IPv4
IP: 10.43.5.3
IPs: 10.43.5.3
LoadBalancer Ingress: 10.0.3.1
Port: <unset> 80/TCP
TargetPort: 80/TCP
NodePort: <unset> 30932/TCP
Endpoints: <none>
Session Affinity: None
External Traffic Policy: Cluster
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal IPAllocated 8s metallb-controller Assigned IP ["10.0.3.1"]
[master]
10.0.0.11
10.0.0.12
10.0.0.13
[node]
10.0.0.14
10.0.0.15
10.0.0.16
[k3s_cluster:children]
master
node
metal_lb_ip_range: "10.0.3.1-10.0.3.255"
One thing worth noting is that when I go to http://10.0.3.1
in the browser I get a timeout with nothing displayed. Similar thing happens when running curl. Might have missed some setup though, I am using pfsense, and am on the same vlan.
Expected Behavior
during deployment an error occurred in k3s/master task
Current Behavior
deployment stopped
Steps to Reproduce
everytime.
Context (variables)
all.yml
Operating system: Ubuntu 22.04
Hardware: VM
Hosts
host.ini
Possible Solution
I includes in the IP address fix int the script without variable.
https://github.com/techno-tim/k3s-ansible/blob/e98e3ee77c7a07ed5ff1ab4588f394462c70b20f/roles/k3s/master/tasks/main.yml#L121