Documentation ¶
Overview ¶
Package operations provides methods to perform kubernetes-specific IaaS operations like cordon & drain, cluster upgrades, remote SSH, and scaling of agentpools.
Index ¶
- Constants
- func CleanDeleteVirtualMachine(az armhelpers.AKSEngineClient, logger *log.Entry, ...) error
- func RemoteRun(user string, addr string, port int, sshKey []byte, cmd string) (string, error)
- func SafelyDrainNode(az armhelpers.AKSEngineClient, logger *log.Entry, ...) error
- func SafelyDrainNodeWithClient(client armhelpers.KubernetesClient, logger *log.Entry, nodeName string, ...) error
- func ScaleDownVMs(az armhelpers.AKSEngineClient, logger *log.Entry, subscriptionID string, ...) *list.List
- type VMScalingErrorDetails
Constants ¶
View Source
const (
// AADRoleResourceGroupScopeTemplate is a template for a roleDefinition scope
AADRoleResourceGroupScopeTemplate = "/subscriptions/%s/resourceGroups/%s"
)
Variables ¶
This section is empty.
Functions ¶
func CleanDeleteVirtualMachine ¶
func CleanDeleteVirtualMachine(az armhelpers.AKSEngineClient, logger *log.Entry, subscriptionID, resourceGroup, name string) error
CleanDeleteVirtualMachine deletes a VM and any associated OS disk
func SafelyDrainNode ¶
func SafelyDrainNode(az armhelpers.AKSEngineClient, logger *log.Entry, masterURL, kubeConfig, nodeName string, timeout time.Duration) error
SafelyDrainNode safely drains a node so that it can be deleted from the cluster
func SafelyDrainNodeWithClient ¶
func SafelyDrainNodeWithClient(client armhelpers.KubernetesClient, logger *log.Entry, nodeName string, timeout time.Duration) error
SafelyDrainNodeWithClient safely drains a node so that it can be deleted from the cluster
func ScaleDownVMs ¶
func ScaleDownVMs(az armhelpers.AKSEngineClient, logger *log.Entry, subscriptionID string, resourceGroup string, vmNames ...string) *list.List
ScaleDownVMs removes the vms in the provided list. Returns a list with details on each failure. all items in the list will always be of type *VMScalingErrorDetails
Types ¶
type VMScalingErrorDetails ¶
VMScalingErrorDetails give the index in the agent pool that failed and the accompanying error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package dcosupgrade allows upgrading of ACS clusters with DC/OS as the orchestrator.
|
Package dcosupgrade allows upgrading of ACS clusters with DC/OS as the orchestrator. |
Package kubernetesupgrade allows upgrading of Kubernetes clusters.
|
Package kubernetesupgrade allows upgrading of Kubernetes clusters. |
Click to show internal directories.
Click to hide internal directories.