Skip to content

Instantly share code, notes, and snippets.

View zacblazic's full-sized avatar

Zac Blazic zacblazic

  • Zappi
  • Cape Town, South Africa
View GitHub Profile
@zacblazic
zacblazic / Makefile
Last active January 22, 2019 15:24 — forked from itskingori/Makefile
Makefile for generating TLS certs for the Prometheus custom metrics API adapter
# modified from https://github.com/stefanprodan/k8s-prom-hpa/blob/617a98c5d921c3413599bbbb1438dfb125e3bd21/Makefile
SHELL=bash
UNAME := $(shell uname)
PURPOSE:=custom-metrics-adapter
SERVICE_NAME:=custom-metrics-adapter
ALT_NAMES:="custom-metrics-adapter.kube-system","custom-metrics-adapter.kube-system.svc"
SECRET_FILE:=custom-metrics-adapter-serving-certs.yml
certs: gensecret rmcerts