Skip to content

Instantly share code, notes, and snippets.

@juanbrny
Last active December 9, 2020 09:58
Show Gist options
  • Save juanbrny/6f8466b523f94e397ad4dd25a5c29f39 to your computer and use it in GitHub Desktop.
Save juanbrny/6f8466b523f94e397ad4dd25a5c29f39 to your computer and use it in GitHub Desktop.
Basic EFK stack for OpenShift using ClusterLogging and Elastic operators
apiVersion: "logging.openshift.io/v1"
kind: "ClusterLogging"
metadata:
name: "instance"
namespace: "openshift-logging"
spec:
managementState: "Managed"
logStore:
type: "elasticsearch"
retentionPolicy:
application:
maxAge: 2h
infra:
maxAge: 1h
audit:
maxAge: 1h
elasticsearch:
nodeSelector:
node-role.kubernetes.io/log: ''
nodeCount: 2
resources:
requests: {}
limits: {}
storage:
storageClassName: "managed-premium"
size: "50G"
redundancyPolicy: "SingleRedundancy"
visualization:
type: "kibana"
kibana:
resources:
requests: {}
limits: {}
proxy:
resources:
requests: {}
limits: {}
replicas: 1
curation:
type: "curator"
curator:
nodeSelector:
node-role.kubernetes.io/log: ''
resources:
requests: {}
limits: {}
schedule: "*/10 * * * *"
collection:
logs:
type: "fluentd"
fluentd:
resources:
requests: {}
limits: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment