Skip to content

Instantly share code, notes, and snippets.

@wabouhamad
Last active September 13, 2017 17:00
Show Gist options
  • Save wabouhamad/0edb511fce77e2a631b25a326ecdbff5 to your computer and use it in GitHub Desktop.
Save wabouhamad/0edb511fce77e2a631b25a326ecdbff5 to your computer and use it in GitHub Desktop.
OCP 3.6 logging-fluentd DaemonSet configuration
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
creationTimestamp: 2017-09-05T16:46:11Z
generation: 2
labels:
component: fluentd
logging-infra: fluentd
provider: openshift
name: logging-fluentd
namespace: logging
resourceVersion: "46147"
selfLink: /apis/extensions/v1beta1/namespaces/logging/daemonsets/logging-fluentd
uid: b8ea08e1-9259-11e7-9cec-02c33c95c41a
spec:
selector:
matchLabels:
component: fluentd
provider: openshift
template:
metadata:
creationTimestamp: null
labels:
component: fluentd
logging-infra: fluentd
provider: openshift
name: fluentd-elasticsearch
spec:
containers:
- env:
- name: K8S_HOST_URL
value: https://<master_public_DNS>:8443
- name: ES_HOST
value: logging-es
- name: ES_PORT
value: "9200"
- name: ES_CLIENT_CERT
value: /etc/fluent/keys/cert
- name: ES_CLIENT_KEY
value: /etc/fluent/keys/key
- name: ES_CA
value: /etc/fluent/keys/ca
- name: OPS_HOST
value: logging-es
- name: OPS_PORT
value: "9200"
- name: OPS_CLIENT_CERT
value: /etc/fluent/keys/cert
- name: OPS_CLIENT_KEY
value: /etc/fluent/keys/key
- name: OPS_CA
value: /etc/fluent/keys/ca
- name: ES_COPY
value: "false"
- name: JOURNAL_SOURCE
- name: JOURNAL_READ_FROM_HEAD
- name: BUFFER_QUEUE_LIMIT
value: "1024"
- name: BUFFER_SIZE_LIMIT
value: 16m
- name: FLUENTD_CPU_LIMIT
valueFrom:
resourceFieldRef:
containerName: fluentd-elasticsearch
divisor: "0"
resource: limits.cpu
- name: FLUENTD_MEMORY_LIMIT
valueFrom:
resourceFieldRef:
containerName: fluentd-elasticsearch
divisor: "0"
resource: limits.memory
- name: FILE_BUFFER_LIMIT
value: 1Gi
image: registry.ops.openshift.com/openshift3/logging-fluentd:v3.6.173.0.27
imagePullPolicy: Always
name: fluentd-elasticsearch
resources:
limits:
cpu: "1"
memory: 1Gi
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /run/log/journal
name: runlogjournal
- mountPath: /var/log
name: varlog
- mountPath: /var/lib/docker/containers
name: varlibdockercontainers
readOnly: true
- mountPath: /etc/fluent/configs.d/user
name: config
readOnly: true
- mountPath: /etc/fluent/keys
name: certs
readOnly: true
- mountPath: /etc/docker-hostname
name: dockerhostname
readOnly: true
- mountPath: /etc/localtime
name: localtime
readOnly: true
- mountPath: /etc/sysconfig/docker
name: dockercfg
readOnly: true
- mountPath: /etc/docker
name: dockerdaemoncfg
readOnly: true
- mountPath: /var/lib/fluentd
name: filebufferstorage
dnsPolicy: ClusterFirst
nodeSelector:
logging-infra-fluentd: "true"
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: aggregated-logging-fluentd
serviceAccountName: aggregated-logging-fluentd
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /run/log/journal
name: runlogjournal
- hostPath:
path: /var/log
name: varlog
- hostPath:
path: /var/lib/docker/containers
name: varlibdockercontainers
- configMap:
defaultMode: 420
name: logging-fluentd
name: config
- name: certs
secret:
defaultMode: 420
secretName: logging-fluentd
- hostPath:
path: /etc/hostname
name: dockerhostname
- hostPath:
path: /etc/localtime
name: localtime
- hostPath:
path: /etc/sysconfig/docker
name: dockercfg
- hostPath:
path: /etc/docker
name: dockerdaemoncfg
- hostPath:
path: /var/lib/fluentd
name: filebufferstorage
templateGeneration: 2
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
status:
currentNumberScheduled: 4
desiredNumberScheduled: 4
numberAvailable: 4
numberMisscheduled: 0
numberReady: 4
observedGeneration: 2
updatedNumberScheduled: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment