Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.44 KB

README.md

File metadata and controls

60 lines (40 loc) · 1.44 KB

tyk-sre-assignment

This repository contains the boilerplate projects for the SRE role interview assignments. There are two projects: one for Go and one for Python respectively.

Go Project

Location: https://github.com/TykTechnologies/tyk-sre-assignment/tree/main/golang

In order to build the project run:

go mod tidy & go build

To run it against a real Kubernetes API server:

./tyk-sre-assignment --kubeconfig '/path/to/your/kube/conf' --address ":8080"

To execute unit tests:

go test -v

Python Project

Location: https://github.com/TykTechnologies/tyk-sre-assignment/tree/main/python

We suggest using a Python virtual env, e.g.:

python3 -m venv .venv
source .venv/bin/activate

Make sure to install the dependencies using pip:

pip3 install -r requirements.txt

To run it against a real Kubernetes API server:

python3 main.py --kubeconfig '/path/to/your/kube/conf' --address ":8080"

To execute unit tests:

python3 tests.py -v

This project inplements the following user stories:

As an SRE I want to know whether all the deployments in the k8s cluster have as many healthy pods as requested by the respective Deployment spec

As an SRE I want to always know whether this tool can successfully communicate with the configured k8s API server

As an application developer I want to build this application into a container image when I push a commit to the main branch of its repository

Comments: