Overview

Tutorial

Why install cf-for-k8s?

In our experience, we’ve observed that small teams and startups often don’t pick up Kubernetes because of two reasons — one is the steep learning curves. Second, for fear of introducing complexity in the workflow of their developers.

Prerequisites

There are some prerequisites to installing cf-for-k8s. You will need a handful of CLI tools to help with various parts of the installation. Let’s quickly get into each of them.

Creating a Kubernetes cluster

Along with this handful of tools, we need a Kubernetes cluster on which to deploy cf-for-k8s. Here are the steps I took with Google Cloud to create a GKE cluster. I am using three nodes with 4vCPU each and 16 GB of RAM.

Using your CF instance

The ability to connect with the Cloud Foundry API endpoint is the best validation of the installation. You can do this by setting the endpoint of your local cf CLI as follows

Installing cf-for-k8s

Now we get into the actual installation process. Cloning the repository Clone the cf-for-k8s repo. git clone https://github.com/cloudfoundry/cf-for-k8s.git Switch into the cloned directory. cd cf-for-k8s Generating configuration Creating a temp directory Create a directory to use as a temporary/swap space for the YAML files (the cluster configuration).