This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 522
/
const.go
228 lines (217 loc) · 12.2 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
package engine
const (
// Mesos is the string constant for MESOS orchestrator type
Mesos string = "Mesos"
// DCOS is the string constant for DCOS orchestrator type and defaults to DCOS188
DCOS string = "DCOS"
// Swarm is the string constant for the Swarm orchestrator type
Swarm string = "Swarm"
// Kubernetes is the string constant for the Kubernetes orchestrator type
Kubernetes string = "Kubernetes"
// SwarmMode is the string constant for the Swarm Mode orchestrator type
SwarmMode string = "SwarmMode"
)
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"
// NetworkPluginCilium is the string expression for cilium network plugin config option
NetworkPluginCilium = NetworkPolicyCilium
// 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 plugin
NetworkPluginFlannel = "flannel"
// HeapsterAddonName is the name of the kube-heapster-deployment addon
HeapsterAddonName = "kube-heapster-deployment"
// KubeDNSAddonName is the name of the kube-dns-deployment addon
KubeDNSAddonName = "kube-dns-deployment"
// CoreDNSAddonName is the name of the coredns addon
CoreDNSAddonName = "coredns"
// DNSAutoscalerAddonName is the name of the coredns addon
DNSAutoscalerAddonName = "dns-autoscaler"
// KubeProxyAddonName is the name of the kube-proxy config addon
KubeProxyAddonName = "kube-proxy-daemonset"
// AzureStorageClassesAddonName is the name of the azure storage classes addon
AzureStorageClassesAddonName = "azure-storage-classes"
// AzureNetworkPolicyAddonName is the name of the azure npm daemon set addon
AzureNetworkPolicyAddonName = "azure-npm-daemonset"
// CalicoAddonName is the name of calico daemonset addon
CalicoAddonName = "calico-daemonset"
// CiliumAddonName is the name of cilium daemonset addon
CiliumAddonName = "cilium-daemonset"
// FlannelAddonName is the name of flannel plugin daemonset addon
FlannelAddonName = "flannel-daemonset"
// AADAdminGroupAddonName is the name of the default admin group RBAC addon
AADAdminGroupAddonName = "aad-default-admin-group-rbac"
// AzureCloudProviderAddonName is the name of the azure cloud provider deployment addon
AzureCloudProviderAddonName = "azure-cloud-provider-deployment"
// AzureCNINetworkMonitorAddonName is the name of the azure cni network monitor addon
AzureCNINetworkMonitorAddonName = "azure-cni-networkmonitor"
// AuditPolicyAddonName is the name of the audit policy addon
AuditPolicyAddonName = "audit-policy"
// TillerAddonName is the name of the tiller addon deployment
TillerAddonName = "tiller"
// AADPodIdentityAddonName is the name of the aad-pod-identity addon deployment
AADPodIdentityAddonName = "aad-pod-identity"
// ACIConnectorAddonName is the name of the aci-connector addon deployment
ACIConnectorAddonName = "aci-connector"
// DashboardAddonName is the name of the kubernetes-dashboard addon deployment
DashboardAddonName = "kubernetes-dashboard"
// ClusterAutoscalerAddonName is the name of the autoscaler addon deployment
ClusterAutoscalerAddonName = "cluster-autoscaler"
// BlobfuseFlexVolumeAddonName is the name of the blobfuse flexvolume addon
BlobfuseFlexVolumeAddonName = "blobfuse-flexvolume"
// SMBFlexVolumeAddonName is the name of the smb flexvolume addon
SMBFlexVolumeAddonName = "smb-flexvolume"
// KeyVaultFlexVolumeAddonName is the name of the keyvault flexvolume addon deployment
KeyVaultFlexVolumeAddonName = "keyvault-flexvolume"
// ELBServiceAddonName is the name of the elb service addon deployment
ELBServiceAddonName = "elb-svc"
// DefaultGeneratorCode specifies the source generator of the cluster template.
DefaultGeneratorCode = "aksengine"
// ReschedulerAddonName is the name of the rescheduler addon deployment
ReschedulerAddonName = "rescheduler"
// DefaultHeapsterAddonName is the name of the heapster addon deployment
DefaultHeapsterAddonName = "heapster"
// MetricsServerAddonName is the name of the kubernetes Metrics server addon deployment
MetricsServerAddonName = "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"
// 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 (
// AzureStackSuffix is appended to kubernetes version on Azure Stack instances
AzureStackSuffix = "-azs"
)
const (
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"
)
// cloud-init (i.e. ARM customData) file references
const (
kubernetesMasterNodeCustomDataYaml = "k8s/cloud-init/masternodecustomdata.yml"
kubernetesNodeCustomDataYaml = "k8s/cloud-init/nodecustomdata.yml"
kubernetesJumpboxCustomDataYaml = "k8s/cloud-init/jumpboxcustomdata.yml"
kubernetesCSEMainScript = "k8s/cloud-init/artifacts/cse_main.sh"
kubernetesCSEHelpersScript = "k8s/cloud-init/artifacts/cse_helpers.sh"
kubernetesCSEInstall = "k8s/cloud-init/artifacts/cse_install.sh"
kubernetesCSEConfig = "k8s/cloud-init/artifacts/cse_config.sh"
kubernetesCISScript = "k8s/cloud-init/artifacts/cis.sh"
kubernetesCSECustomCloud = "k8s/cloud-init/artifacts/cse_customcloud.sh"
kubernetesHealthMonitorScript = "k8s/cloud-init/artifacts/health-monitor.sh"
// kubernetesKubeletMonitorSystemdTimer = "k8s/cloud-init/artifacts/kubelet-monitor.timer" // TODO enable
kubernetesKubeletMonitorSystemdService = "k8s/cloud-init/artifacts/kubelet-monitor.service"
kubernetesDockerMonitorSystemdTimer = "k8s/cloud-init/artifacts/docker-monitor.timer"
kubernetesDockerMonitorSystemdService = "k8s/cloud-init/artifacts/docker-monitor.service"
kubernetesMountEtcd = "k8s/cloud-init/artifacts/mountetcd.sh"
kubernetesMasterGenerateProxyCertsScript = "k8s/cloud-init/artifacts/generateproxycerts.sh"
kubernetesCustomSearchDomainsScript = "k8s/cloud-init/artifacts/setup-custom-search-domains.sh"
kubeletSystemdService = "k8s/cloud-init/artifacts/kubelet.service"
kmsSystemdService = "k8s/cloud-init/artifacts/kms.service"
aptPreferences = "k8s/cloud-init/artifacts/apt-preferences"
dockerClearMountPropagationFlags = "k8s/cloud-init/artifacts/docker_clear_mount_propagation_flags.conf"
systemdBPFMount = "k8s/cloud-init/artifacts/sys-fs-bpf.mount"
etcdSystemdService = "k8s/cloud-init/artifacts/etcd.service"
)
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"
armParameters = "k8s/armparameters.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"
kubernetesParams = "k8s/kubernetesparams.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"
)