Giter VIP home page Giter VIP logo

bigbangtflauncher's Introduction

Big Bang Terraform Start

Prerequisites

  • Linux or MacOS (runs a bash script to return information about Istio's LoadBalancers)
  • terraform
  • kubectl
  • jq
  • base64

Getting Started

An example of a project that uses this Terraform module can be found here.

Instructions

Using a vars file:

# Copy and edit with your values
cp terraform.tfvars.example terraform.tfvars

terraform init
terraform plan
terraform apply

Using environment variables:

# Update with your values
export TF_VAR_registry_credentials='[{registry="registry1.dso.mil",username="REPLACE_ME",password="REPLACE_ME"}]'

#Optional: Reduce flux resource requests for edge/resource constrained environments
export TF_VAR_reduce_flux_resources=true

terraform init
terraform plan
terraform apply

Using inline arguments:

# Update with your values inline
terraform init
terraform plan -var 'registry_credentials=[{registry="registry1.dso.mil",username="REPLACE_ME",password="REPLACE_ME"}]'
terraform apply -var 'registry_credentials=[{regsitry="registry1.dso.mil",username="REPLACE_ME",password="REPLACE_ME"}]'

Requirements

Name Version
terraform >= 0.13
kubectl >= 1.7.0

Providers

Name Version
external n/a
kubectl >= 1.7.0
kubernetes n/a

Inputs

Name Description Type Default Required
registry_credentials System-wide registry credentials to be applied so Kubernetes can pull container images. Creds for registry1.dso.mil are required, and you can optionally provide any other creds for other private registries as well
list(object({
registry = string
username = string
password = string
}))
n/a yes
big_bang_manifest_file Path to the root k8s yaml manifest. Typically contains a Namespace, GitRepository, and Kustomization. See https://repo1.dso.mil/platform-one/quick-start/big-bang/-/blob/master/bigbang/start.yaml for example string "k8s/start.yaml" no
custom_credentials Any custom credentials needed for custom BigBang implementation
list(object({
namespace = string
name = string
username = string
password = string
}))
[] no
custom_flux_file Path to the optional custom flux k8s yaml manifest string "" no
kube_conf_file Path to the KUBECONFIG file to use to connect to the cluster. If the file passed has multiple contexts in it the correct context is expected to already be set in contexts.current-context. string "~/.kube/config" no

Outputs

Name Description
external_load_balancer JSON array with information on all LoadBalancer services in the istio-system namespace. Example output:
[
{
"name": "public-ingressgateway",
"ip": "192.0.2.0",
"hostname": "null"
},
{...}
]

bigbangtflauncher's People

Contributors

jeff-mccoy avatar rothandrew avatar rjkernick avatar runyontr avatar

Watchers

Ron 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.