ibm-skydive-dev
by Helm
Skydive is an open source real-time network topology and protocols analyzer.
About this chart
Skydive
Introduction
Skydive is an open source real-time network topology and protocols analyzer. It aims to provide a comprehensive way of understanding what is happening in the network infrastructure.
Skydive agents collect topology informations and flows and forward them to a central agent for further analysis. All the informations are stored in an Elasticsearch database.
Skydive is SDN-agnostic but provides SDN drivers in order to enhance the topology and flows informations.
Prerequisites
Skydive requires:
- Kubernetes cluster 1.10.0 or higher
And can run on any one of the following private/hosted platforms:
- IBM Cloud Private 2.1.0.3 or higher
- IBM Cloud Kubernetes Service
- Persistent volume is needed only if you want to "look back in time" with skydive (that is, if you are interested in the monitoring history); if you don't , then it is not required (an elastic search container will not be created). You can create a persistent volume via the IBM Cloud Private interface or through a yaml file. For example:
apiVersion: v1
kind: PersistentVolume
metadata:
name: <persistent volume name>
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: <PATH>
- Skydive Community Image. Docker Hub container registry docker.io/skydive/* must be added to the list of trusted registries. First make sure you have the ClusterAdminRole role. Next under an admin role setup image policy:
kind: ClusterImagePolicy
metadata:
name: skydive-ibmcloud-image-policy
spec:
repositories:
- name: docker.io/skydive/*
Finally install ibm-skydive-dev using the docker.io/skydive/skydive:tag image.
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release stable/ibm-skydive-dev
The command deploys skydive on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Verifying the Chart
See NOTES.txt associated with this chart for verification instructions
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Security implications
This chart deploys privileged kubernetes daemon-set. The implications are automatically creation of privileged container per kubernetes node capable of monitoring network and system behavior and used to capture Linux OS level information. The daemon-set also uses hostpath feature interacting with Linux OS, capturing info on network components.
Configuration
The following tables lists the configurable parameters of skydive chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | Skydive image repository | ibmcom/skydive |
image.tag | Image tag | 0.22.0 |
image.secretName | Image secret for private repository | Empty |
image.imagePullPolicy | Image pull policy | IfNotPresent |
resources | CPU/Memory resource requests/limits | Memory: 8192Mi, CPU: 2000m |
service.name | service name | skydive |
service.type | k8s service type (e.g. NodePort, LoadBalancer) | NodePort |
service.port | TCP port | 8082 |
etcd.port | TCP port | 12379 |
analyzer.topology.fabric | Fabric connecting k8s nodes | TOR1->*[Type=host]/eth0 |
env | Extended environment variables | Empty |
storage.elasticsearch.host | ElasticSearch host | 127.0.0.1 |
storage.elasticsearch.port | ElasticSearch port | 9200 |
storage.flows.indicesToKeep | Number of flow indices to keep in storage | 10 |
storage.flows.indexEntriesLimit | Number of flow records to keep per index | 10000 |
storage.topology.indicesToKeep | Number of topology indices to keep in storage | 10 |
storage.topology.indexEntriesLimit | Number of topology records to keep per index | 10000 |
persistence.enabled | Use a PVC to persist data | false |
persistence.useDynamicProvisioning | Specify a storageclass or leave empty | false |
dataVolume.name | Name of the PVC to be created | datavolume |
dataVolume.existingClaimName | Provide an existing PersistentVolumeClaim | nil |
dataVolume.storageClassName | Storage class of backing PVC | nil |
dataVolume.size | Size of data volume | 10Gi |
Chart Details
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Topology fabric
The chart allows definition of static interfaces and links to be added to skydive topology view by setting the analyzer.topology.fabric parameter. This is useful to define external fabric resources like : TOR, Router, etc.
Details on this parameter field are available under the analyzer.topology.Fabric section in the following link:
https://github.com/skydive-project/skydive/blob/master/etc/skydive.yml.default
Env
The chart allows definition of extended environment variables to be used by Skydive components. The list of configuration parameters is available on https://github.com/skydive-project/skydive/blob/master/etc/skydive.yml.default. Use upper-case/underline semantics of a configuration parameter prefixed by SKYDIVE_ to use as an environment variable. For example, to enable debug add to the deployment .yml file:
env:
# Enable debug
- name: SKYDIVE_LOGGING_LEVEL
value: "DEBUG"
Environment variables for SkyDive can also be defined using UI. The Env field should be changed, for example:
[{"name":"SKYDIVE_LOGGING_LEVEL","value":"DEBUG"}]
PodSecurityPolicy Requirements
None
Resources Required
The chart deploys pods and daemon-set consuming minimum resources as specified in the resources configuration parameter (default: Memory: 512Mi, CPU: 100m)
Limitations
Refer to section Security implications
Persistence
Skydive analyzer uses elasticsearch to store data at the /usr/share/elasticsearch/data path of the Analyzer container.
The chart mounts a Persistent Volume at this location. User needs to create a PV before chart deployed, or enable dynamic volume provisioning in chart configuration.
To make Elasticsearch work properly the user needs to set kernel setting vm.max_map_count to at least 262144 on each worker node. Please check https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docker.html
Documentation
Skydive documentation can be found here:
Contributing
Your contributions are more than welcome. Please check https://github.com/skydive-project/skydive/blob/master/CONTRIBUTING.md to know about the process.
Contact and Support
- IRC: #skydive-project on irc.freenode.net
- Mailing list: https://www.redhat.com/mailman/listinfo/skydive-dev
- Issues: https://github.com/skydive-project/skydive/issues
Deploy ibm-skydive-dev with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-skydive-dev on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartibm-skydive-dev is pinned at v1.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply