Skip to content

Instantly share code, notes, and snippets.

@mlafeldt
Created October 26, 2018 09:46
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 mlafeldt/a0be8d52c7f0bed57413c04fbf2f744d to your computer and use it in GitHub Desktop.
Save mlafeldt/a0be8d52c7f0bed57413c04fbf2f744d to your computer and use it in GitHub Desktop.
K8s JSON Logger Container
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
labels:
run: test
name: test
spec:
replicas: 1
selector:
matchLabels:
run: test
template:
metadata:
labels:
run: test
spec:
containers:
- args:
- bash
- -c
- while true; do echo "{\"foo\":\"bar\",\"time\":\"$(date)\"}"; sleep 10; done
image: debian:jessie
name: test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment