Coder Social home page Coder Social logo

devops-test-task-old's Introduction

Devops Test

Documentation (only unix OS)

Dependencies: terraform, kubectl, helm, eksctl, aws, curl

  1. Specify environment variables for your aws account
export TF_VAR_cluster_name="<cluster_name>" 
export AWS_REGION="<aws_region>"
export AWS_ACCOUNT_ID="<aws_account_id>"
export AWS_ACCESS_KEY_ID="<aws_account_key_id>"
export AWS_SECRET_ACCESS_KEY="<aws_account_access_key>"
  1. Start delivery proccess
sh .cicd/deploy.sh # Wait 15-20 min
  1. Check output
...

cronjob.batch/goapp-exporter configured
configmap/monitoring unchanged
configmap/grafana-devops-test-task-dashboard unchanged
fleet.agones.dev/xonotic unchanged

Golang: http://<***>.elb.amazonaws.com

Grafana: http://<***>.elb.amazonaws.com
User: admin
Pass: admin

Xonotic: <ip>:<port>

Monitoring

monitoring

Connect to gameserver

connect

Task

### Overview
This is an application that is a dummy webservice that returns the
last update time.  The last updated time is cached in redis and
resets every 5 seconds.  It has a single '/' endpoint.  The redis
address is passed in through the environment.
NOTE: The following tasks should take no more than 1 hour total.
### Tasks
1. create Dockerfile for this application
2. create docker-compose.yaml to replicate a full running environment
so that a developer can run the entire application locally without having
to run any dependencies (i.e. redis) in a separate process.
3. explain how you would monitor this application in production. please
write code/scripts to do the monitoring.
### MiniKube Tasks
4. prepare local Kubernetes environment (using MiniKube + Helm) to run our application in pod/container.
it should be created a helm chart with resources for deploying application to Kuberenetes. 
store all relevant scripts (kubectl commands etc) in your forked repository.
5. suggest & create minimal local infrastructure to perform functional testing/monitoring of our application pod.
demonstrate monitoring of relevant results & metrics for normal app behavior and failure(s).

Please fork this repository and make a pull request with your changes.
Please provide test monitoring results in any convenient form (files, images, additional notes) as a separate archive.



 
### Additional task
Research https://agones.dev/site/. Deploy agones locally (minikube or docker desktop, kubernetes) or in any cloud. AWS is a big plus. Use https://github.com/googleforgames/agones/tree/main/examples/xonotic as dedicated server. Xonotic client should be able to join a dedicated server. Matchmaker or any other automatic fleet management is not required. Fleet could be managed manually with agones rest api. Provide documentation with steps how to reproduce the environment and test the game

devops-test-task-old's People

Contributors

andrey-novik-faraway avatar jamalshahverdiev avatar pilprod avatar

Stargazers

sonyavi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.