Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1002 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 1002 Bytes

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