kubernetes-event-forwarder-gelf:使用Graylog扩展日志格式转发Kubernetes事件
- H5_342166了解作者
- 22.2KB文件大小
- zip文件格式
- 0收藏次数
- VIP专享资源类型
- 0下载次数
- 2022-06-13 05:57上传日期
kubernetes-event-forwarder-gelf
使用Graylog扩展日志格式转发Kubernetes事件。
用法
Usage:
event-forwarder-gelf [OPTIONS]
Application Options:
-v, --verbose= Show verbose debug information [$VERBOSE]
--host= Graylog TCP endpoint host [$GRAYLOG_HOST]
--port= Graylog TCP endpoint port [$GRAYLOG_PORT]
--cluster= Name of this cluster [$CLUSTER]
--version Print version information
Help Options:
-h, --help Show this help message
在本地(具有本地权限)运行预先构建的图像 :
echo CLUSTER=cluster-name

kubernetes-event-forwarder-gelf-master.zip
- kubernetes-event-forwarder-gelf-master
- .gitignore50B
- go.mod1.6KB
- Dockerfile209B
- event-forwarder-gelf.go1.1KB
- Makefile665B
- src
- controller.go3.9KB
- util
- fqdn.go746B
- graylog.go343B
- kubernetes.go873B
- cli.go997B
- cli_test.go838B
- controller_test.go5.9KB
- .travis.yml155B
- LICENSE11.1KB
- CHANGELOG.md614B
- go.sum6.4KB
- README.md2.7KB
- .travis
- perform-releases.sh626B
- docs
- CONTRIBUTING.md1.1KB
- XING_CLAv2.md3.4KB
内容介绍
# kubernetes-event-forwarder-gelf
[](https://travis-ci.org/xing/kubernetes-event-forwarder-gelf)
Forward Kubernetes Events using the Graylog Extended Log Format.
## Usage
Usage:
event-forwarder-gelf [OPTIONS]
Application Options:
-v, --verbose= Show verbose debug information [$VERBOSE]
--host= Graylog TCP endpoint host [$GRAYLOG_HOST]
--port= Graylog TCP endpoint port [$GRAYLOG_PORT]
--cluster= Name of this cluster [$CLUSTER]
--version Print version information
Help Options:
-h, --help Show this help message
Run the pre-built image [`xingse/event-forwarder-gelf`] locally (with
local permission):
echo CLUSTER=cluster-name >> .env
echo GRAYLOG_HOST=graylog >> .env
echo GRAYLOG_PORT=12222 >> .env
docker run --env-file=.env xingse/event-forwarder-gelf
## Deployment
Run this controller on Kubernetes with the following commands:
kubectl create serviceaccount event-forwarder-gelf \
--namespace=kube-system
kubectl create clusterrole xing:controller:event-forwarder-gelf \
--verb=get,watch,list \
--resource=events
kubectl create clusterrolebinding xing:controller:event-forwarder-gelf \
--clusterrole=xing:controller:event-forwarder-gelf \
--serviceaccount=kube-system:event-forwarder-gelf
kubectl run event-forwarder-gelf \
--image=xingse/event-forwarder-gelf \
--env=CLUSTER=cluster-name \
--env=GRAYLOG_HOST=graylog \
--env=GRAYLOG_PORT=12222 \
--serviceaccount=event-forwarder-gelf
## Development
This project uses go modules introduced by [go 1.11][go-modules]. Please put the
project somewhere outside of your GOPATH to make go automatically recogninze
this.
All build and install steps are managed in the [Makefile](Makefile). `make test`
will fetch external dependencies, compile the code and run the tests. If all
goes well, hack along and submit a pull request. You might need to run the `go
mod tidy` after updating dependencies.
[`xingse/event-forwarder-gelf`]: https://hub.docker.com/r/xingse/event-forwarder-gelf
[go-modules]: https://github.com/golang/go/wiki/Modules
### Releases
Releases are a two-step process, beginning with a manual step:
* Create a release commit
* Increase the version number in [event-forwarder-gelf.go/VERSION](event-forwarder-gelf.go#L13)
* Adjust the [CHANGELOG](CHANGELOG.md)
* Run `make release`, which will create an image, retrieve the version from the
binary, create a git tag and push both your commit and the tag
The Travis CI run will then realize that the current tag refers to the current master commit and
will tag the built docker image accordingly.
评论



相关推荐
- Go-kubectl-debug是一个简单的kubectl插件能够帮助你便捷地进行Kubernetes上的Pod排障诊断.kubectl-debug 是一个简单的 kubectl 插件, 能够帮助你便捷地进行 Kubernetes 上的 Pod 排障诊断.
- k8s-harness:流浪汉,用于测试您的Kubernetes应用:rocket: 在一次性的,类似于产品的Kubernetes集群中测试您的应用 :rocket: [[准备好后在此处插入gif ]] 但为什么? k8s-harness适用于以下情况: 您有在生产环境中运行在Kubernetes上的应用程序(GKE,EKS,AKS...
- pihole-kubernetes:在Kubernetes上使用PiHolepihole-kubernetes:在Kubernetes上使用PiHole
- kubernetes-events-to-slack:将K8S事件流传输到SlackS8流媒体的K8S事件 使用传入的Web钩子将k8s事件从k8s命名空间作为Slack机器人从k8s命名空间流传输到Slack通道。 无需令牌。 配置 通过在部署或configmap中设置的env变量完成配置。 K8S_EVENTS_STREAMER_INCOMING_...
- Kubernetes+in+Action-Manning(2018)Our team had to get to know the ins and outs of Kubernetes quickly to set a proper direction for our software and take advantage of everything Kubernetes had to offer. When faced with a problem, it ...
- Kubernetes in ActionKubernetes in Action teaches you to use Kubernetes to deploy container-based distributed applications. You'll start with an overview of Docker and Kubernetes before building your first Kubernetes ...
- 喀山:Elixir的Kubernetes API客户端喀山:Elixir的Kubernetes API客户端
- 一个应用程序,帮助您监控您的Kubernetes集群,调试关键部署,并为标准实践提供建议- infracloudio/botkuBotKube integration with , or helps you monitor your Kubernetes cluster, debug critical deployments and gives recommendations for standard practices by running checks on the Kubernetes resources. ...
- Kubernetes基于Kubernetes的基础架构 描述 由Kubernetes从头开始部署基础架构 入门 依存关系 Linux Ubuntu 20.x版 正在安装 如何/在哪里下载程序 需要对文件/文件夹进行任何修改 执行程序 如何运行程序 分步项目符号 code ...
- KubernetesKubernetes
最新资源