Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentPoolScope ¶ added in v1.5.0
type AgentPoolScope interface { azure.ClusterDescriber azure.AsyncStatusUpdater Name() string NodeResourceGroup() string AgentPoolAnnotations() map[string]string AgentPoolSpec() azure.ResourceSpecGetter SetAgentPoolProviderIDList([]string) SetAgentPoolReplicas(int32) SetAgentPoolReady(bool) SetCAPIMachinePoolReplicas(replicas *int32) SetCAPIMachinePoolAnnotation(key, value string) RemoveCAPIMachinePoolAnnotation(key string) }
AgentPoolScope defines the scope interface for an agent pool.
type AgentPoolSpec ¶ added in v1.5.0
type AgentPoolSpec struct { // Name is the name of agent pool. Name string // ResourceGroup is the name of the Azure resource group for the AKS Cluster. ResourceGroup string // Cluster is the name of the AKS cluster. Cluster string // Version defines the desired Kubernetes version. Version *string // SKU defines the Azure VM size for the agent pool VMs. SKU string // Replicas is the number of desired machines. Replicas int32 // OSDiskSizeGB is the OS disk size in GB for every machine in this agent pool. OSDiskSizeGB int32 // VnetSubnetID is the Azure Resource ID for the subnet which should contain nodes. VnetSubnetID string // Mode represents mode of an agent pool. Possible values include: 'System', 'User'. Mode string // Maximum number of nodes for auto-scaling MaxCount *int32 `json:"maxCount,omitempty"` // Minimum number of nodes for auto-scaling MinCount *int32 `json:"minCount,omitempty"` // Node labels - labels for all of the nodes present in node pool NodeLabels map[string]*string `json:"nodeLabels,omitempty"` // NodeTaints specifies the taints for nodes present in this agent pool. NodeTaints []string `json:"nodeTaints,omitempty"` // EnableAutoScaling - Whether to enable auto-scaler EnableAutoScaling *bool `json:"enableAutoScaling,omitempty"` // AvailabilityZones represents the Availability zones for nodes in the AgentPool. AvailabilityZones []string // MaxPods specifies the kubelet --max-pods configuration for the agent pool. MaxPods *int32 `json:"maxPods,omitempty"` // OsDiskType specifies the OS disk type for each node in the pool. Allowed values are 'Ephemeral' and 'Managed'. OsDiskType *string `json:"osDiskType,omitempty"` // EnableUltraSSD enables the storage type UltraSSD_LRS for the agent pool. EnableUltraSSD *bool `json:"enableUltraSSD,omitempty"` // OSType specifies the operating system for the node pool. Allowed values are 'Linux' and 'Windows' OSType *string `json:"osType,omitempty"` // Headers is the list of headers to add to the HTTP requests to update this resource. Headers map[string]string // EnableNodePublicIP controls whether or not nodes in the agent pool each have a public IP address. EnableNodePublicIP *bool `json:"enableNodePublicIP,omitempty"` // NodePublicIPPrefixID specifies the public IP prefix resource ID which VM nodes should use IPs from. NodePublicIPPrefixID *string `json:"nodePublicIPPrefixID,omitempty"` // ScaleSetPriority specifies the ScaleSetPriority for the node pool. Allowed values are 'Spot' and 'Regular' ScaleSetPriority *string `json:"scaleSetPriority,omitempty"` }
AgentPoolSpec contains agent pool specification details.
func (*AgentPoolSpec) CustomHeaders ¶ added in v1.5.0
func (s *AgentPoolSpec) CustomHeaders() map[string]string
CustomHeaders returns custom headers to be added to the Azure API calls.
func (*AgentPoolSpec) OwnerResourceName ¶ added in v1.5.0
func (s *AgentPoolSpec) OwnerResourceName() string
OwnerResourceName is a no-op for agent pools.
func (*AgentPoolSpec) Parameters ¶ added in v1.5.0
func (s *AgentPoolSpec) Parameters(existing interface{}) (params interface{}, err error)
Parameters returns the parameters for the agent pool.
func (*AgentPoolSpec) ResourceGroupName ¶ added in v1.5.0
func (s *AgentPoolSpec) ResourceGroupName() string
ResourceGroupName returns the name of the resource group.
func (*AgentPoolSpec) ResourceName ¶ added in v1.5.0
func (s *AgentPoolSpec) ResourceName() string
ResourceName returns the name of the agent pool.
Directories ¶
Path | Synopsis |
---|---|
Package mock_agentpools is a generated GoMock package.
|
Package mock_agentpools is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.