Skip to content

Commit

Permalink
Try to create new nodegroup and apply deployment to it.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnapolitan committed Jun 12, 2020
1 parent abd9015 commit b0d3228
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion deploy-20-pods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ spec:
ports:
- name: http
containerPort: 80
imagePullPolicy: IfNotPresent
nodeSelector:
nodetomatch: thisone
eks.amazonaws.com/nodegroup: two-nodes
2 changes: 1 addition & 1 deletion scripts/lib/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function up-test-cluster() {
AWS_K8S_TESTER_EKS_ADD_ON_MANAGED_NODE_GROUPS_ENABLE=true \
AWS_K8S_TESTER_EKS_ADD_ON_MANAGED_NODE_GROUPS_ROLE_CREATE=$ROLE_CREATE \
AWS_K8S_TESTER_EKS_ADD_ON_MANAGED_NODE_GROUPS_ROLE_ARN=$ROLE_ARN \
AWS_K8S_TESTER_EKS_ADD_ON_MANAGED_NODE_GROUPS_MNGS='{"GetRef.Name-mng-for-cni":{"name":"GetRef.Name-mng-for-cni","remote-access-user-name":"ec2-user","tags":{"group":"amazon-vpc-cni-k8s"},"release-version":"","ami-type":"AL2_x86_64","asg-min-size":3,"asg-max-size":3,"asg-desired-capacity":3,"instance-types":["c5.xlarge"],"volume-size":40}}' \
AWS_K8S_TESTER_EKS_ADD_ON_MANAGED_NODE_GROUPS_MNGS='{"GetRef.Name-mng-for-cni":{"name":"GetRef.Name-mng-for-cni","remote-access-user-name":"ec2-user","tags":{"group":"amazon-vpc-cni-k8s"},"release-version":"","ami-type":"AL2_x86_64","asg-min-size":3,"asg-max-size":3,"asg-desired-capacity":3,"instance-types":["c5.xlarge"],"volume-size":40}}, {"two-nodes":{"name":"two-nodes","remote-access-user-name":"ec2-user","tags":{"group":"amazon-vpc-cni-k8s"},"release-version":"","ami-type":"AL2_x86_64","asg-min-size":2,"asg-max-size":2,"asg-desired-capacity":2,"instance-types":["m5.xlarge"],"volume-size":40}}' \
AWS_K8S_TESTER_EKS_ADD_ON_MANAGED_NODE_GROUPS_FETCH_LOGS=true \
AWS_K8S_TESTER_EKS_ADD_ON_NLB_HELLO_WORLD_ENABLE=true \
AWS_K8S_TESTER_EKS_ADD_ON_ALB_2048_ENABLE=true \
Expand Down
6 changes: 2 additions & 4 deletions scripts/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,11 @@ sudo mv -v /tmp/eksctl /usr/local/bin
aws sts get-caller-identity

eksctl get clusters
eksctl get ng --cluster $CLUSTER_NAME
eksctl create ng --cluster $CLUSTER_NAME -n single-node -t m5.xlarge -N 1 -m 1 -M 1 --node-labels nodetomatch=thisone

echo "TESTING tring to put 20 pods on new nodegroup"
eksctl apply -f deploy-20-pods.yaml
kubectl apply -f deploy-20-pods.yaml
sleep 60
eksctl get pods
kubectl get pods

echo "Using $BASE_CONFIG_PATH as a template"
cp "$BASE_CONFIG_PATH" "$TEST_CONFIG_PATH"
Expand Down

0 comments on commit b0d3228

Please sign in to comment.