forked from Azure/acs-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
157 lines (149 loc) · 6.57 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
package acsengine
import (
"github.com/Azure/acs-engine/pkg/api"
)
const (
// DefaultMasterSubnet specifies the default master subnet for DCOS or Swarm
DefaultMasterSubnet = "172.16.0.0/24"
// DefaultFirstConsecutiveStaticIP specifies the static IP address on master 0 for DCOS or Swarm
DefaultFirstConsecutiveStaticIP = "172.16.0.5"
// DefaultSwarmWindowsMasterSubnet specifies the default master subnet for a Swarm Windows cluster
DefaultSwarmWindowsMasterSubnet = "192.168.255.0/24"
// DefaultSwarmWindowsFirstConsecutiveStaticIP specifies the static IP address on master 0 for a Swarm WIndows cluster
DefaultSwarmWindowsFirstConsecutiveStaticIP = "192.168.255.5"
// DefaultKubernetesMasterSubnet specifies the default subnet for masters and agents.
DefaultKubernetesMasterSubnet = "10.240.0.0/16"
// DefaultKubernetesClusterSubnet specifies the default subnet for pods.
DefaultKubernetesClusterSubnet = "10.244.0.0/16"
// DefaultDockerBridgeSubnet specifies the default subnet for the docker bridge network for masters and agents.
DefaultDockerBridgeSubnet = "172.17.0.1/16"
// DefaultFirstConsecutiveKubernetesStaticIP specifies the static IP address on Kubernetes master 0
DefaultFirstConsecutiveKubernetesStaticIP = "10.240.255.5"
// DefaultAgentSubnetTemplate specifies a default agent subnet
DefaultAgentSubnetTemplate = "10.%d.0.0/16"
// DefaultKubernetesSubnet specifies the default subnet used for all masters, agents and pods
// when VNET integration is enabled.
DefaultKubernetesSubnet = "10.240.0.0/12"
// DefaultKubernetesFirstConsecutiveStaticIPOffset specifies the IP address offset of master 0
// when VNET integration is enabled.
DefaultKubernetesFirstConsecutiveStaticIPOffset = 5
// DefaultAgentIPAddressCount is the default number of IP addresses per network interface on agents
DefaultAgentIPAddressCount = 1
// DefaultAgentMultiIPAddressCount is the default number of IP addresses per network interface on agents,
// when VNET integration is enabled. It can be overridden per pool by setting the pool's IPAdddressCount property.
DefaultAgentMultiIPAddressCount = 128
// DefaultKubernetesClusterDomain is the dns suffix used in the cluster (used as a SAN in the PKI generation)
DefaultKubernetesClusterDomain = "cluster.local"
// DefaultInternalLbStaticIPOffset specifies the offset of the internal LoadBalancer's IP
// address relative to the first consecutive Kubernetes static IP
DefaultInternalLbStaticIPOffset = 10
// DefaultNetworkPolicy is disabling network policy enforcement
DefaultNetworkPolicy = "none"
)
const (
// DCOSMaster represents the master node type
DCOSMaster DCOSNodeType = "DCOSMaster"
// DCOSPrivateAgent represents the private agent node type
DCOSPrivateAgent DCOSNodeType = "DCOSPrivateAgent"
// DCOSPublicAgent represents the public agent node type
DCOSPublicAgent DCOSNodeType = "DCOSPublicAgent"
)
// KubeImages represents Docker images used for Kubernetes components based on Kubernetes version
var KubeImages = map[api.OrchestratorVersion]map[string]string{
api.Kubernetes166: {
"hyperkube": "hyperkube-amd64:v1.6.6",
"dashboard": "kubernetes-dashboard-amd64:v1.6.1",
"exechealthz": "exechealthz-amd64:1.2",
"addonresizer": "addon-resizer:1.7",
"heapster": "heapster:v1.3.0",
"dns": "k8s-dns-kube-dns-amd64:1.14.4",
"addonmanager": "kube-addon-manager-amd64:v6.4-beta.2",
"dnsmasq": "k8s-dns-dnsmasq-amd64:1.13.0",
"pause": "pause-amd64:3.0",
"windowszip": "v1.6.6intwinnat.zip",
"nodestatusfreq": "10s",
"nodegraceperiod": "40s",
"podeviction": "5m0s",
"routeperiod": "10s",
"backoff": "false",
"backoffduration": "5",
"backoffexponent": "1.5",
"backoffretries": "6",
"backoffjitter": "1",
"ratelimit": "false",
"ratelimitqps": "1",
"ratelimitbucket": "5",
},
api.Kubernetes162: {
"hyperkube": "hyperkube-amd64:v1.6.2",
"dashboard": "kubernetes-dashboard-amd64:v1.6.0",
"exechealthz": "exechealthz-amd64:1.2",
"addonresizer": "addon-resizer:1.6",
"heapster": "heapster:v1.2.0",
"dns": "k8s-dns-kube-dns-amd64:1.13.0",
"addonmanager": "kube-addon-manager-amd64:v6.4",
"dnsmasq": "k8s-dns-dnsmasq-amd64:1.13.0",
"pause": "pause-amd64:3.0",
"windowszip": "v1.6.2intwinnat.zip",
"nodestatusfreq": "10s",
"nodegraceperiod": "40s",
"podeviction": "5m0s",
"routeperiod": "10s",
},
api.Kubernetes160: {
"hyperkube": "hyperkube-amd64:v1.6.0",
"dashboard": "kubernetes-dashboard-amd64:v1.6.0",
"exechealthz": "exechealthz-amd64:1.2",
"addonresizer": "addon-resizer:1.6",
"heapster": "heapster:v1.2.0",
"dns": "k8s-dns-kube-dns-amd64:1.13.0",
"addonmanager": "kube-addon-manager-amd64:v6.4",
"dnsmasq": "k8s-dns-dnsmasq-amd64:1.13.0",
"pause": "pause-amd64:3.0",
"windowszip": "v1.6.0intwinnat.zip",
"nodestatusfreq": "10s",
"nodegraceperiod": "40s",
"podeviction": "5m0s",
"routeperiod": "10s",
},
api.Kubernetes157: {
"hyperkube": "hyperkube-amd64:v1.5.7",
"dashboard": "kubernetes-dashboard-amd64:v1.5.1",
"exechealthz": "exechealthz-amd64:1.2",
"addonresizer": "addon-resizer:1.6",
"heapster": "heapster:v1.2.0",
"dns": "kubedns-amd64:1.7",
"addonmanager": "kube-addon-manager-amd64:v6.2",
"dnsmasq": "kube-dnsmasq-amd64:1.3",
"pause": "pause-amd64:3.0",
"windowszip": "v1.5.7intwinnat.zip",
"nodestatusfreq": "10s",
"nodegraceperiod": "40s",
"podeviction": "5m0s",
"routeperiod": "10s",
},
api.Kubernetes153: {
"hyperkube": "hyperkube-amd64:v1.5.3",
"dashboard": "kubernetes-dashboard-amd64:v1.5.1",
"exechealthz": "exechealthz-amd64:1.2",
"addonresizer": "addon-resizer:1.6",
"heapster": "heapster:v1.2.0",
"dns": "kubedns-amd64:1.7",
"addonmanager": "kube-addon-manager-amd64:v6.2",
"dnsmasq": "kube-dnsmasq-amd64:1.3",
"pause": "pause-amd64:3.0",
"windowszip": "v1.5.3intwinnat.zip",
"nodestatusfreq": "10s",
"nodegraceperiod": "40s",
"podeviction": "5m0s",
"routeperiod": "10s",
},
}
const (
//MsecndDCOSBootstrapDownloadURL Azure CDN to download DCOS1.7.3
MsecndDCOSBootstrapDownloadURL = "https://az837203.vo.msecnd.net/dcos/%s/bootstrap/%s.bootstrap.tar.xz"
//AzureEdgeDCOSBootstrapDownloadURL is the azure edge CDN download url
AzureEdgeDCOSBootstrapDownloadURL = "https://dcosio.azureedge.net/dcos/%s/bootstrap/%s.bootstrap.tar.xz"
//AzureChinaCloudDCOSBootstrapDownloadURL is the China specific DCOS package download url.
AzureChinaCloudDCOSBootstrapDownloadURL = "https://acsengine.blob.core.chinacloudapi.cn/dcos/%s.bootstrap.tar.xz"
)