GithubHelp home page GithubHelp logo

f5xc-vk8s-lab's Introduction

f5xc-vk8s-lab

Build namespace, virtual site and virtual kubernetes cluster and download kubeconfig using f5-xc-modules for Terraform.

Requirements

Provide F5 XC API credentials via environment variables:

export VOLT_API_P12_FILE=/cert/<tenant>.console.ves.volterra.io.api-creds.p12
export VOLT_API_URL=https://playground.console.volterra.io/api

export TF_VAR_f5xc_api_url=https://playground.console.volterra.io/api
export TF_VAR_f5xc_api_token=<token>

#export VOLT_API_CA_CERT=<only required for non production use>

Create terraform.tfvars and adjust

cp terraform.tfvars.example terraform.tfvars

Deploy

terraform init
terraform plan
terraform apply

Create or set the label virtualSite to the virtual-site name that got created. In below's example that is "marcel-vsite".

Example output

$ terraform output

f5xc_namespace = {
  "namespace" = {
    "id" = "0d28e702-b401-4f23-8851-f1ca2087ba09"
      "name" = "marcel-ns"
  }
}
f5xc_virtual_site = {
  "virtual-site" = {
    "id" = "a6bc66b0-70fd-49a2-8551-91a222ea59eb"
      "name" = "marcel-vsite"
      "site_type" = "CUSTOMER_EDGE"
  }
}
vk8s = {
  "vk8s" = {
    "id" = "4374512f-4c15-4f8b-8fd4-f16240816634"
      "name" = "marcel-vk8s"
  }
}

This will create a kubeconfig file that can be used to deploy services:

export KUBECONFIG=./kubeconfig
kubectl apply -f alpine.yaml

Varia

Start with empty folder

git init
git submodule add https://github.com/cklewar/f5-xc-modules modules

f5xc-vk8s-lab's People

Contributors

mwiget avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.