Skip to content

georginapap/tyk_georgina_papageorgiou

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published