-
Notifications
You must be signed in to change notification settings - Fork 260
Add Cyclonus Windows job #1363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Cyclonus Windows job #1363
Conversation
| set -xv | ||
|
|
||
| cyclonusProfile="./install-cyclonus.yaml" | ||
| if [ -z "$1" == "windows"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the -z to check $1 is empty before comparison?
3dae0f7 to
0f588a8
Compare
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
fe28fdd to
d13bcd2
Compare
aef57e4 to
1a5135e
Compare
| --name awin22 \ | ||
| --os-type Windows \ | ||
| --os-sku Windows2022 \ | ||
| --node-count 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node count --> 3?
| az aks get-credentials -g $CLUSTER_NAME -n $CLUSTER_NAME --overwrite-existing | ||
| - task: AzureCLI@2 | ||
| displayName: "Deploy NPM to Test Cluster" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
task above has same name
| ./kubectl --kubeconfig=./kubeconfig set image daemonset/azure-npm -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:linux-amd64-$(TAG) | ||
| # swap NPM profile with one specified as parameter | ||
| ./kubectl --kubeconfig=./kubeconfig apply -f https://raw.githubusercontent.com/Azure/azure-container-networking/master/npm/profiles/$(PROFILE).yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for ws22, having PROFILE as "v2-default-ws22" has unintended effect of failing to apply a configmap here
| ./kubectl --kubeconfig=./kubeconfig set image daemonset/azure-npm -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:windows-amd64-$(TAG) | ||
| # swap NPM profile with one specified as parameter | ||
| ./kubectl --kubeconfig=./kubeconfig apply -f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not applying any file here. Should probably do the following steps:
- apply both linux and windows yaml
- swap profile
- restart both win and linux ds
| chmod +x kubectl | ||
| # deploy azure-npm | ||
| ./kubectl --kubeconfig=./kubeconfig apply -f https://raw.githubusercontent.com/Azure/azure-container-networking/master/npm/azure-npm.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add windows yaml too in case it's the ws22 matrix strat
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
| export CLUSTER_NAME=$(RESOURCE_GROUP)-$(PROFILE) | ||
| echo "Creating resource group named $CLUSTER_NAME" | ||
| az group create --name $CLUSTER_NAME -l $(LOCATION) -o table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is location ever set?
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
9a0f720 to
20cf2c5
Compare
6a4c64d to
4d311ca
Compare
4d311ca to
c51063c
Compare
9a2ece7 to
a241da5
Compare
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Reason for Change:
Need to run cyclonus on Windows pipelines
Issue Fixed:
Requirements:
Notes: