Skip to content

Instantly share code, notes, and snippets.

@DazWilkin
Created June 28, 2019 17:15
Show Gist options
  • Save DazWilkin/72209b998d776355e1aad92c738d5b10 to your computer and use it in GitHub Desktop.
Save DazWilkin/72209b998d776355e1aad92c738d5b10 to your computer and use it in GitHub Desktop.
Particle, Cloud Functions & Prometheus
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
project: particle.io
name: pushgateway
spec:
replicas: 1
selector:
matchLabels:
project: particle.io
app: pushgateway
template:
metadata:
labels:
project: particle.io
app: pushgateway
spec:
containers:
- name: pushgateway
image: prom/pushgateway:v0.8.0
imagePullPolicy: IfNotPresent
...
---
apiVersion: v1
kind: Service
metadata:
labels:
project: particle.io
name: pushgateway
spec:
selector:
project: particle.io
app: pushgateway
ports:
- name: http
port: 9091
type: LoadBalancer
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment