Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.1 KB

DEPLOY.md

File metadata and controls

51 lines (39 loc) · 1.1 KB

Deploying Slipway

REMINDER THIS IS NOT READY FOR PRODUCTION

To deploy Slipway you will need to have a ssh key on your Github account, even if you are using public repositories.

First we will make a temp directory to work from.

tmp_dir=$(mktemp -d)
cd $tmp_dir

Generate a ssh key

ssh-keygen -f id_rsa

Move your public ssh key to your Github account.

Now we will setup kustomize to generate a Secret from your key, and load it into the controller

First create the namespace.

kubectl create ns slipway-system
cat <<'EOF' > kustomization.yaml
secretGenerator:
- name: slipwaykey
  namespace: slipway-system
  files:
  - id_rsa
generatorOptions:
  disableNameSuffixHash: true
EOF

Now in the same folder you will run:

kubectl apply -k .
kubectl apply -f https://github.com/slipway-gitops/slipway/releases/latest/download/fulldeploy.yaml

If you want to try an example gitrepo you can try out the examples repo