Skip to content
/ myiac Public

Infrastructure as code to manage deployments using Docker and Kubernetes

License

Notifications You must be signed in to change notification settings

iac-io/myiac

Repository files navigation

MyIAC

Build codecov

Infrastructure as code. GCP for now.

Setup

  • Create a GCP service account with admin privileges from here: https://cloud.google.com/iam/docs/creating-managing-service-accounts#iam-service-accounts-create-console
  • Download the json file and store in your user directory ($HOME/account.json)
  • Install Go here, it should be Go v1.13 at least
  • Clone the project
  • If deployments are going to be run, export the environment variable CHARTS_PATH pointing to a folder that contains Helm Charts. This folder should follow the structure charts/{appName}. Inside, the typical structure for a Helm chart should be present (templates, values.yaml...)
export CHARTS_PATH=/path/to/charts

Build executable

$ go build cmd/myiac/myiac.go
$ ./myiac

# Move it to PATH folder to run command from anywhere
# $ mv ./myiac /usr/local/bin

Get usage help

myiac help
myiac [subcommand] help

## Known issues & work in progress

Currently only the following subcommands are working as expected in the master branch (the project is undergoing a massive cleanup & refactor):

  • setupEnvironment
  • deploy
  • crypt
  • createSecret
  • dockerBuild
  • createCert (basic usage)

The cluster needs to be created beforehand as the createCluster and destroyCluster subcommands are currently not working.

Golang tutorials

Setting up SSL in traefik

https://github.com/iac-io/myiac/blob/e0cbdde19ed9c4b8da750481e175e936c66d113c/kubernetes/cluster/README.md

Launch Dev Env

./start-dev-env.sh ~/my_Key.json ${PWD}/terraform ${PWD}/helm

About

Infrastructure as code to manage deployments using Docker and Kubernetes

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •