Skip to content

Commit

Permalink
Trying to create nodegroup and deploy pods.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnapolitan committed Jun 9, 2020
1 parent bc04604 commit e79b32f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
25 changes: 25 additions & 0 deletions deploy-20-pods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: deploy-20-pods
spec:
replicas: 20
selector:
matchLabels:
app: deploy-20-pods
template:
metadata:
name: test-pod-20
labels:
app: deploy-20-pods
tier: backend
track: stable
spec:
containers:
- name: hello
image: "gcr.io/google-samples/hello-go-gke:1.0"
ports:
- name: http
containerPort: 80
nodeSelector:
nodetomatch: thisone
12 changes: 12 additions & 0 deletions scripts/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ if [[ "$PROVISION" == true ]]; then
__cluster_created=1
fi

echo "TESTING trying to create nodegroup"
$TESTER_PATH eks create-nodegroup --cluster_name $CLUSTER_NAME --name single-node --instance_types m5.xlarge --scaling-config minSize=1,maxSize=1,desiredSize=1

echo "TESTING downloading eksctl"
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv -v /tmp/eksctl /usr/local/bin

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

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

Expand Down

0 comments on commit e79b32f

Please sign in to comment.