CODEFRESH.IO DOCUMENTATION

Codefresh is a Docker-native CI/CD platform.
Instantly build, test and deploy Docker images.

GET STARTED   GKE BETA

Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

Deploy to GKE - BETA

Setup your Codefresh - GKE integration

On your Account settings, go to Integration tab and Enable your integration with Google cloud.
You will be redirected to google and will be asked to enter your google account credentials.

If you would like to switch google account, you can remove this integration from here.

Add a Kubernetes cluster

In the google cloud integration window, you will be able to add your K8 clusters for view and deployment. This will be done by clicking the “Add cluster” button and selecting desired project and cluster.

Explore your services on Kubernetes Cluster

After signing in your Google Cloud account, a Kubernetes Tab will be added to your Left pane. Clicking on Kubernetes icon will take you to your services dashboard.

Access your clusters

Watch the services currently running on your clusters. You can use the filter in order to refine your view according to preferred clusters / namespaces.

You will be able to see the following parameters for each service:

  • Name
  • IP
  • Cluster
  • Namespace
  • Selector

Work with your services

In this view, you will be able to perform the following actions

  • Add new service
  • Edit/Update existing services
  • Remove service

Deploy new service

Add service

To add a service, click the "Add Service" button.
Insert basic definitions for your new Service

Select your image

You can add images built in Codefresh which were pushed to Codefresh registry, or provide a name for Docker image that will be pulled from external Docker registry.

Use the following steps in order to add Image and pull secrets from Codefresh Registry:

  • Specify the image name in the format r.cfcr.io/<ACCOUNT>/<IMAGE>:<TAG>
  • Provide image pull secret - this shall be done for each namespace

Set Environment variables

Set required resources for your service (optional) - CPU, Memory

To add service using K8 yaml file:

Toggle the Deployment option button to the “Advanced” position (different naming in composition, not consistent)
Copy and paste your existing K8 yaml files:

  • Service
  • Deployment

Congratulations! Your service is now deployed to your K8 cluster!

You can update it from your Kubernetes services window - Just hit the "edit" icon and update your service using the same steps as in "Add new service" section.

Automate your deployment

After your service is deployed to your Kubernetes cluster, you can automate image deployment using Codefresh pipelines.

Just add the following to your pipeline definition:

  1. In build step - define Docker registry to push
  1. Select Kubernetes (Beta) option in the deployment step drop down, and define desired cluster, namespace, service and branches for deployment.

Adding step to Codefresh yaml

See detailed explanation here

Example:

Click here to see an example of deploying our Demochat app to Kubernetes cluster.

Beta disclaimer

Please note that this is a beta version of the Codefresh GKE integration which is still undergoing final testing before its official release. The website, its software and all content found on it are provided on an “as is” and “as available” basis. Codefresh does not give any warranties, whether express or implied, as to the suitability or usability of the website, its software or any of its content.

Codefresh will not be liable for any loss, whether such loss is direct, indirect, special or consequential, suffered by any party as a result of their use of the Codefresh website, its software or content.

Should you encounter any bugs, glitches, lack of functionality or other problems on the website, please let us know immediately so we can rectify these accordingly. please contact us on email: support@codefresh.io

Your help in this regard is greatly appreciated.

Deploy to GKE - BETA