go-k8s-probes

command module
v0.0.0-...-e2f90f4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

go-k8s-probes

Flexible solution to fastly implement Kubernetes probes in Golang

Prerequisites

  • PostgreSQL

Run

  1. Start PostgreSQL

    make start-postgres
    
  2. Start application

    make run
    

Endpoints

Application

Root URL: localhost:8080

Method URL Description
GET /api/v1/products Fetch list of products
GET /api/v1/products/{id} Fetch a product by ID
POST /api/v1/products Create a new product
PUT /api/v1/products/{id} Update an existing product retrieved by ID
DELETE /api/v1/products/{id} Delete a product by ID
Prometheus metrics

Root URL: localhost:9090

Method URL Description
GET /metrics Fetch Prometheus metrics
Kubernetes probes

Root URL: localhost:9091

Method URL Description
GET /live Fetch liveness info
GET /ready Fetch readiness info

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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