chetanmeh commented on a change in pull request #535: Document deploying OpenWhisk on kind URL: https://github.com/apache/openwhisk-deploy-kube/pull/535#discussion_r331929576
########## File path: tools/travis/start-kind.sh ########## @@ -0,0 +1,86 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set -x + +# Install kubectl +curl -Lo ./kubectl https://storage.googleapis.com/kubernetes-release/release/v1.16.1/bin/linux/amd64/kubectl +chmod +x kubectl +sudo cp kubectl /usr/local/bin/kubectl + +# Install kind +curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/v0.5.1/kind-linux-amd64 +chmod +x kind +sudo cp kind /usr/local/bin/kind + +# Boot kind +cat > mycluster.yaml <<EOF +kind: Cluster +apiVersion: kind.sigs.k8s.io/v1alpha3 +nodes: +- role: control-plane +- role: worker +- role: worker +EOF + +kind create cluster --config mycluster.yaml --name kind --image kindest/node:${TRAVIS_KUBE_VERSION} --wait 10s Review comment: Should we increase the `wait` time here? Per travis logs the control plane was not ready in 10s. So not sure if it would cause issue for subsequent steps. For now I see all travis jobs passing so may not be an issue ``` +kind create cluster --config mycluster.yaml --name kind --image kindest/node:v1.14.6 --wait 10s Creating cluster "kind" ... â Ensuring node image (kindest/node:v1.14.6) đŧ â Preparing nodes đĻđĻđĻ â Creating kubeadm config đ â Starting control-plane đšī¸ â Installing CNI đ â Installing StorageClass đž â Joining worker nodes đ â Waiting ⤠10s for control-plane = Ready âŗ âĸ WARNING: Timed out waiting for Ready â ī¸ Cluster creation complete. You can now use the cluster with: ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services