weaveworks / wks-quickstart-firekube

Example configuration to create Kubernetes clusters powered by ignite and gitops
342 stars 370 forks source link

Updates to script required to make it work #74

Open dimitropoulos opened 4 years ago

dimitropoulos commented 4 years ago

@jrryjcksn @palemtnrider here was the sequence of actions necessary to get the quickstart running:

# 1. fork wks-quickstart-firekube, either with hub or in the GitHub UI

GITHUB_ORG=dimitropoulos
REPO_NAME=wks-quickstart-firekube
DEPLOY_KEY_NAME=$REPO_NAME-deploykey

git clone http://github.com/$GITHUB_ORG/$REPO_NAME
cd $REPO_NAME

sudo rm $(which wk)
sudo rm $(which ignite)
sudo rm $(which footloose)
sudo rm $(which wksctl)

echo "$DEPLOY_KEY_NAME*" > ./.gitignore
ssh-keygen -N "" -q -f $DEPLOY_KEY_NAME

# 1. remove the `sshKeyPath` line from `cluster.yaml`

hub api \
--method POST \
/repos/$GITHUB_ORG/$REPO_NAME/keys \
--field title=$DEPLOY_KEY_NAME \
--field key="$(cat ~/src/github.com/$GITHUB_ORG/$REPO_NAME/$DEPLOY_KEY_NAME.pub)" \
--field readOnly=false

# 1. update the image
# ```diff
# containers:
# - name: controller
# image: docker.io/wksctl/controller:master-8e831136
# ```

./setup.sh

export KUBECONFIG=/home/dimitri/.wks/weavek8sops/example/kubeconfig

We can spin off issues from here, e.g. updating the image.