Skip to content

jmoratilla/devops-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This repo contains all the work and docs for the code test.

Status Badges

CircleCI

The way to use and run it

First, download the repository using git:

$ git clone https://github.com/jmoratilla/devops-challenge.git

About documentation

The documentation is under the doc/ subdirectory and in form of ADRs (Architecture Decision Records), as recomended by Michael Nygard.]

About the code

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.

diagram of the microservices example

Deploy the cluster

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

Tools used

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published