Integrate with Gitlab CI/CD =========================== .. _gitlab_cicd: https://about.gitlab.com/blog/2017/09/21/how-to-create-ci-cd-pipeline-with-autodeploy-to-kubernetes-using-gitlab-and-helm/ .. _gitlab_k8s: https://kubernetes.io/docs/concepts/containers/images/#updating-images Update deployment ----------------- Once the image is ready it can be deployed to kubernetes using kubectl (this is as with any kubernetes cluster, i.e. not specific to omega|ml): .. code:: bash $ kubectl set image deployment/ = --record As an alternative you could also update your deployment.yml, setting the image version there. Then you can run .. code:: bash $ kubectl apply -f deployment.yaml Using the same image tag for testing ------------------------------------ Note the above only works if every newly built image is tagged with a new version. Otherwise kubernetes will not update the image as it thinks it already has the latest version. For testing it is more convenient to use the :code:`:latest` image tag, and set the :code:`pullPolicy: Always` as described in gitlab_k8s_. Then you can simply delete the pod(s). Since the deployment requires at least one pod, kubernetes will create a new pod and pull the image again (that’s what Always means): .. code:: bash $ kubectl delete pods -l name=