Created
July 26, 2016 12:12
-
-
Save keithballdotnet/2fca9dd542ea2f244ed8571af34ab28f to your computer and use it in GitHub Desktop.
Kubernetes Elasticsearch + Kibana + Fluentd
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: DaemonSet | |
metadata: | |
name: fluentd | |
spec: | |
template: | |
metadata: | |
labels: | |
app: logging | |
id: fluentd | |
name: fluentd | |
spec: | |
containers: | |
- name: fluentd-es | |
image: gcr.io/google_containers/fluentd-elasticsearch:1.3 | |
env: | |
- name: FLUENTD_ARGS | |
value: -qq | |
volumeMounts: | |
- name: containers | |
mountPath: /var/lib/docker/containers | |
- name: varlog | |
mountPath: /varlog | |
volumes: | |
- hostPath: | |
path: /var/lib/docker/containers | |
name: containers | |
- hostPath: | |
path: /var/log | |
name: varlog | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
labels: | |
app: logging | |
id: elasticsearch-logging | |
name: elasticsearch-logging | |
namespace: default | |
spec: | |
ports: | |
- port: 9200 | |
selector: | |
app: logging | |
id: elasticsearch-logging | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: elasticsearch-logging | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: logging | |
id: elasticsearch-logging | |
spec: | |
containers: | |
- name: elasticsearch-logging | |
image: elasticsearch | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 9200 | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
labels: | |
app: logging | |
id: kibana-logging | |
name: kibana-logging | |
namespace: default | |
spec: | |
type: NodePort | |
ports: | |
- port: 5601 | |
selector: | |
app: logging | |
id: kibana-logging | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: kibana-logging | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: logging | |
id: kibana-logging | |
spec: | |
containers: | |
- env: | |
- name: ELASTICSEARCH_URL | |
value: http://elasticsearch-logging:9200 | |
name: kibana-logging | |
image: kibana | |
ports: | |
- containerPort: 5601 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment