Documentation ¶
Index ¶
- type VM
- func (vm *VM) Credentials() (daemonutils.ClusterCredentials, error)
- func (vm *VM) Hostname() (string, bool)
- func (vm *VM) IP() (string, bool)
- func (vm *VM) KubeConfig() (config *rest.Config, err error)
- func (vm *VM) Labels() map[string]string
- func (vm *VM) Name() (string, bool)
- func (vm *VM) Region() (string, bool)
- func (vm *VM) Zone() (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
VM represents a VM instance running on Google Cloud. It uses the metadata server to fetch all required information.
func (*VM) Credentials ¶
func (vm *VM) Credentials() (daemonutils.ClusterCredentials, error)
Credentials contain the credentials used for the daemon to access the cluster
func (*VM) KubeConfig ¶
KubeConfig yields the config used to create Kubernetes clientset. It tries the following ways in order: - Use ~/.kube/config file. - Use Kubernetes service account (KSA) specified by metadata. - Use gcloud IAM service account (GSA) associated with this instance.
Click to show internal directories.
Click to hide internal directories.