Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 5070934

Browse files
authored
fixes azure networkPolicy regression (#1787)
* added azure networkPolicy example and updated e2e * restoring previous cni plugins download url
1 parent 14fbc90 commit 5070934

File tree

3 files changed

+49
-6
lines changed

3 files changed

+49
-6
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"apiVersion": "vlabs",
3+
"properties": {
4+
"orchestratorProfile": {
5+
"orchestratorType": "Kubernetes",
6+
"kubernetesConfig": {
7+
"networkPolicy": "azure"
8+
}
9+
},
10+
"masterProfile": {
11+
"count": 1,
12+
"dnsPrefix": "",
13+
"vmSize": "Standard_D2_v2"
14+
},
15+
"agentPoolProfiles": [
16+
{
17+
"name": "agentpool1",
18+
"count": 3,
19+
"vmSize": "Standard_D2_v2",
20+
"availabilityProfile": "AvailabilitySet"
21+
},
22+
{
23+
"name": "agentpool2",
24+
"count": 3,
25+
"vmSize": "Standard_D2_v2",
26+
"availabilityProfile": "AvailabilitySet"
27+
}
28+
],
29+
"linuxProfile": {
30+
"adminUsername": "azureuser",
31+
"ssh": {
32+
"publicKeys": [
33+
{
34+
"keyData": ""
35+
}
36+
]
37+
}
38+
},
39+
"servicePrincipalProfile": {
40+
"clientId": "",
41+
"secret": ""
42+
}
43+
}
44+
}

pkg/acsengine/defaults.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ import (
1010
)
1111

1212
const (
13-
// CniPluginVer specifies version of CNI plugin, mirrored from
14-
// https://github.com/containernetworking/cni/releases/download/${CNI_PLUGIN_VER}/cni-amd64-${CNI_PLUGIN_VER}.tgz
15-
// to https://acs-mirror.azureedge.net/cni/
16-
CniPluginVer = "v0.6.0"
17-
1813
// AzureCniPluginVer specifies version of Azure CNI plugin, which has been mirrored from
1914
// https://github.com/Azure/azure-container-networking/releases/download/${AZURE_PLUGIN_VER}/azure-vnet-cni-linux-amd64-${AZURE_PLUGIN_VER}.tgz
2015
// to https://acs-mirror.azureedge.net/cni/
@@ -29,7 +24,7 @@ var (
2924
EtcdDownloadURLBase: "https://acs-mirror.azureedge.net/github-coreos",
3025
KubeBinariesSASURLBase: "https://acs-mirror.azureedge.net/wink8s/",
3126
WindowsTelemetryGUID: "fb801154-36b9-41bc-89c2-f4d4f05472b0",
32-
CNIPluginsDownloadURL: "https://acs-mirror.azureedge.net/cni/cni-amd64-" + CniPluginVer + ".tgz",
27+
CNIPluginsDownloadURL: "https://acs-mirror.azureedge.net/cni/cni-plugins-amd64-latest.tgz",
3328
VnetCNILinuxPluginsDownloadURL: "https://acs-mirror.azureedge.net/cni/azure-vnet-cni-linux-amd64-" + AzureCniPluginVer + ".tgz",
3429
VnetCNIWindowsPluginsDownloadURL: "https://acs-mirror.azureedge.net/cni/azure-vnet-cni-windows-amd64-" + AzureCniPluginVer + ".zip",
3530
}

test/acse-conf/acse-regression.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
"cluster_definition": "networkpolicy/kubernetes-calico.json",
7070
"category": "network"
7171
},
72+
{
73+
"cluster_definition": "networkpolicy/kubernetes-azure.json",
74+
"category": "network"
75+
},
7276
{
7377
"cluster_definition": "kubernetes-config/kubernetes-clustersubnet.json",
7478
"category": "network"

0 commit comments

Comments
 (0)