Skip to content

k8s-study/endpoint-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

endpoint-check

endpoint-check is an open source study material that makes it easy to test for deploying kubenetes.

Usage

kubectl create -f deploy.yml

POST localhost:3000/api/ping

{
	"urls" : [
        "https://www.docker.com/", 
        "http://http-kit.org/", 
        "http://google.com/",
        "https://kubernetes.io/",
        "https://slack.com/"
    ]
}

will Return

[
    {
        "url": "https://www.docker.com/",
        "status": 200
    },
    {
        "url": "http://www.http-kit.org/",
        "status": 200
    },
    {
        "url": "http://www.google.co.kr/?gfe_rd=cr&dcr=0&ei=ovy8Wse0Bcrd8Aev9oioBQ",
        "status": 200
    },
    {
        "url": "https://kubernetes.io/",
        "status": 200
    },
    {
        "url": "https://slack.com/",
        "status": 200
    }
]

Download and Install

======================Docker=====================

docker pull tedpark/endpoint-check

docker run -p 3000:3000 tedpark/endpoint-check

=================================================

https://github.com/technomancy/leiningen

brew install leiningen

  1. lein new luminus endpoint-check +http-kit +swagger +service

  2. lein run

  3. you can connect swagger url -> localhost:3000/swagger-ui

Distributions

  1. lein uberjar

  2. sudo docker build -t ping-image .

  3. sudo docker run -it --rm -p 3000:3000 --name ping-container ping-image

    or

    sudo docker run -d --rm -p 3000:3000 --name ping-container ping-image

구현 계획

About

Micro Service -ping-check-clj-

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published