Skip to content

Latest commit

 

History

History

cf4k8s

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Terraform for installing cf-for-k8s

Deploy the Cloud Foundry Application Runtime on Kubernetes.

Assumes:

Review the experiments directory for help addressing these pre-requisites before getting started.

Copy sample configuration

cp terraform.tfvars.sample terraform.tfvars

Edit terraform.tfvars

Amend the values for

  • base_domain
  • registry_domain
  • repository_prefix
  • registry_password
  • kubeconfig_path

Create a new file named iaas.auto.tfvars

Add and (of course) amend values for

email = ...
domain = ...

then depending upon your IaaS, uncomment and amend values for blocks of configuration as follows

Amazon

dns_zone_id = ...

Azure

client_id = ...
client_secret = ...
tenant_id = ...
subscription_id = ...
resource_group_name = ...

GCP

project = ...

on Kind

If you're deploying locally to a kind cluster then you must set the following additional variables

remove_resource_requirements = true
add_metrics_server_components = true
enable_load_balancer = false
enable_automount_service_account_token: true
metrics_server_prefer_internal_kubelet_address: true
use_first_party_jwt_tokens: true

Install

./create-cf4k8s.sh <iaas> <base_domain>

Set iaas to be one of [ amazon, azure, gcp ] and set base_domain to be the same value as defined in terraform.tfvars

Remove

./destroy-cf4k8s.sh <iaas>

Set iaas to be one of [ amazon, azure, gcp ]