go-redis-kubernetes

command module
v0.0.0-...-0ef0fc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 11 Imported by: 0

README

go-redis-kubernetes

Go app with Redis on Kubernetes

Source

Deploy from image pulled from Docker Hub registry

Deploy
  1. Redis: kubectl apply -f deployment/redis-master.yaml
  2. API server: kubectl apply -f deployment/go-redis-kubernetes.yaml
Delete deployment
  1. API server: kubectl delete -f deployment/go-redis-kubernetes.yaml
  2. Redis: kubectl delete -f deployment/redis-master.yaml

Testing Go app server

  • Get the service's port as an env var: kubectl get services | grep go-redis-kubernetes-service | egrep -o ':(.*?)\/' | grep '[0-9]'
  • Make an HTTP request: curl localhost:<service's port>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL