Skip to content

Commit

Permalink
If the private network is available, then use the private IP to reach…
Browse files Browse the repository at this point in the history
… the master from the nodes
  • Loading branch information
vitobotta committed Aug 19, 2024
1 parent 6ec63a7 commit 7d3e1c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/kubernetes/installer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ class Kubernetes::Installer
end

private def api_server_ip_address
first_master.host_ip_address.not_nil!
if first_master.private_ip_address.nil?
first_master.public_ip_address
else
first_master.private_ip_address
end
end
end

0 comments on commit 7d3e1c4

Please sign in to comment.