diff --git a/templates/sysdig-cloud/0/docker-compose.yml b/templates/sysdig-cloud/0/docker-compose.yml new file mode 100644 index 0000000..64d916a --- /dev/null +++ b/templates/sysdig-cloud/0/docker-compose.yml @@ -0,0 +1,20 @@ +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}" + 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} diff --git a/templates/sysdig-cloud/0/rancher-compose.yml b/templates/sysdig-cloud/0/rancher-compose.yml new file mode 100644 index 0000000..06db300 --- /dev/null +++ b/templates/sysdig-cloud/0/rancher-compose.yml @@ -0,0 +1,32 @@ +.catalog: + name: "Sysdig Cloud" + version: "v0" + description: "Container-Native Application and Infrastructure Monitoring" + 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 diff --git a/templates/sysdig-cloud/catalogIcon-sysdig-cloud.svg b/templates/sysdig-cloud/catalogIcon-sysdig-cloud.svg new file mode 100644 index 0000000..5ab217b --- /dev/null +++ b/templates/sysdig-cloud/catalogIcon-sysdig-cloud.svg @@ -0,0 +1,14 @@ + + + + + + diff --git a/templates/sysdig-cloud/config.yml b/templates/sysdig-cloud/config.yml new file mode 100644 index 0000000..6bf4120 --- /dev/null +++ b/templates/sysdig-cloud/config.yml @@ -0,0 +1,5 @@ +name: Sysdig Cloud +description: | + Container-Native Application and Infrastructure Monitoring +version: v0 +category: Monitoring diff --git a/templates/sysdig/0/docker-compose.yml b/templates/sysdig/0/docker-compose.yml new file mode 100644 index 0000000..9e5d475 --- /dev/null +++ b/templates/sysdig/0/docker-compose.yml @@ -0,0 +1,16 @@ +sysdig: + container_name: sysdig + privileged: true + stdin_open: true + tty: true + image: sysdig/sysdig:${VERSION} + 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} \ No newline at end of file diff --git a/templates/sysdig/0/rancher-compose.yml b/templates/sysdig/0/rancher-compose.yml new file mode 100644 index 0000000..16f77d5 --- /dev/null +++ b/templates/sysdig/0/rancher-compose.yml @@ -0,0 +1,17 @@ +.catalog: + name: "Sysdig" + version: "v0" + description: "Container-Native System Visibility and Troubleshooting" + questions: + - variable: "VERSION" + label: "Sysdig version" + description: "Specify a version of the sysdig 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 host label here that can be used to exclude deployment of the sysdig container on any given host. Eg: sysdig.exclude_sysdig=true (you could then add the label 'sysdig.exclude_sysdig=true' to any host to exclude sysdig from that host)." + type: "string" + default: "sysdig.exclude_sysdig=true" + required: true diff --git a/templates/sysdig/catalogIcon-sysdig.svg b/templates/sysdig/catalogIcon-sysdig.svg new file mode 100644 index 0000000..908da64 --- /dev/null +++ b/templates/sysdig/catalogIcon-sysdig.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/templates/sysdig/config.yml b/templates/sysdig/config.yml new file mode 100644 index 0000000..4b04f67 --- /dev/null +++ b/templates/sysdig/config.yml @@ -0,0 +1,5 @@ +name: Sysdig +description: | + Container-Native System Visibility and Troubleshooting +version: v0 +category: Monitoring