Skip to content

Commit

Permalink
Update AKS conformance script (#2141)
Browse files Browse the repository at this point in the history
The default K8s version is now v1.19.9, and Nodes default to containerd
as the container runtime. As a result we cannot use docker to load the
Antrea image anymore.
  • Loading branch information
antoninbas authored Apr 30, 2021
1 parent e100546 commit e22b52d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ should be deleted. This ensures that all tests are run on a clean testbed.

| K8s Version | Node Type | Node OS | Status |
| :------------: | :-----------------: | :-------------: | :------: |
| 1.18.10 | Standard_DS2_v2 | Ubuntu 16.04 |[![Build Status](http://jenkins.antrea-ci.rocks/buildStatus/icon?job=cloud-antrea-aks-conformance-net-policy)](http://jenkins.antrea-ci.rocks/view/cloud/job/cloud-antrea-aks-conformance-net-policy/)|
| 1.19.9 | Standard_DS2_v2 | Ubuntu 18.04 |[![Build Status](http://jenkins.antrea-ci.rocks/buildStatus/icon?job=cloud-antrea-aks-conformance-net-policy)](http://jenkins.antrea-ci.rocks/view/cloud/job/cloud-antrea-aks-conformance-net-policy/)|

* [daily-elk-flow-collector-validate](https://jenkins.antrea-ci.rocks/job/antrea-daily-elk-flow-collector-validate-for-period/):
[![Build Status](http://jenkins.antrea-ci.rocks/buildStatus/icon?job=antrea-daily-elk-flow-collector-validate-for-period)](http://jenkins.antrea-ci.rocks/view/cloud/job/antrea-daily-elk-flow-collector-validate-for-period/)
Expand Down
4 changes: 2 additions & 2 deletions ci/test-conformance-aks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN_CLEANUP_ONLY=false
KUBECONFIG_PATH="$HOME/jenkins/out/aks"
TEST_FAILURE=false
MODE="report"
KUBE_CONFORMANCE_IMAGE_VERSION=v1.18.5
KUBE_CONFORMANCE_IMAGE_VERSION=v1.19.4

_usage="Usage: $0 [--cluster-name <AKSClusterNameToUse>] [--kubeconfig <KubeconfigSavePath>] [--k8s-version <ClusterVersion>]\
[--azure-app-id <AppID>] [--azure-tenant-id <TenantID>] [--azure-password <Password>] \
Expand Down Expand Up @@ -226,7 +226,7 @@ function deliver_antrea_to_aks() {

for IP in ${NODE_IPS}; do
scp -o StrictHostKeyChecking=no -i ${SSH_PRIVATE_KEY_PATH} ${antrea_image}.tar azureuser@${IP}:~
ssh -o StrictHostKeyChecking=no -i ${SSH_PRIVATE_KEY_PATH} -n azureuser@${IP} "sudo docker load -i ~/${antrea_image}.tar ; sudo docker tag ${DOCKER_IMG_NAME}:${DOCKER_IMG_VERSION} ${DOCKER_IMG_NAME}:latest"
ssh -o StrictHostKeyChecking=no -i ${SSH_PRIVATE_KEY_PATH} -n azureuser@${IP} "sudo ctr -n=k8s.io images import ~/${antrea_image}.tar ; sudo ctr -n=k8s.io images tag ${DOCKER_IMG_NAME}:${DOCKER_IMG_VERSION} ${DOCKER_IMG_NAME}:latest"
done
rm ${antrea_image}.tar

Expand Down
1 change: 1 addition & 0 deletions docs/kubernetes-installers.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ based on any one of these K8s versions should work with that Antrea version.
| - | EKS, K8s v1.17.12 | AWS | AmazonLinux2, docker | t3.medium | | Antrea CI |
| - | GKE, K8s v1.19.8-gke.1600 | GCP | Ubuntu 18.04, docker | e2-standard-4 | | Antrea CI |
| - | AKS, K8s v1.18.14 | Azure | Ubuntu 18.04, moby | Standard_DS2_v2 | | Antrea CI |
| - | AKS, K8s v1.19.9 | Azure | Ubuntu 18.04, containerd | Standard_DS2_v2 | | Antrea CI |
| - | Kind v0.9.0, K8s v1.19.1 | N/A | Ubuntu 20.10, containerd://1.4.0 | N/A | | [Requirements for using Antrea on Kind](kind.md) |

## Installer-specific instructions
Expand Down

0 comments on commit e22b52d

Please sign in to comment.