Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
Kubernetes deployment descriptors for Logstash
---
kind: ConfigMap
apiVersion: v1
metadata:
name: logstash-config
data:
logstash.conf: |
input {
http {
id => "Instana"
port => 8080
}
}
output {
elasticsearch {
hosts => ["https://cloud.humio.com:443/api/v1/ingest/elastic-bulk"]
user => "<your Humio index token>"
password => "notused"
}
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: logstash
labels:
app: logstash
spec:
replicas: 1
selector:
matchLabels:
app: logstash
template:
metadata:
labels:
app: logstash
spec:
restartPolicy: Always
containers:
- name: logstash
image: logstash:6.6.1
ports:
- name: web
containerPort: 8080
volumeMounts:
- name: logstash-conf
mountPath: /usr/share/logstash/pipeline/
volumes:
- name: logstash-conf
configMap:
name: logstash-config
items:
- key: logstash.conf
path: logstash.conf
---
apiVersion: v1
kind: Service
metadata:
name: logstash
spec:
selector:
app: logstash
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.