Created
April 5, 2018 00:02
-
-
Save ChimeraCoder/d873787a4a08a6eafee870e4fdaf426f to your computer and use it in GitHub Desktop.
Basic veneur-emit example with credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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