#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:
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