Skip to content
No description, website, or topics provided.
Shell HCL Python Smarty
Branch: develop
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
infrastructure Add network project ID to terraform-google-modules/kubernetes-engine/… Aug 15, 2019

Eclipse ioFog Platform

The Eclipse ioFog Platform project provides a means by which to spin up and deploy an Eclipse ioFog stack running in the Cloud. Currently, we demonstrate how to achieve this on GKE (Google Kubernetes Engine), although since we are using Terraform under the covers you can easily extend/contribute to support your preferred cloud infrastructure provider.


./ will download those dependencies and initialise terraform variable file ./my_vars.tfvars.


Run ./ to ensure all required dependencies are present and initialise terraform variable file ./my_vars.tfvars.

If you didn't have gcloud prior to running the bootstrap script:

  • Authenticate with the gcloud sdk api, you will be prompted at the end of the bootstrap script.

  • Please ensure gcloud is in your PATH. You can do so by running:

  source /usr/local/lib/google-cloud-sdk/
  source /usr/local/lib/google-cloud-sdk/

Edit the file ./my_vars.tfvars according to the table below.

To deploy your ioFog stack, run ./ To destroy your ioFog stack, run ./

Variables Description
google_application_credentials Path to gcloud service account json key
project_id id of your google platform project
environment unique name for your environment
gcp_region region to spin up the resources
controller_image docker image link for controller setup
connector_image docker image link for connector setup
scheduler_image docker image link for scheduler setup
operator_image docker image link for operator setup
kubelet_image docker image link for kubelet setup
controller_ip list of edge ips, comma separated to install agent on
iofogUser_name name for registration with controller
iofogUser_surname surname for registration with controller
iofogUser_email email to use to register with controller
iofogUser_password password(length >=8) for user registeration with controller
iofogctl_namespace namespace to be used with iofogctl commands
agent_list list of agents to be deployed

Agent list

The variable agent_list contains a list of remote hardware on top of which you would like us to deploy an ioFog agent, connect it to the GKE hosted controller, and include it inside our Kubernetes network. To do so we require the following information (per remote resource):

     name = "<AGENT_NAME>", # Name used to register the agent with the controller
     user = "<AGENT_USER>", # User name for ssh connection into the resource
     host = "<AGENT_IP>", # host for ssh connection into the resource
     port = "<SSH_PORT>", # port for ssh connection into the resource
     keyfile = "<PRIVATE_SSH_KEY>" # Absolute path to the private key used to ssh into the resource

Option to deploy agent nodes on Packet

On top of providing a list of existing resources in the agent_list variable, we support deployment of agent nodes on packet provided you have an account. In situations where you do not have your own devices acting as edge nodes, you can sping a few nodes on packet to act as agents. You will need Packet token to setup packet provider on terraform. Also be aware of account limitation for example,unable to spin more than 2 arm nodes per project. You will also need to make sure you have uploaded an ssh key on your packet project that will be used by automation to add to newly created instances.

Warning: We will look for the packet_auth_token variable. If it is defined, we will try to spin up Packet nodes according to the other variables. If it is empty or commented, we will not load anything Packet related.

Additional variables:

Variables Description
packet_auth_token packet auth token
packet_project_id packet project id to spin agents on packet
operating_system operating system for edge nodes on packet
packet_facility facilities to use to drop agents
count_x86 number of x86(make sure your project plan allow)
plan_x86 server plan for device on x86 available on facility chosen
count_arm number of arm agents to spin up
plan_arm server plan for device on arm available on facility chosen
ssh_key path to ssh key to be used for accessing packet edge nodes

Helpful Commands

  • Login to gcloud: gcloud auth login

  • Kubeconfig for gke cluster: gcloud container clusters get-credentials <<CLUSTER_NAME>> --region <<REGION>>

  • Delete a particular terraform resource: terraform destroy -target=null_resource.iofog -var-file=vars.tfvars -auto-approve

  • Terraform Output terraform output or terraform output -module=packet_edge_nodes

You can’t perform that action at this time.