Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jadarsie committed Apr 21, 2020
1 parent 7c7849a commit 0d8a879
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 7 deletions.
32 changes: 29 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
# e2e-ci-poc

## Inputs

### Cloud Details

Compose an `.env` file with your cloud details. Example [sample.env](env/sample.env) lists the required variables.

### Test cluster

Compose a `.json` file with your cluster definition and variables overrides. Variables defaults are [here](env/defaults.env). Checkout [sample.json](test_clusters/sample.json) shows how to override default values.

## Run locally

Requires `docker`, `azure-cli`, `git`, `bash` & `jq`.

```bash
make run-local INPUT=env/sample.env
```

If you do not have `make`

```bash
./scripts/run-local.sh env/sample.env
```

## Run on DVM

Create a Linux VM and make sure your input `.env` sets variable `DVM_HOST`.

```bash
make setup-dvm run-dvm results INPUT=env/sample.env
```

If you do not have `make`

```bash
make setup INPUT=env/sample.env
make run INPUT=env/sample.env
make results INPUT=env/sample.env
./scripts/upload.sh env/sample.env
./scripts/run-dvm.sh env/sample.env
./scripts/results.sh env/sample.env
```
9 changes: 6 additions & 3 deletions env/sample.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# CLOUD DETAILS
export IDENTITY_SYSTEM=""
export IDENTITY_SYSTEM="" # azure_ad | adfs
export CLOUD_FQDN=""
export CLOUD_AZCLI_NAME=""
export CLOUD_AZCLI_NAME="" # azure-cli cloud registration name
export AZURE_LOCATION=""
export AZURE_CLIENT_ID=""
export AZURE_CLIENT_SECRET=""
export AZURE_SUBSCRIPTION_ID=""
export AZURE_TENANT_ID=""
export SSH_PRIVATE_KEY=""
export SSH_PRIVATE_KEY="" # path to private key
export DVM_HOST=""

# TEST
export CLUSTER_DEFINITION="test_clusters/sample.json"
2 changes: 1 addition & 1 deletion scripts/setup-dvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -o nounset
set -o pipefail
set -o xtrace

git clone https://github.com/jadarsie/e2e-ci-poc -b one-time
git clone https://github.com/jadarsie/e2e-ci-poc -b master

REPO_ROOT=e2e-ci-poc
source "${REPO_ROOT}/hack/ensure-packages.sh"
Expand Down
56 changes: 56 additions & 0 deletions test_clusters/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"env": {
"UPGRADE_CLUSTER": true,
"SKIP_TESTS": true
},
"apiModel": {
"apiVersion": "vlabs",
"location": "",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.14",
"orchestratorVersion": "1.14.7",
"kubernetesConfig": {
"networkPlugin": "kubenet",
"useInstanceMetadata": false
}
},
"masterProfile": {
"count": 3,
"dnsPrefix": "",
"vmSize": "Standard_D2_v2",
"distro": "aks-ubuntu-16.04"
},
"agentPoolProfiles": [
{
"name": "linuxpool",
"count": 3,
"vmSize": "Standard_D2_v2",
"availabilityProfile": "AvailabilitySet",
"distro": "aks-ubuntu-16.04",
"acceleratedNetworkingEnabled": false
}
],
"linuxProfile": {
"adminUsername": "azureuser",
"ssh": {
"publicKeys": [
{
"keyData": ""
}
]
}
},
"servicePrincipalProfile": {
"clientId": "",
"secret": ""
},
"customCloudProfile": {
"identitySystem": "",
"authenticationMethod": "client_secret",
"portalURL": ""
}
}
}
}

0 comments on commit 0d8a879

Please sign in to comment.