Google Container Engine (GKE) - Kubernetes
Google Container Engine is a powerful cluster manager and orchestration system for running your Docker containers built on Kubernetes. Deploying to GKE will follow the standard Kubernetes steps outlined below.
Deploy to Kubernetes on Google Container Engine (GKE)
The deployment script makes the following assumptions about your application and Kubernetes configuration:
- The application is deployed using the Kubernetes deployment API (versus the the replication controller directly). For more information read http://kubernetes.io/docs/user-guide/deployments/
- The tested codebase has a yaml file that describes the Kubernetes deployment parameters and configuration of your application.
- At the moment, only the basic username/pass authentication is supported.
Try this example
Just head over to the example repository in Github.
deployment.yml.tmpl files. Change
$docker-image with the name of the docker image you would like to create.
Set up the following environment variables to specify the Kubernetes cluster we’ll use to deploy the project.
||The user for the Kubernetes cluster. Mandatory.|
||The password for the Kubernetes cluster. Mandatory.|
||The server (HTTPS endpoint) of the Kubernetes cluster’s API. Mandatory.|
||The name of the file with environment variables. Note, this file should be located in the folder ‘environments’ that is located by the same path like deployment.yml.tmpl. For this example use filename ‘staging’.|
- Run the build in Codefresh.io
- Check that the deployment succeeded with kubectl: