Skip to content

Commit

Permalink
k3s-intro/k3s-start: set external-ip and advertise-address
Browse files Browse the repository at this point in the history
As a result, the cluster exposes the correct external IP address for
LoadBalancer services.
  • Loading branch information
nemethf committed Oct 24, 2024
1 parent d32d03b commit 405a434
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions k8s-intro/k3s-start
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
/usr/local/bin/k3s \
server \
'--write-kubeconfig-mode' \
'644' \
'--tls-san' \
$(ec2metadata --public-ipv4)
server \
--write-kubeconfig-mode 644 \
--tls-san $(ec2metadata --public-ipv4) \
--node-external-ip $(ec2metadata --public-ipv4) \
--advertise-address $(ec2metadata --local-ipv4)

0 comments on commit 405a434

Please sign in to comment.