Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

add filebeat for rancher catalog for fast deployment #733

Merged
merged 5 commits into from
Feb 8, 2018

Conversation

easonlau02
Copy link
Contributor

Hi guys,

Here to add filebeat 6.1.1 for rancher catalog for fast deployment.
Hope we can use at the rancher community catalog.
Please kindly help review. Thanks.

Regards/Eason

version: 6.1.1
category: Shipper
#maintainer: eason.lau02@hotmail.com
#license: MIT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintainer field was failing on build, due to bad format, instead of comment out could you please fix it to fit format??...Needs to be specified as maintainer: "<NAME> <SURNAME> <<EMAIL>>"
Any reason to comment out License field??

-#maintainer: eason.lau02@hotmail.com
+maintainer: "Eason Lau <eason.lau02@hotmail.com>"

container_name: filebeat-alpine-5.3.1
restart: always
labels:
io.rancher.container.pull_image: always
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to pull image always.

-    labels:
-      io.rancher.container.pull_image: always

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes. which is my rancher docker-compose version. Remove at next commit.

container_name: filebeat-alpine-5.6.3
restart: always
labels:
io.rancher.container.pull_image: always
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to pull image always.

-    labels:
-      io.rancher.container.pull_image: always

container_name: filebeat-alpine-6.1.1
restart: always
labels:
io.rancher.container.pull_image: always
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to pull image always.

-    labels:
-      io.rancher.container.pull_image: always

version: "6.1.1"
description: "Catalog's rancher-compose"
minimun_rancher_version: v1.0.1
maximun_rancher_version: v1.6.12
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this config, package wouldn't be showed at rancher latest version...Not working at last rancher version release v1.6.14??

If works, better...

-  maximun_rancher_version: v1.6.12

version: "5.6.3"
description: "Catalog's rancher-compose"
minimun_rancher_version: v1.0.1
maximun_rancher_version: v1.6.12
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this config, package wouldn't be showed at rancher latest version...Not working at last rancher version release v1.6.14??

If works, better...

-  maximun_rancher_version: v1.6.12

version: "5.3.1"
description: "Catalog's rancher-compose"
minimun_rancher_version: v1.0.1
maximun_rancher_version: v1.6.12
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this config, package wouldn't be showed at rancher latest version...Not working at last rancher version release v1.6.14??

If works, better...

-  maximun_rancher_version: v1.6.12

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it supports. Updated later.

- QA
- PP
- INT
- PROD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice to have predefined values, but what happens if my environments notation is different?? Mey would be better to use an string type to allow free input. What do you think??

- QA
- PP
- INT
- PROD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice to have predefined values, but what happens if my environments notation is different?? Mey would be better to use an string type to allow free input. What do you think??

- QA
- PP
- INT
- PROD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice to have predefined values, but what happens if my environments notation is different?? Mey would be better to use an string type to allow free input. What do you think??

@easonlau02
Copy link
Contributor Author

Updated and passed checking. @rawmind0

@rawmind0
Copy link
Contributor

rawmind0 commented Feb 7, 2018

Hi @easonlau02 , thanks for PR and the changes.

You are assuming that the package would be run at host level, forcing network_mode and bind volumes to get config and logs files. What do you think to add distinct volumes driver as bind, nfs,... to make the package more versatile?? May be better if ${APPLOG_PATH} and ${NGINXLOG_PATH} volumes would be mounted in read-only mode??

Also network-mode could be managed too if logstash would be running inside rancher. What do you think add hosts or managed option??

@easonlau02
Copy link
Contributor Author

easonlau02 commented Feb 7, 2018

hi @rawmind0, thanks for your fast review.

For ${APPLOG_PATH} and ${NGINXLOG_PATH} indeed need read-only. let me update.
But for network-mode, I don't think let it as managed, which can prevent from running with logstash as one host, so that someone maybe set it as localhost.

Now let network-mode as host, which will support logstash host as localhost or server name or domain. What do you think about this??

@rawmind0
Copy link
Contributor

rawmind0 commented Feb 8, 2018

I get your point @easonlau02, thanks for the changes.

LGTM...

@rawmind0 rawmind0 merged commit 54013ac into rancher:master Feb 8, 2018
easonlau02 added a commit to easonlau02/community-catalog that referenced this pull request Feb 8, 2018
Merge pull request rancher#733 from easonlau02/filebeat-6.1.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants