Setting up Kubernetes deployment

Hey, folks. I’m looking at trying to set up my GitLab CI script to do an automated Kubernetes deployment. The most coherent thing I’ve found is this repo: https://gitlab.com/gitlab-examples/kubernetes-deploy. It didn’t make a lot of sense to me, though, what actually triggers the build scripts. Is this the right place to start? Thanks.