Skip to content

rubixFunctions/r3x-gke-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RubiX GKE Terraform

License

Usage

It is assumed you have Terraform, gcloud and kubectl installed locally. Also ensure you have billing enabled in GKE.

  1. Clone this repo:
$ git clone [email protected]:rubixFunctions/r3x-gke-terraform.git
$ cd r3x-gke-terraform
  1. Edit env vars in .gtf-var to suit your cluster. Once done run:
$ source .gtf-var
  1. Run the following to execute the terraform:
$ terraform init
$ terraform plan
$ terraform apply
  1. To ensure all knative services have been applied run the following:
$ kubectl get pods --namespace istio-system
$ kubectl get pods --namespace knative-serving
$ kubectl get pods --namespace knative-build
$ kubectl get pods --namespace knative-eventing
$ kubectl get pods --namespace knative-sources
$ kubectl get pods --namespace knative-monitoring
  1. To allow outbound traffic run the following:
$ gcloud container clusters describe ${CLUSTER_NAME} \
  --zone=${CLUSTER_ZONE} | grep -e clusterIpv4Cidr -e servicesIpv4Cidr

The istio.sidecar.includeOutboundIPRanges parameter in the config-network map specifies the IP ranges that Istio sidecar intercepts. To allow outbound access, replace the default parameter value with the IP ranges of your cluster.

Run the following command to edit the config-network map:

$ kubectl edit configmap config-network --namespace knative-serving

Change the istio.sidecar.includeOutboundIPRanges parameter value from * to the IP range you need. Separate multiple IP entries with a comma. For example:

apiVersion: v1
data:
  istio.sidecar.includeOutboundIPRanges: '10.16.0.0/14,10.19.240.0/20'
kind: ConfigMap
metadata:
  ...

Documentation

For full information on RubiX and deploying a function to Knative, refer to our Documentation here.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

About

Terraform for creating a Knative GKE cluster

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages