Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ATT Counter Challenge

NotificationsYou must be signed in to change notification settings

qza/allthingstalkgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple web server that increments visits counter and can be scaled horisontaly.Application is written in Go and uses Redis as backend. Image is available on Docker hub:

docker pull zokoko/allthingstalkgo

It can be easily run on Google cloud using provided Kubernetes configuration files.

Assuming there is a valid project and billing setup, first step is to create container cluster:

gcloud container clusters create attgo-cluster --num-nodes=3

Next is to setup and expose Redis backend:

kubectl create -f kubectl\redis-master.yamlkubectl create -f kubectl\redis-master-service.yaml

And finaly we deploy the Docker container with app:

kubectl run attgo --image=zokoko/allthingstalkgo --port=8080kubectl expose deployment attgo --type="LoadBalancer"kubectl scale deployment/attgo --replicas=4

After the external IP is assigned to theattgo service, application can be opened on path/att

About

ATT Counter Challenge

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp