Skip to content

Instantly share code, notes, and snippets.

@jimmidyson
Last active February 28, 2016 22:11
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 jimmidyson/b7a5deb9179e6aa7dec6 to your computer and use it in GitHub Desktop.
Save jimmidyson/b7a5deb9179e6aa7dec6 to your computer and use it in GitHub Desktop.
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