curlme-controller

module
v0.0.0-...-09c7815 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0

README

CurlMe Controller

CurlMeController Docker Cloud Build Status codecov Go Report Card

CurlMe controller is a simple Kubernetes controller that watches ConfigMap with x-k8s.io/curl-me-that annotation.

Overview

CurMe controller watches ConfigMap resources like below

apiVersion: v1
kind: ConfigMap
metadata:
  name: example
  annotations:
    x-k8s.io/curl-me-that: joke=curl-a-joke.herokuapp.com
data: {}

curl-a-joke.herokuapp.com response request will be stored into the configmap datas under joke key.

If the request fails, a warning event will be raised

Quickstart

To deploy the controller into your kubernetes cluster :

$ kubectl apply -f https://raw.githubusercontent.com/etiennecoutaud/curlme-controller/master/manifests/all-in-one.yaml

If you use Prometheus operator and ServiceMonitor CRD into your cluster. You can monitor your cluster with :

$ kubectl apply -f https://raw.githubusercontent.com/etiennecoutaud/curlme-controller/master/manifests/monitoring.yaml

Run locally

To run the app locally make sure you have go 1.14 install and KUBECONFIG environment var set.

$ make run-local

Questions

docs/questions

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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