Unverified Commit fea9a3f1 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #62910 from jklare/bump_addon_fluentd-es

Automatic merge from submit-queue (batch tested with PRs 64142, 64426, 62910, 63942, 64548). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. update fluentd-elasticsearch addon **What this PR does / why we need it**: Elastic now provides a fully opensource version for their prebuild docker images (elasticsearch, kibana and so on). To avoid running into licensing conflicts for this addon example, we should rather use these images instead of the premium ones (were we also have to disable premium features manually right now). This PR updates: - fluentd from <=1.1.0 to ~>1.1.3 - elasticsearch and kibana from 5.6.2 to 6.2.4 - fluentd-elasticsearch-plugin from 2.4.1 to 2.9.1 **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # https://github.com/fluent/fluentd/issues/1894 **Special notes for your reviewer**: **Release note**: ```release-note ```
parents 148350d3 a7ed23be
...@@ -19,15 +19,16 @@ a Deployment, but allows for maintaining state on storage volumes. ...@@ -19,15 +19,16 @@ a Deployment, but allows for maintaining state on storage volumes.
### Security ### Security
Elasticsearch has capabilities to enable authorization using the Elasticsearch has capabilities to enable authorization using the [X-Pack
[X-Pack plugin][xPack]. See configuration parameter `xpack.security.enabled` plugin][xPack]. For the sake of simplicity this example uses the fully open
in Elasticsearch and Kibana configurations. It can also be set via the source prebuild images from elastic that do not contain the X-Pack plugin. If
`XPACK_SECURITY_ENABLED` env variable. After enabling the feature, you need these features, please consider building the images from either the
follow [official documentation][setupCreds] to set up credentials in "basic" or "platinum" version. After enabling these features, follow [official
Elasticsearch and Kibana. Don't forget to propagate those credentials also to documentation][setupCreds] to set up credentials in Elasticsearch and Kibana.
Fluentd in its [configuration][fluentdCreds], using for example Don't forget to propagate those credentials also to Fluentd in its
[environment variables][fluentdEnvVar]. You can utilize [ConfigMaps][configMap] [configuration][fluentdCreds], using for example [environment
and [Secrets][secret] to store credentials in the Kubernetes apiserver. variables][fluentdEnvVar]. You can utilize [ConfigMaps][configMap] and
[Secrets][secret] to store credentials in the Kubernetes apiserver.
### Initialization ### Initialization
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.4 FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4
VOLUME ["/data"] VOLUME ["/data"]
EXPOSE 9200 9300 EXPOSE 9200 9300
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
PREFIX = staging-k8s.gcr.io PREFIX = staging-k8s.gcr.io
IMAGE = elasticsearch IMAGE = elasticsearch
TAG = v5.6.4 TAG = v6.2.4
build: build:
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) . docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
......
...@@ -12,6 +12,3 @@ path.data: /data ...@@ -12,6 +12,3 @@ path.data: /data
network.host: 0.0.0.0 network.host: 0.0.0.0
discovery.zen.minimum_master_nodes: ${MINIMUM_MASTER_NODES} discovery.zen.minimum_master_nodes: ${MINIMUM_MASTER_NODES}
xpack.security.enabled: false
xpack.monitoring.enabled: false
...@@ -26,4 +26,4 @@ export MINIMUM_MASTER_NODES=${MINIMUM_MASTER_NODES:-2} ...@@ -26,4 +26,4 @@ export MINIMUM_MASTER_NODES=${MINIMUM_MASTER_NODES:-2}
chown -R elasticsearch:elasticsearch /data chown -R elasticsearch:elasticsearch /data
./bin/elasticsearch_logging_discovery >> ./config/elasticsearch.yml ./bin/elasticsearch_logging_discovery >> ./config/elasticsearch.yml
exec su elasticsearch -c ./bin/es-docker exec su elasticsearch -c /usr/local/bin/docker-entrypoint.sh
...@@ -54,7 +54,7 @@ metadata: ...@@ -54,7 +54,7 @@ metadata:
namespace: kube-system namespace: kube-system
labels: labels:
k8s-app: elasticsearch-logging k8s-app: elasticsearch-logging
version: v5.6.4 version: v6.2.4
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
spec: spec:
...@@ -63,17 +63,17 @@ spec: ...@@ -63,17 +63,17 @@ spec:
selector: selector:
matchLabels: matchLabels:
k8s-app: elasticsearch-logging k8s-app: elasticsearch-logging
version: v5.6.4 version: v6.2.4
template: template:
metadata: metadata:
labels: labels:
k8s-app: elasticsearch-logging k8s-app: elasticsearch-logging
version: v5.6.4 version: v6.2.4
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
spec: spec:
serviceAccountName: elasticsearch-logging serviceAccountName: elasticsearch-logging
containers: containers:
- image: k8s.gcr.io/elasticsearch:v5.6.4 - image: k8s.gcr.io/elasticsearch:v6.2.4
name: elasticsearch-logging name: elasticsearch-logging
resources: resources:
# need more cpu upon initialization, therefore burstable class # need more cpu upon initialization, therefore burstable class
......
...@@ -48,24 +48,24 @@ roleRef: ...@@ -48,24 +48,24 @@ roleRef:
apiVersion: apps/v1 apiVersion: apps/v1
kind: DaemonSet kind: DaemonSet
metadata: metadata:
name: fluentd-es-v2.0.4 name: fluentd-es-v2.1.0
namespace: kube-system namespace: kube-system
labels: labels:
k8s-app: fluentd-es k8s-app: fluentd-es
version: v2.0.4 version: v2.1.0
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
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.0.4 version: v2.1.0
template: template:
metadata: metadata:
labels: labels:
k8s-app: fluentd-es k8s-app: fluentd-es
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
version: v2.0.4 version: v2.1.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).
...@@ -77,7 +77,7 @@ spec: ...@@ -77,7 +77,7 @@ spec:
serviceAccountName: fluentd-es serviceAccountName: fluentd-es
containers: containers:
- name: fluentd-es - name: fluentd-es
image: k8s.gcr.io/fluentd-elasticsearch:v2.0.4 image: k8s.gcr.io/fluentd-elasticsearch:v2.1.0
env: env:
- name: FLUENTD_ARGS - name: FLUENTD_ARGS
value: --no-supervisor -q value: --no-supervisor -q
......
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'fluentd', '<=1.1.0' gem 'fluentd', '~>1.1.3'
gem 'activesupport', '~>5.1.4' gem 'activesupport', '~>5.1.4'
gem 'fluent-plugin-kubernetes_metadata_filter', '~>1.0.0' gem 'fluent-plugin-kubernetes_metadata_filter', '~>1.0.0'
gem 'fluent-plugin-elasticsearch', '~>2.4.1' gem 'fluent-plugin-elasticsearch', '~>2.9.1'
gem 'fluent-plugin-systemd', '~>0.3.1' gem 'fluent-plugin-systemd', '~>0.3.1'
gem 'fluent-plugin-detect-exceptions', '~>0.0.9' gem 'fluent-plugin-detect-exceptions', '~>0.0.9'
gem 'fluent-plugin-prometheus', '~>0.3.0' gem 'fluent-plugin-prometheus', '~>0.3.0'
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
PREFIX = staging-k8s.gcr.io PREFIX = staging-k8s.gcr.io
IMAGE = fluentd-elasticsearch IMAGE = fluentd-elasticsearch
TAG = v2.0.4 TAG = v2.1.0
build: build:
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) . docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
......
...@@ -21,7 +21,7 @@ spec: ...@@ -21,7 +21,7 @@ spec:
spec: spec:
containers: containers:
- name: kibana-logging - name: kibana-logging
image: docker.elastic.co/kibana/kibana:5.6.4 image: docker.elastic.co/kibana/kibana-oss:6.2.4
resources: resources:
# need more cpu upon initialization, therefore burstable class # need more cpu upon initialization, therefore burstable class
limits: limits:
...@@ -33,10 +33,6 @@ spec: ...@@ -33,10 +33,6 @@ spec:
value: http://elasticsearch-logging:9200 value: http://elasticsearch-logging:9200
- name: SERVER_BASEPATH - name: SERVER_BASEPATH
value: /api/v1/namespaces/kube-system/services/kibana-logging/proxy value: /api/v1/namespaces/kube-system/services/kibana-logging/proxy
- name: XPACK_MONITORING_ENABLED
value: "false"
- name: XPACK_SECURITY_ENABLED
value: "false"
ports: ports:
- containerPort: 5601 - containerPort: 5601
name: ui name: ui
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment