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: GitLab-examples / kubernetes-deploy · GitLab. 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.