/common_tools

FuchiCorp Kube Common Tools

Primary LanguageHCL

fuchicorp Kubernetes Common Tools

This page contains how to deploy common_tools to Kubernetes Cluster.

Required Packages

  1. terraform
  2. kubectl (configured )
  3. helm v2.11.0
  4. Cert-manager 0.3.0
  5. Kube Cluster 1.12.7-gke.10

What will be deployed to cluster?

  1. Jenkins Jenkins is will be deployed to the cluster. You will need to get password from the pod Example doc

  2. Nexus After deploying the nexus you will need to change the password default creds is admin:admin123

  3. Grafana Grafana also will be deployed you are able to parse admin username and password with tfvars. Vars grafana_username, grafana_password

  4. Vault For Vault you will need to create parse variable for token call it vault_token

Deploy to Cluster

First you will need to clone the repo

git clone https://github.com/fuchicorp/common_tools.git
cd common_tools

Please use default module just run following command.

source set-env.sh configuration/fuchicorp-common-tools.tfvars

If you are using scripted way you will need to generate tfvars file. For example

» cat <<EOF > terraform apply -var-file=$DATAFILE                                                                     
grafana_password = 'mypassword'
grafana_username = 'admin_user'
namespace      = 'tools'
vault_token    = 'a872nawd81*q2n'
EOF

After you done with generation of the var file. You can start deploying.

terraform plan -var-file=terraform apply -var-file=$DATAFILE    
terraform apply -var-file=terraform apply -var-file=$DATAFILE