Skip to content

k8s-study/user-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Service

an example service for microservice x kubernetes study

Kubenetes

Launch [Kong](https://github.com/k8s-study/kong) first and launch user service.

$ kubectl create -f k8s/user-service.yml

Reqeust to http://apigw.pong.com/user-service/v1/health. The host is set in kong.

See API spec.

Local development

Install dependencies

$ dep ensure -v

Run

$ go run main.go

Build

$ docker build --force-rm=true -t [user id]/k8s-study-user-service:0.1 .

Ann then connect to http://127.0.0.1:8080/.

Docker imsages found in DockerHub.

Run Container

---
$ kubectl apply -f k8s/0_user-service-db.yml
$ istioctl kube-inject -f k8s/1_user-service.yml | kubectl apply -f -
---

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages