# Automating Kubernetes with GitOps Workshop @dictcp (https://dictcp.men) ## About the workshop Session at HKOSCon 2020: https://hkoscon.org/2020/topics/automating-kubernetes-gitops Slide: https://docs.google.com/presentation/d/1rA6bhCGMydP-NOmFu7fv0zbBSzGvK9GLn63H8dHLP2g ## Hands-on sesesion ### Preparation You need - a GitHub account (to access this material and setup gitops flow) - a working Kubernetes in the hands-on session (to s) - [multipass VM](#local-multipass-VM) (local installation, recommended) - [DigitalOcean VM] (remote installation) #### multipass VM 1. Install multipass on https://multipass.run - support Windows 10 Pro+, Mac OS X, Linux - Mac OS X (with homebrew installed): `brew cask install multipass` - Ubuntu (or any Linux distro with snap installed): `sudo snap install multipass --classic` 2. Start Command prompt / Terminal 3. Execute `multipass launch -d 30G -m 2G --name fluxcd-workshop 18.04` 4. Depends on network condition, you need to wait for 5-20 mins. 5. Execute `multipass shell fluxcd-workshop` to obtain shell in the VMs 6. Execute `curl -sfL https://get.k3s.io | sh -` in the VM 7. Depends on network condition, you need to wait for 5-10 mins. 8. You should have your local Kubernetes cluster installed. To verify, execute `sudo kubectl get nodes`, it should give you something like ``` NAME STATUS ROLES AGE VERSION fluxcd-workshop Ready master 5m53s v1.18.3+k3s1` ```