Skip to content

Instantly share code, notes, and snippets.

@joaopgrassi
Last active September 6, 2021 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaopgrassi/46e54be45ee6dd4e0103b1c35a312866 to your computer and use it in GitHub Desktop.
Save joaopgrassi/46e54be45ee6dd4e0103b1c35a312866 to your computer and use it in GitHub Desktop.
Keptn Windows development setup

Setting up keptn on Windows with WSL2 + basic demo podtato-head/podtatoserver

Configuring Windows/WLS/Docker

The next steps are to be executed only once, when first setting up everything.

  1. Install WSL2 with Ubuntu 20 https://docs.microsoft.com/en-us/windows/wsl/install-win10

  2. Install Docker desktop and enable "Use the WSL 2 based engine" (if already installed, update and check the option Use WSL 2 is marked in settings)

  3. Execute this PS script as ADMIN on Powershell https://gist.github.com/joaopgrassi/a46729767ca912fa465dc34d83ec71b7 We need to open Firewall ports to WSL2 in order to access services running in the k8s cluster from Windows. The problem is that WSL2 gets a new IP everytime you restart your PC, so it need to open it again every time you restart the PC. This script does all of it for you. Make sure to create a scheduled task on Windows on log-in to do it automatically. For more details and the source of the script, see here microsoft/WSL#4150 (comment)

  4. Install a nice terminal, like the Windows Terminal

Installing Keptn

The next commands must be executed inside the Ubuntu shell

  1. Follow the steps https://keptn.sh/docs/quickstart/ until step 4 (configure Istio)

  2. Install Helm (only the first time..) https://helm.sh/docs/intro/install/

  3. Back again at Keptn getting started, execute step 5 - "Create a demo project with multi-stage pipeline + SLO-based quality gates"

  4. After all is done, you can browse Keptn Bridge on http://127.0.0.1.nip.io:8082/bridge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment