How do I automate deployments with Kubernetes?
As of you are using Rancher the easiest way would be to register custom Rancher Catalog and create an item for each stack/service you want to deploy.



Rancher Catalog is a Git repository with the following structure



Then in Jenkins you can create a job that would call Rancher REST API to deploy/update stack/service. 



In its turn Rancher would pull latest version of the Docker image for this service and deploy it corresponding to Docker Compose file from the catalog.



Pros:


generic approach that might be used for almost every app
Jenkins itself might be deployed into Rancher environment, agents might be created in Kubernetes cluster


Cons:


development team should follow solid release strategy to be able to use generic builds
storage drivers are still under the question in alpha release of Rancher 2.0