Merge pull request #278 from jmreicha/master

sysdig-cloud: Cut logs at custom size and make into a system service
This commit is contained in:
Raúl Sánchez 2016-11-29 19:07:08 +01:00 committed by GitHub
commit 41c2541e98
3 changed files with 65 additions and 3 deletions

View File

@ -0,0 +1,22 @@
sysdig-agent:
container_name: sysdig-agent
privileged: true
image: sysdig/agent:${VERSION}
net: "host"
pid: "host"
environment:
ACCESS_KEY: ${SDC_ACCESS_KEY}
TAGS: "${SDC_TAGS}"
ADDITIONAL_CONF: "${SDC_ADDITIONAL_CONF}"
log_opt:
max-size: ${LOG_SIZE}
volumes:
- /var/run/docker.sock:/host/var/run/docker.sock
- /dev:/host/dev
- /proc:/host/proc:ro
- /boot:/host/boot:ro
- /lib/modules:/host/lib/modules:ro
- /usr:/host/usr:ro
labels:
io.rancher.scheduler.global: true
io.rancher.scheduler.affinity:host_label_ne: ${HOST_EXCLUDE_LABEL}

View File

@ -0,0 +1,40 @@
.catalog:
name: "Sysdig Cloud"
version: "v1"
description: "Container-Native Application and Infrastructure Monitoring"
minimum_rancher_version: v1.0.1
uuid: sysdig-cloud-1
questions:
- variable: "SDC_ACCESS_KEY"
label: "Sysdig Cloud access key"
description: "Your unique Sysdig Cloud access key - register for a Sysdig Cloud account at www.sysdig.com to receive a key."
type: "string"
required: true
- variable: "SDC_TAGS"
label: "Sysdig Cloud tags"
description: "Tags to be applied to all hosts on which the Sysdig Cloud container is deployed - these will surface in the Sysdig Cloud app. Should be a comma-separated list in the form of TAG_NAME:TAG_VALUE. For example: role:webserver,location:europe."
type: "string"
required: false
- variable: "VERSION"
label: "Sysdig Cloud version"
description: "Specify a version of the Sysdig Cloud container to pull (default will pull latest stable version)."
type: "string"
default: "latest"
required: true
- variable: "HOST_EXCLUDE_LABEL"
label: "Host exclude label"
description: "Specify a Rancher host label here that can be used to exclude deployment of the Sysdig Cloud container on any given host. Eg: sysdig.exclude_sysdigcloud=true (you could then add the label 'sysdig.exclude_sysdigcloud=true' to any Rancher host to exclude Sysdig Cloud from that host). To filter on any of multiple labels, use a comma-separated list."
type: "string"
default: sysdig.exclude_sysdigcloud=true
required: true
- variable: "SDC_ADDITIONAL_CONF"
label: "Additional Configuration"
description: "Content must be valid yaml code, use the escape \n parameter for new lines and adhere to proper indent requirements."
type: "string"
required: false
- variable: "LOG_SIZE"
label: "Max log size"
description: "Max log size"
type: "string"
default: 100mb
required: true

View File

@ -1,5 +1,5 @@
name: Sysdig Cloud
name: Sysdig Cloud v1
description: |
Container-Native Application and Infrastructure Monitoring
version: v0
category: Monitoring
version: v1
category: Rancher Services