- The
gke_proj
project goal is to automate the provisioning of a golang app in GKE.
- Cloud prerequisites:
- Google cloud account with kubernetes cluster.
- Software prereq (installed by the project):
- The project will install locally the following prereq:
- kubectl
- docker
- golang
- The project will install locally the following prereq:
- Software prereq(needed to be installed manually):
gcloud cli
from google cloud sdk is also required.
- Assumptions:
- The project assumes that
gcloud
is already present and configured to communicate with google account. kubectl
configured to authenticate to the kubernetes clusterDocker
configured to use google container registry.
- The project assumes that
- User configuration:
PROJECT_NAME
variable inMakefile
has to be modified to correspond with the project name from GKE.
-
Usage:
make all
- Completes all required steps to deploygolang app
,mysql instance
,services
andPV
.make prereq
- Assures prerequisites are in place. Will install them if not. Sudo password is required for this.make mysql
- Creates DB instance and seeds data into it.make deploy
- Buildsgolang
app, bundles it in a docker image, push in registry, and deploy ink8s
.
-
Note: this should be executed from a username that has sudo privileges. Sudo access will be required to install prerequisites.
Maintainer: 'Mihai Vultur'
License: 'GPL v3'