[Sysdig Cloud](http://www.sysdig.com/) is the first and only monitoring, alerting, and troubleshooting solution designed from the ground up to provide unprecedented visibility into containerized infrastructures.
Sysdig Cloud comes with built-in, first class support for Kubernetes. In order to instrument your Kubernetes environment with Sysdig Cloud, you simply need to install the Sysdig Cloud agent container on each underlying host in your Kubernetes cluster. Sysdig Cloud will automatically begin monitoring all of your hosts, apps, pods, and services, and will also automatically connect to the Kubernetes API to pull relevant metadata about your environment.
# Example Installation Files
Provided here are two example sysdig.yaml files that can be used to automatically deploy the Sysdig Cloud agent container across a Kubernetes cluster.
The recommended method is using daemon sets - minimum kubernetes version 1.1.1.
If daemon sets are not available, then the replication controller method can be used (based on [this hack](https://stackoverflow.com/questions/33377054/how-to-require-one-pod-per-minion-kublet-when-configuring-a-replication-controll/33381862#33381862)).
# Latest Files
See here for the latest maintained and updated versions of these example files:
#Use this sysdig.yaml when Daemon Sets are NOT enabled on Kubernetes (minimum version 1.1.1). If Daemon Sets are available, use the other example sysdig.yaml - that is the recommended method.
apiVersion:v1
kind:ReplicationController
metadata:
name:sysdig-agent
labels:
app:sysdig-agent
spec:
replicas:100#REQUIRED - replace with the maximum number of slave nodes in the cluster
template:
metadata:
labels:
name:sysdig-agent
spec:
volumes:
-name:docker-sock
hostPath:
path:/var/run/docker.sock
-name:dev-vol
hostPath:
path:/dev
-name:proc-vol
hostPath:
path:/proc
-name:boot-vol
hostPath:
path:/boot
-name:modules-vol
hostPath:
path:/lib/modules
-name:usr-vol
hostPath:
path:/usr
hostNetwork:true
hostPID:true
containers:
-name:sysdig-agent
image:sysdig/agent
ports:
-containerPort:6666
hostPort:6666
securityContext:
privileged:true
env:
-name:ACCESS_KEY#REQUIRED - replace with your Sysdig Cloud access key
value:8312341g-5678-abcd-4a2b2c-33bcsd655
# - name: K8S_DELEGATED_NODE #OPTIONAL - only necessary when connecting remotely to API server
# value: <DELEGATED NODE IP>
# - name: K8S_API_URI #OPTIONAL - only necessary when connecting remotely to API server