Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ChimeraCoder
Created April 5, 2018 00:02
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 ChimeraCoder/d873787a4a08a6eafee870e4fdaf426f to your computer and use it in GitHub Desktop.
Save ChimeraCoder/d873787a4a08a6eafee870e4fdaf426f to your computer and use it in GitHub Desktop.
Basic veneur-emit example with credentials
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: veneur-emit
labels:
app: veneur-emit
spec:
minReadySeconds: 10
replicas: 1
template:
metadata:
labels:
app: veneur-emit
spec:
containers:
- name: veneur-emit
image: index.docker.io/stripe/veneur:3.0.0
imagePullPolicy: Always
command: ["/bin/sh"]
args: ["-c", "while true; do veneur-emit -hostport udp://localhost:8126 -name 'my.test.timer' -timing '100ms'; sleep 10; done"]
- name: veneur
image: index.docker.io/stripe/veneur:3.0.0
ports:
- containerPort: 8126
protocol: UDP
- containerPort: 8127
protocol: TCP
livenessProbe:
httpGet:
path: /healthcheck
port: 8127
env:
- name: VENEUR_NUMWORKERS
value: "3"
- name: VENEUR_DATADOGAPIKEY
valueFrom:
secretKeyRef:
name: datadog
key: datadog_api_key
terminationGracePeriodSeconds: 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment