Skip to content

johnlanda/golang-test-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Test Apps

Description

/http - simple http server /websockets - simple websocket server

Usage

# Install dependencies
brew upgrade && brew update
brew install kubectl
brew install docker
brew install kind

# Create local cluster and registry
./kind-with-registry.sh

# Build demo app images (example for http)
# Build the client image
(cd ./http/client && \
  docker build -t 'http-client' -t 'http-client:latest' . && \
  # tag and publish to the local registry
  docker tag 'lua-tracing-poc-client:latest' 'localhost:5001/http-client:latest' && \
  docker push 'localhost:5001/http-client:latest')

# Build the server image
(cd ./http/server && \
  docker build -t 'http-server' -t 'http-server:latest' . && \
  # tag and publish to the local registry
  docker tag 'http-server:latest' 'localhost:5001/http-server:latest' && \
  docker push 'localhost:5001/http-server:latest')

Now you can use the test images in your cluster by referring to them in the manifests as

# client image
localhost:5001/http-client:latest
# server image
localhost:5001/http-server:latest

About

Simple test applications for kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published