forked from Azure/aks-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
203 lines (195 loc) · 11.5 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
package engine
const (
// DefaultVNETCIDR is the default CIDR block for the VNET
DefaultVNETCIDR = "10.0.0.0/8"
// DefaultInternalLbStaticIPOffset specifies the offset of the internal LoadBalancer's IP
// address relative to the first consecutive Kubernetes static IP
DefaultInternalLbStaticIPOffset = 10
// NetworkPolicyNone is the string expression for the deprecated NetworkPolicy usage pattern "none"
NetworkPolicyNone = "none"
// NetworkPolicyCalico is the string expression for calico network policy config option
NetworkPolicyCalico = "calico"
// NetworkPolicyCilium is the string expression for cilium network policy config option
NetworkPolicyCilium = "cilium"
// NetworkPolicyAzure is the string expression for Azure CNI network policy manager
NetworkPolicyAzure = "azure"
// NetworkPluginAzure is the string expression for Azure CNI plugin
NetworkPluginAzure = "azure"
// NetworkPluginKubenet is the string expression for kubenet network plugin
NetworkPluginKubenet = "kubenet"
// NetworkPluginFlannel is the string expression for flannel network policy config option
NetworkPluginFlannel = "flannel"
// DefaultKubeHeapsterDeploymentAddonName is the name of the kube-heapster-deployment addon
DefaultKubeHeapsterDeploymentAddonName = "kube-heapster-deployment"
// DefaultKubeDNSDeploymentAddonName is the name of the kube-dns-deployment addon
DefaultKubeDNSDeploymentAddonName = "kube-dns-deployment"
// DefaultCoreDNSAddonName is the name of the coredns addon
DefaultCoreDNSAddonName = "coredns"
// DefaultDNSAutoscalerAddonName is the name of the coredns addon
DefaultDNSAutoscalerAddonName = "dns-autoscaler"
// DefaultKubeProxyAddonName is the name of the kube-proxy config addon
DefaultKubeProxyAddonName = "kube-proxy-daemonset"
// DefaultAzureStorageClassesAddonName is the name of the azure storage classes addon
DefaultAzureStorageClassesAddonName = "azure-storage-classes"
// DefaultAzureNpmDaemonSetAddonName is the name of the azure npm daemon set addon
DefaultAzureNpmDaemonSetAddonName = "azure-npm-daemonset"
// DefaultCalicoDaemonSetAddonName is the name of calico daemonset addon
DefaultCalicoDaemonSetAddonName = "calico-daemonset"
// DefaultCiliumDaemonSetAddonName is the name of cilium daemonset addon
DefaultCiliumDaemonSetAddonName = "cilium-daemonset"
// DefaultFlannelDaemonSetAddonName is the name of flannel plugin daemonset addon
DefaultFlannelDaemonSetAddonName = "flannel-daemonset"
// DefaultAADAdminGroupRBACAddonName is the name of the default admin group RBAC addon
DefaultAADAdminGroupRBACAddonName = "aad-default-admin-group-rbac"
// DefaultAzureCloudProviderDeploymentAddonName is the name of the azure cloud provider deployment addon
DefaultAzureCloudProviderDeploymentAddonName = "azure-cloud-provider-deployment"
// DefaultAzureCNINetworkMonitorAddonName is the name of the azure cni network monitor addon
DefaultAzureCNINetworkMonitorAddonName = "azure-cni-networkmonitor"
// DefaultAuditPolicyAddonName is the name of the audit policy addon
DefaultAuditPolicyAddonName = "audit-policy"
// DefaultTillerAddonName is the name of the tiller addon deployment
DefaultTillerAddonName = "tiller"
// DefaultAADPodIdentityAddonName is the name of the aad-pod-identity addon deployment
DefaultAADPodIdentityAddonName = "aad-pod-identity"
// DefaultACIConnectorAddonName is the name of the aci-connector addon deployment
DefaultACIConnectorAddonName = "aci-connector"
// DefaultDashboardAddonName is the name of the kubernetes-dashboard addon deployment
DefaultDashboardAddonName = "kubernetes-dashboard"
// DefaultClusterAutoscalerAddonName is the name of the autoscaler addon deployment
DefaultClusterAutoscalerAddonName = "cluster-autoscaler"
// DefaultBlobfuseFlexVolumeAddonName is the name of the blobfuse flexvolume addon
DefaultBlobfuseFlexVolumeAddonName = "blobfuse-flexvolume"
// DefaultSMBFlexVolumeAddonName is the name of the smb flexvolume addon
DefaultSMBFlexVolumeAddonName = "smb-flexvolume"
// DefaultKeyVaultFlexVolumeAddonName is the name of the keyvault flexvolume addon deployment
DefaultKeyVaultFlexVolumeAddonName = "keyvault-flexvolume"
// DefaultELBSVCAddonName is the name of the elb service addon deployment
DefaultELBSVCAddonName = "elb-svc"
// DefaultGeneratorCode specifies the source generator of the cluster template.
DefaultGeneratorCode = "aksengine"
// DefaultReschedulerAddonName is the name of the rescheduler addon deployment
DefaultReschedulerAddonName = "rescheduler"
// DefaultHeapsterAddonName is the name of the heapster addon deployment
DefaultHeapsterAddonName = "heapster"
// DefaultMetricsServerAddonName is the name of the kubernetes Metrics server addon deployment
DefaultMetricsServerAddonName = "metrics-server"
// NVIDIADevicePluginAddonName is the name of the kubernetes NVIDIA Device Plugin daemon set
NVIDIADevicePluginAddonName = "nvidia-device-plugin"
// ContainerMonitoringAddonName is the name of the kubernetes Container Monitoring addon deployment
ContainerMonitoringAddonName = "container-monitoring"
// AzureCNINetworkMonitoringAddonName is the name of the Azure CNI networkmonitor addon
AzureCNINetworkMonitoringAddonName = "azure-cni-networkmonitor"
// AzureNetworkPolicyAddonName is the name of the Azure CNI networkmonitor addon
AzureNetworkPolicyAddonName = "azure-npm-daemonset"
// IPMASQAgentAddonName is the name of the ip masq agent addon
IPMASQAgentAddonName = "ip-masq-agent"
// DefaultKubernetesKubeletMaxPods is the max pods per kubelet
DefaultKubernetesKubeletMaxPods = 110
// DefaultMasterEtcdServerPort is the default etcd server port for Kubernetes master nodes
DefaultMasterEtcdServerPort = 2380
// DefaultMasterEtcdClientPort is the default etcd client port for Kubernetes master nodes
DefaultMasterEtcdClientPort = 2379
// etcdAccountNameFmt is the name format for a typical etcd account on Cosmos
etcdAccountNameFmt = "%sk8s"
// etcdEndpointURIFmt is the name format for a typical etcd account uri
etcdEndpointURIFmt = "%sk8s.etcd.cosmosdb.azure.com"
)
const (
//DefaultExtensionsRootURL Root URL for extensions
DefaultExtensionsRootURL = "https://raw.githubusercontent.com/Azure/aks-engine/master/"
// DefaultDockerEngineRepo for grabbing docker engine packages
DefaultDockerEngineRepo = "https://download.docker.com/linux/ubuntu"
// DefaultDockerComposeURL for grabbing docker images
DefaultDockerComposeURL = "https://github.com/docker/compose/releases/download"
)
const (
//DefaultConfigurationScriptRootURL Root URL for configuration script (used for script extension on RHEL)
DefaultConfigurationScriptRootURL = "https://raw.githubusercontent.com/Azure/aks-engine/master/parts/"
)
const (
kubernetesMasterCustomDataYaml = "k8s/kubernetesmastercustomdata.yml"
kubernetesCustomScript = "k8s/kubernetescustomscript.sh"
kubernetesProvisionSourceScript = "k8s/kubernetesprovisionsource.sh"
kubernetesHealthMonitorScript = "k8s/health-monitor.sh"
kubernetesInstalls = "k8s/kubernetesinstalls.sh"
kubernetesConfigurations = "k8s/kubernetesconfigs.sh"
kubernetesMountetcd = "k8s/kubernetes_mountetcd.sh"
kubernetesCustomSearchDomainsScript = "k8s/setup-custom-search-domains.sh"
kubernetesMasterGenerateProxyCertsScript = "k8s/kubernetesmastergenerateproxycertscript.sh"
kubernetesAgentCustomDataYaml = "k8s/kubernetesagentcustomdata.yml"
kubernetesJumpboxCustomDataYaml = "k8s/kubernetesjumpboxcustomdata.yml"
kubeConfigJSON = "k8s/kubeconfig.json"
// Windows custom scripts
kubernetesWindowsAgentCustomDataPS1 = "k8s/kuberneteswindowssetup.ps1"
kubernetesWindowsAgentFunctionsPS1 = "k8s/kuberneteswindowsfunctions.ps1"
kubernetesWindowsConfigFunctionsPS1 = "k8s/windowsconfigfunc.ps1"
kubernetesWindowsKubeletFunctionsPS1 = "k8s/windowskubeletfunc.ps1"
kubernetesWindowsCniFunctionsPS1 = "k8s/windowscnifunc.ps1"
kubernetesWindowsAzureCniFunctionsPS1 = "k8s/windowsazurecnifunc.ps1"
kubernetesWindowsOpenSSHFunctionPS1 = "k8s/windowsinstallopensshfunc.ps1"
sshdConfig = "k8s/sshd_config"
)
const (
dcosCustomData188 = "dcos/dcoscustomdata188.t"
dcosCustomData190 = "dcos/dcoscustomdata190.t"
dcosCustomData198 = "dcos/dcoscustomdata198.t"
dcosCustomData110 = "dcos/dcoscustomdata110.t"
dcosProvision = "dcos/dcosprovision.sh"
dcosWindowsProvision = "dcos/dcosWindowsProvision.ps1"
dcosProvisionSource = "dcos/dcosprovisionsource.sh"
dcos2Provision = "dcos/bstrap/dcosprovision.sh"
dcos2BootstrapProvision = "dcos/bstrap/bootstrapprovision.sh"
dcos2CustomData1110 = "dcos/bstrap/dcos1.11.0.customdata.t"
dcos2CustomData1112 = "dcos/bstrap/dcos1.11.2.customdata.t"
)
const (
swarmProvision = "swarm/configure-swarm-cluster.sh"
swarmWindowsProvision = "swarm/Install-ContainerHost-And-Join-Swarm.ps1"
swarmModeProvision = "swarm/configure-swarmmode-cluster.sh"
swarmModeWindowsProvision = "swarm/Join-SwarmMode-cluster.ps1"
)
const (
agentOutputs = "agentoutputs.t"
agentParams = "agentparams.t"
dcosAgentResourcesVMAS = "dcos/dcosagentresourcesvmas.t"
dcosWindowsAgentResourcesVMAS = "dcos/dcosWindowsAgentResourcesVmas.t"
dcosAgentResourcesVMSS = "dcos/dcosagentresourcesvmss.t"
dcosWindowsAgentResourcesVMSS = "dcos/dcosWindowsAgentResourcesVmss.t"
dcosAgentVars = "dcos/dcosagentvars.t"
dcosBaseFile = "dcos/dcosbase.t"
dcosParams = "dcos/dcosparams.t"
dcosMasterResources = "dcos/dcosmasterresources.t"
dcosMasterVars = "dcos/dcosmastervars.t"
dcos2BaseFile = "dcos/bstrap/dcosbase.t"
dcos2BootstrapVars = "dcos/bstrap/bootstrapvars.t"
dcos2BootstrapParams = "dcos/bstrap/bootstrapparams.t"
dcos2BootstrapResources = "dcos/bstrap/bootstrapresources.t"
dcos2BootstrapCustomdata = "dcos/bstrap/bootstrapcustomdata.yml"
dcos2MasterVars = "dcos/bstrap/dcosmastervars.t"
dcos2MasterResources = "dcos/bstrap/dcosmasterresources.t"
iaasOutputs = "iaasoutputs.t"
kubernetesBaseFile = "k8s/kubernetesbase.t"
kubernetesAgentResourcesVMAS = "k8s/kubernetesagentresourcesvmas.t"
kubernetesAgentResourcesVMSS = "k8s/kubernetesagentresourcesvmss.t"
kubernetesAgentVars = "k8s/kubernetesagentvars.t"
kubernetesMasterResourcesVMAS = "k8s/kubernetesmasterresources.t"
kubernetesMasterResourcesVMSS = "k8s/kubernetesmasterresourcesvmss.t"
kubernetesMasterVars = "k8s/kubernetesmastervars.t"
kubernetesParams = "k8s/kubernetesparams.t"
kubernetesWinAgentVars = "k8s/kuberneteswinagentresourcesvmas.t"
kubernetesWinAgentVarsVMSS = "k8s/kuberneteswinagentresourcesvmss.t"
masterOutputs = "masteroutputs.t"
masterParams = "masterparams.t"
swarmBaseFile = "swarm/swarmbase.t"
swarmParams = "swarm/swarmparams.t"
swarmAgentResourcesVMAS = "swarm/swarmagentresourcesvmas.t"
swarmAgentResourcesVMSS = "swarm/swarmagentresourcesvmss.t"
swarmAgentVars = "swarm/swarmagentvars.t"
swarmMasterResources = "swarm/swarmmasterresources.t"
swarmMasterVars = "swarm/swarmmastervars.t"
swarmWinAgentResourcesVMAS = "swarm/swarmwinagentresourcesvmas.t"
swarmWinAgentResourcesVMSS = "swarm/swarmwinagentresourcesvmss.t"
windowsParams = "windowsparams.t"
)