Skip to content

Instantly share code, notes, and snippets.

@jimmidyson

jimmidyson/prometheus.yml

Last active Feb 28, 2016
Embed
What would you like to do?
Prometheus Kubernetes manifest
apiVersion: v1
kind: Pod
metadata:
name: prometheus
spec:
containers:
- env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: fabric8/prometheus-kubernetes:2.2.119
livenessProbe:
tcpSocket:
port: 9090
ports:
- containerPort: 9090
name: http
volumeMounts:
- mountPath: /prometheus
name: prometheus-data
serviceAccountName: metrics
volumes:
- emptyDir: {}
name: prometheus-data
- name: metrics-token-17bvx
secret:
secretName: metrics-token-17bvx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment