Skip to content

Commit

Permalink
Conformance results for 1.26/aks-engine-azurestack (#2706)
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Waggoner <34756611+taylorwaggoner@users.noreply.github.com>
  • Loading branch information
christinalau0 committed Aug 4, 2023
1 parent f2568be commit 4562127
Show file tree
Hide file tree
Showing 4 changed files with 58,510 additions and 0 deletions.
10 changes: 10 additions & 0 deletions v1.26/aks-engine-azurestack/PRODUCT.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
vendor: Microsoft
name: AKS Engine for Azure Stack
version: v0.77.0
website_url: https://docs.microsoft.com/en-us/azure-stack/user/azure-stack-kubernetes-aks-engine-overview?view=azs-2206
repo_url: https://github.com/Azure/aks-engine-azurestack
documentation_url: https://github.com/Azure/aks-engine-azurestack/blob/master/docs/topics/azure-stack.md
product_logo_url: https://landscape.cncf.io/logos/azure-aks-engine.svg
contact_email_address: azsaks@microsoft.com
type: hosted platform
description: AKS Engine provides convenient tooling to quickly bootstrap Kubernetes clusters on Azure Stack. By leveraging ARM (Azure Resource Manager), AKS Engine helps create, destroy and maintain clusters provisioned with basic IaaS resources in Azure Stack.
110 changes: 110 additions & 0 deletions v1.26/aks-engine-azurestack/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Kubernetes conformance tests on AKS-Engine

## Setup AKS-Engine cluster

Download AKS Engine.

```bash
VERSION=v0.77.0
curl -L -o aks-engine-azurestack-darwin.tar.gz https://github.com/Azure/aks-engine-azurestack/releases/download/${VERSION}/aks-engine-azurestack-${VERSION}-darwin-amd64.tar.gz
mkdir ./aks-engine-azurestack; tar xzf aks-engine-azurestack-darwin.tar.gz -C ./aks-engine-azurestack
```

Create a file called kubernetes1.26.json, the contents of the file should be the following cluster definition template:

```json
{
"apiVersion": "vlabs",
"location": "",
"properties": {
"orchestratorProfile": {
"orchestratorRelease": "1.26",
"kubernetesConfig": {
"useInstanceMetadata": false,
"useCloudControllerManager": true,
"networkPlugin": "kubenet"
}
},
"customCloudProfile": {
"portalURL": "",
"identitySystem": ""
},
"masterProfile": {
"dnsPrefix": "",
"distro": "ubuntu-20.04",
"count": 3,
"vmSize": "Standard_D2_v2"
},
"agentPoolProfiles": [
{
"name": "linuxpool",
"count": 3,
"vmSize": "Standard_D2_v2",
"distro": "ubuntu-20.04",
"availabilityProfile": "AvailabilitySet",
"AcceleratedNetworkingEnabled": false
}
],
"linuxProfile": {
"adminUsername": "azureuser",
"ssh": {
"publicKeys": [
{
"keyData": ""
}
]
}
},
"servicePrincipalProfile": {
"clientId": "",
"secret": ""
}
}
}
```

Create a service principal (client) and assign the Contributor role to it in the target subscription. Set the following variables:

```bash
export AZURE_LOCATION=""
export AZURE_CLIENT_ID=""
export AZURE_CLIENT_SECRET=""
export AZURE_SUBSCRIPTION_ID=""
export IDENTITY_SYSTEM="" # azure_ad or adfs
export SSH_PUB_KEY="$(cat ~/.ssh/id_rsa.pub)"
export PORTAL_URL=""
```

Execute `aks-engine-azurestack deploy`

```bash
./aks-engine-azurestack/aks-engine-azurestack-${VERSION}-darwin-amd64/aks-engine-azurestack deploy \
--location ${AZURE_LOCATION} \
--api-model kubernetes1.26.json \
--resource-group conformance \
--client-id ${AZURE_CLIENT_ID} \
--client-secret ${AZURE_CLIENT_SECRET} \
--subscription-id ${AZURE_SUBSCRIPTION_ID} \
--dns-prefix conformance \
--identity-system "$IDENTITY_SYSTEM" \
--set linuxProfile.ssh.publicKeys[0].keyData="$SSH_PUB_KEY" \
--set servicePrincipalProfile.clientId="$AZURE_CLIENT_ID" \
--set servicePrincipalProfile.secret="$AZURE_CLIENT_SECRET" \
--set customCloudProfile.portalURL="$PORTAL_URL" \
--set customCloudProfile.identitySystem="$IDENTITY_SYSTEM" \
--azure-env AzureStackCloud
```

## Run conformance tests

Once the AKS-Engine cluster has been provisioned, connect to the cluster and commence the conformance test by following these steps:

```bash
VERSION=0.56.2
curl -L -o sonobuoy-darwin.tar.gz https://github.com/vmware-tanzu/sonobuoy/releases/download/v${VERSION}/sonobuoy_${VERSION}_darwin_amd64.tar.gz
mkdir ./sonobuoy; tar xzf sonobuoy-darwin.tar.gz -C ./sonobuoy

export KUBECONFIG=_output/conformance/kubeconfig/kubeconfig.${AZURE_LOCATION}.json
./sonobuoy/sonobuoy run --mode=certified-conformance --wait
./sonobuoy/sonobuoy retrieve ./results
```
Loading

0 comments on commit 4562127

Please sign in to comment.