Skip to content

Instantly share code, notes, and snippets.

@ejhsu
Created January 9, 2019 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejhsu/c80217694756380e5ed2b86e7142cb12 to your computer and use it in GitHub Desktop.
Save ejhsu/c80217694756380e5ed2b86e7142cb12 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: kube-state-metrics
namespace: monitoring
spec:
selector:
matchLabels:
k8s-app: kube-state-metrics
grafanak8sapp: "true"
replicas: 1
template:
metadata:
labels:
k8s-app: kube-state-metrics
grafanak8sapp: "true"
spec:
serviceAccountName: kube-state-metrics
containers:
- name: kube-state-metrics
image: quay.io/coreos/kube-state-metrics:v1.1.0
ports:
- name: http-metrics
containerPort: 8080
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment