This repo contains all the work and docs for the code test.
First, download the repository using git:
$ git clone https://github.com/jmoratilla/devops-challenge.git
The documentation is under the doc/ subdirectory and in form of ADRs (Architecture Decision Records), as recomended by Michael Nygard.]
This repo is a kind of handmade monorepo, that means all microservices are under the same repository.
Is an API interface to expose a CRUD for Items and Products.
Change the env vars needed (they are in the scripts/variables.kops file)
$ source scripts/variables.kops
Use the script procedure to provision your cluster:
$ cd scripts
$ ./kops_create.sh
Or use the template to provision your cluster:
$ cd kubernetes-template
$ kops toolbox template \
--values values.yaml \
--template cluster-template.yaml \
--output cluster.yaml
$ kops create secret \
--name $NAME \
sshpublickey admin \
-i $KOPS_SSH_KEY_PATH
$ kops replace -f cluster.yaml --force
$ kops update cluster $NAME --yes
- ASDF-VM: to install all the packages (like in rbenv)
- ADR tools: to help with the documentation of the decisions assumed in the project.
- SDKMAN: to help with the download of some of the packages.
- ConventionalCommits Guidelines: to ease the CHANGELOG and versioning of the code.