Created
February 8, 2020 12:24
-
-
Save ams0/6d1a303ace6581a02fa313258a2dcdad to your computer and use it in GitHub Desktop.
This file contains hidden or 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: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: fluentd-elasticsearch | |
namespace: kube-system | |
labels: | |
k8s-app: fluentd-logging | |
version: v1 | |
spec: | |
selector: | |
matchLabels: | |
name: fluentd-elasticsearch | |
template: | |
metadata: | |
labels: | |
name: fluentd-elasticsearch | |
version: v1 | |
spec: | |
containers: | |
- name: fluentd | |
image: fluent/fluentd-kubernetes-daemonset:v1-debian-elasticsearch | |
env: | |
- name: FLUENT_ELASTICSEARCH_HOST | |
value: "es-es-http.default.svc.cluster.local" | |
- name: FLUENT_ELASTICSEARCH_PORT | |
value: "9200" | |
- name: FLUENT_ELASTICSEARCH_SCHEME | |
value: "https" | |
# Option to configure elasticsearch plugin with self signed certs | |
# ================================================================ | |
- name: FLUENT_ELASTICSEARCH_SSL_VERIFY | |
value: "false" | |
# Option to configure elasticsearch plugin with tls | |
# ================================================================ | |
- name: FLUENT_ELASTICSEARCH_SSL_VERSION | |
value: "TLSv1_2" | |
# X-Pack Authentication | |
# ===================== | |
- name: FLUENT_ELASTICSEARCH_USER | |
value: "elastic" | |
- name: FLUENT_ELASTICSEARCH_LOGSTASH_PREFIX | |
value: "kubernetes" | |
- name: FLUENT_ELASTICSEARCH_PASSWORD | |
value: "2984zxb95r2mds7zvkw2rpgk" | |
- name: FLUENT_ELASTICSEARCH_TEMPLATE_OVERWRITE | |
value: "false" | |
# Logz.io Authentication | |
# ====================== | |
#- name: LOGZIO_TOKEN | |
# value: "ThisIsASuperLongToken" | |
#- name: LOGZIO_LOGTYPE | |
# value: "kubernetes" | |
resources: | |
limits: | |
memory: 200Mi | |
requests: | |
cpu: 100m | |
memory: 200Mi | |
volumeMounts: | |
- name: varlog | |
mountPath: /var/log | |
- name: varlibdockercontainers | |
mountPath: /var/lib/docker/containers | |
readOnly: true | |
terminationGracePeriodSeconds: 30 | |
serviceAccount: fluentd | |
volumes: | |
- name: varlog | |
hostPath: | |
path: /var/log | |
- name: varlibdockercontainers | |
hostPath: | |
path: /var/lib/docker/containers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment