mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	updated fluentd to 1.5.1, es & kibana to 7.1.1
Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
		@@ -85,7 +85,7 @@ avoid Fluentd pods scheduling there.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Running EFK stack in production
 | 
					## Running EFK stack in production
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The configurations provided here, for Elasticsearch, Fluentd & Kibana (EFK),
 | 
					The configurations provided here for Elasticsearch, Fluentd & Kibana (EFK),
 | 
				
			||||||
are a starting point and should not be considered to be production ready.
 | 
					are a starting point and should not be considered to be production ready.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If you like to run these tools in a production environment you could use the
 | 
					If you like to run these tools in a production environment you could use the
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@ COPY elasticsearch_logging_discovery.go go.mod go.sum /
 | 
				
			|||||||
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -ldflags "-w" -o /elasticsearch_logging_discovery /elasticsearch_logging_discovery.go
 | 
					RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -ldflags "-w" -o /elasticsearch_logging_discovery /elasticsearch_logging_discovery.go
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.7.2
 | 
					FROM docker.elastic.co/elasticsearch/elasticsearch-oss:7.1.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VOLUME ["/data"]
 | 
					VOLUME ["/data"]
 | 
				
			||||||
EXPOSE 9200 9300
 | 
					EXPOSE 9200 9300
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,7 +16,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
PREFIX = quay.io/fluentd_elasticsearch
 | 
					PREFIX = quay.io/fluentd_elasticsearch
 | 
				
			||||||
IMAGE = elasticsearch
 | 
					IMAGE = elasticsearch
 | 
				
			||||||
TAG = v6.7.2
 | 
					TAG = v7.1.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
build:
 | 
					build:
 | 
				
			||||||
	docker build  --tag ${PREFIX}/${IMAGE}:${TAG} .
 | 
						docker build  --tag ${PREFIX}/${IMAGE}:${TAG} .
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,7 +51,7 @@ metadata:
 | 
				
			|||||||
  namespace: kube-system
 | 
					  namespace: kube-system
 | 
				
			||||||
  labels:
 | 
					  labels:
 | 
				
			||||||
    k8s-app: elasticsearch-logging
 | 
					    k8s-app: elasticsearch-logging
 | 
				
			||||||
    version: v6.6.1
 | 
					    version: v7.1.1
 | 
				
			||||||
    addonmanager.kubernetes.io/mode: Reconcile
 | 
					    addonmanager.kubernetes.io/mode: Reconcile
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  serviceName: elasticsearch-logging
 | 
					  serviceName: elasticsearch-logging
 | 
				
			||||||
@@ -59,16 +59,16 @@ spec:
 | 
				
			|||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    matchLabels:
 | 
					    matchLabels:
 | 
				
			||||||
      k8s-app: elasticsearch-logging
 | 
					      k8s-app: elasticsearch-logging
 | 
				
			||||||
      version: v6.7.2
 | 
					      version: v7.1.1
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
    metadata:
 | 
					    metadata:
 | 
				
			||||||
      labels:
 | 
					      labels:
 | 
				
			||||||
        k8s-app: elasticsearch-logging
 | 
					        k8s-app: elasticsearch-logging
 | 
				
			||||||
        version: v6.7.2
 | 
					        version: v7.1.1
 | 
				
			||||||
    spec:
 | 
					    spec:
 | 
				
			||||||
      serviceAccountName: elasticsearch-logging
 | 
					      serviceAccountName: elasticsearch-logging
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - image: gcr.io/fluentd-elasticsearch/elasticsearch:v6.6.1
 | 
					      - image: quay.io/fluentd_elasticsearch/elasticsearch:v7.1.1
 | 
				
			||||||
        name: elasticsearch-logging
 | 
					        name: elasticsearch-logging
 | 
				
			||||||
        resources:
 | 
					        resources:
 | 
				
			||||||
          # need more cpu upon initialization, therefore burstable class
 | 
					          # need more cpu upon initialization, therefore burstable class
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,22 +45,22 @@ roleRef:
 | 
				
			|||||||
apiVersion: apps/v1
 | 
					apiVersion: apps/v1
 | 
				
			||||||
kind: DaemonSet
 | 
					kind: DaemonSet
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: fluentd-es-v2.5.2
 | 
					  name: fluentd-es-v2.6.0
 | 
				
			||||||
  namespace: kube-system
 | 
					  namespace: kube-system
 | 
				
			||||||
  labels:
 | 
					  labels:
 | 
				
			||||||
    k8s-app: fluentd-es
 | 
					    k8s-app: fluentd-es
 | 
				
			||||||
    version: v2.5.2
 | 
					    version: v2.6.0
 | 
				
			||||||
    addonmanager.kubernetes.io/mode: Reconcile
 | 
					    addonmanager.kubernetes.io/mode: Reconcile
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    matchLabels:
 | 
					    matchLabels:
 | 
				
			||||||
      k8s-app: fluentd-es
 | 
					      k8s-app: fluentd-es
 | 
				
			||||||
      version: v2.5.2
 | 
					      version: v2.6.0
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
    metadata:
 | 
					    metadata:
 | 
				
			||||||
      labels:
 | 
					      labels:
 | 
				
			||||||
        k8s-app: fluentd-es
 | 
					        k8s-app: fluentd-es
 | 
				
			||||||
        version: v2.5.2
 | 
					        version: v2.6.0
 | 
				
			||||||
      # This annotation ensures that fluentd does not get evicted if the node
 | 
					      # This annotation ensures that fluentd does not get evicted if the node
 | 
				
			||||||
      # supports critical pod annotation based priority scheme.
 | 
					      # supports critical pod annotation based priority scheme.
 | 
				
			||||||
      # Note that this does not guarantee admission on the nodes (#40573).
 | 
					      # Note that this does not guarantee admission on the nodes (#40573).
 | 
				
			||||||
@@ -72,7 +72,7 @@ spec:
 | 
				
			|||||||
      serviceAccountName: fluentd-es
 | 
					      serviceAccountName: fluentd-es
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - name: fluentd-es
 | 
					      - name: fluentd-es
 | 
				
			||||||
        image: gcr.io/fluentd-elasticsearch/fluentd:v2.5.2
 | 
					        image: quay.io/fluentd_elasticsearch/fluentd:v2.6.0
 | 
				
			||||||
        env:
 | 
					        env:
 | 
				
			||||||
        - name: FLUENTD_ARGS
 | 
					        - name: FLUENTD_ARGS
 | 
				
			||||||
          value: --no-supervisor -q
 | 
					          value: --no-supervisor -q
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,12 @@
 | 
				
			|||||||
source 'https://rubygems.org'
 | 
					source 'https://rubygems.org'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
gem 'activesupport', '~>5.2.2'
 | 
					gem 'activesupport', '~>5.2.3'
 | 
				
			||||||
gem 'fluentd', '<=1.4.2'
 | 
					gem 'fluentd', '<=1.5.1'
 | 
				
			||||||
gem 'fluent-plugin-concat', '~>2.3.0'
 | 
					gem 'fluent-plugin-concat', '~>2.3.0'
 | 
				
			||||||
gem 'fluent-plugin-detect-exceptions', '~>0.0.12'
 | 
					gem 'fluent-plugin-detect-exceptions', '~>0.0.12'
 | 
				
			||||||
gem 'fluent-plugin-elasticsearch', '~>3.4.3'
 | 
					gem 'fluent-plugin-elasticsearch', '~>3.5.2'
 | 
				
			||||||
gem 'fluent-plugin-kubernetes_metadata_filter', '~>2.1.6'
 | 
					gem 'fluent-plugin-kubernetes_metadata_filter', '~>2.2.0'
 | 
				
			||||||
gem 'fluent-plugin-multi-format-parser', '~>1.0.0'
 | 
					gem 'fluent-plugin-multi-format-parser', '~>1.0.0'
 | 
				
			||||||
gem 'fluent-plugin-prometheus', '~>1.3.0'
 | 
					gem 'fluent-plugin-prometheus', '~>1.4.0'
 | 
				
			||||||
gem 'fluent-plugin-systemd', '~>1.0.2'
 | 
					gem 'fluent-plugin-systemd', '~>1.0.2'
 | 
				
			||||||
gem 'oj', '~>3.7.12'
 | 
					gem 'oj', '~>3.7.12'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,7 +16,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
PREFIX = quay.io/fluentd_elasticsearch
 | 
					PREFIX = quay.io/fluentd_elasticsearch
 | 
				
			||||||
IMAGE = fluentd
 | 
					IMAGE = fluentd
 | 
				
			||||||
TAG = v2.5.2
 | 
					TAG = v2.6.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
build:
 | 
					build:
 | 
				
			||||||
	docker build  --tag ${PREFIX}/${IMAGE}:${TAG} .
 | 
						docker build  --tag ${PREFIX}/${IMAGE}:${TAG} .
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,7 +20,7 @@ spec:
 | 
				
			|||||||
    spec:
 | 
					    spec:
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - name: kibana-logging
 | 
					      - name: kibana-logging
 | 
				
			||||||
        image: docker.elastic.co/kibana/kibana-oss:6.6.1
 | 
					        image: docker.elastic.co/kibana/kibana-oss:7.1.1
 | 
				
			||||||
        resources:
 | 
					        resources:
 | 
				
			||||||
          # need more cpu upon initialization, therefore burstable class
 | 
					          # need more cpu upon initialization, therefore burstable class
 | 
				
			||||||
          limits:
 | 
					          limits:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user