Documentation ¶
Overview ¶
Package aks implements AKS provider for Kubeformation. It can generate Azure Resource Manager templates in JSON format. Spec is the input struct.
Azure Deployment Manager templates are written in JSON formatted files, typically a resource definition file and a parameters file. Kubeformation converts Spec into azuredeploy.json and azuredeploy.parameters.json files. There could be more files depending on the presence of volumes/disks. These files are defined as Go templates in template.go and are rendered with Spec as the context.
Index ¶
Constants ¶
const ( // Default version of Kubernetes to use DefaultK8SVersion = "1.8.1" // Default Azure VM size DefaultVMSize = "Standard_D2_v2" // Default OS type, available options are Linux and Windows DefaultOSType = "Linux" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodePool ¶
type NodePool struct { // Name of the node pool Name string // Number of nodes in this pool Count int64 // Size (type) of the VMs VMSize string // Type of OS to use OSType string }
NodePool defines a collection of nodes (VMs) with similar properties that can be used by a Kubernetes cluster to schedule workloads.
type Spec ¶
type Spec struct { // Name of the cluster Name string // Kubernetes version for the cluster K8SVersion string // Node pools to be created NodePools []NodePool // Persistent disks to be created Volumes []Volume }
Spec defines the context required to render ARM template.
func NewDefaultSpec ¶
func NewDefaultSpec() *Spec
NewDefaultSpec returns a spec object which is barely enough to render a valid ARM template.
func (*Spec) GetType ¶
func (s *Spec) GetType() provider.ProviderType
GetType returns the type of this provider.