Skip to content

Instantly share code, notes, and snippets.

@steveww steveww/Fluentd.yaml
Last active Jul 10, 2019

Embed
What would you like to do?
Kubernetes deployment descriptors for Fluentd
---
apiVersion: v1
kind: ConfigMap
metadata:
name: fluentd-config
data:
fluent.conf: |
<source>
@type http
port 8080
bind 0.0.0.0
body_size_limit 32m
keepalive_timeout 10s
</source>
<match **>
@type elasticsearch
host cloud.humio.com
port 9200
scheme https
ssl_version TLSv1_2
user <your Humio index token>
password ignore
logstash_format true
</match>
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fluentd
labels:
app: fluentd
spec:
replicas: 1
selector:
matchLabels:
app: fluentd
template:
metadata:
labels:
app: fluentd
spec:
restartPolicy: Always
containers:
- name: fluentd
image: your-repo/fluentd
#args:
# - "-v"
ports:
- name: web
containerPort: 8080
volumeMounts:
- name: fluentd-config
mountPath: /fluentd/etc
volumes:
- name: fluentd-config
configMap:
name: fluentd-config
---
apiVersion: v1
kind: Service
metadata:
name: fluentd
spec:
selector:
app: fluentd
ports:
- name: web
protocol: TCP
port: 8080
targetPort: 8080
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.