Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignPublicIP ¶
AssignPublicIP assign the publicIP to the interface with the localIP.
func PublicIPv4 ¶
func RewritePublicIP ¶
Cloud providers assign a public IP to instances through NAT. The instance only sees an private _internal_ IP. This is problematic for Kubernetes, which expects to see the public IP on the interface. In this script, we assign the public IP to the instance interface.
func SetHostname ¶
func SetHostname(hostname string)
func SetKubeletNodeIP ¶
Types ¶
type GeoIPResponse ¶
type GeoIPResponse struct {
City string `json:"string"`
CountryCode string `json:"country_code"`
CountryName string `json:"country_name"`
IP net.IP `json:"ip"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
RegionCode string `json:"region_code"`
RegionName string `json:"region_name"`
Timezone string `json:"time_zone"`
}
func GeoIP ¶
func GeoIP() GeoIPResponse
Click to show internal directories.
Click to hide internal directories.