Skip to content

skydive-project/skydive-golang-operator

Repository files navigation

Skydive Operator

This is an operator to deploy skydive analyzer, agents and flow-exporter.

Getting Started

To set up this operator follow the instructions below:

Prerequisites

  • Make sure you have golang installed on your machine, The go-lang version that this operator was built on is go1.15.7 darwin/amd64

  • An openshift cluster

Installation - Open-Shift

run the script (make sure you are logged into open shift cluster):

./deploy_skydive_operator_on_openshift.sh

If for some reason you have changed your KUBECONFIG default location please update the KUBECONFIG environment variable by using this command:

export KUBECONFIG=$PATH_TO_YOUR_KUBECONFIG

Analyzer UI

1a. Check that all the pods, services and routes are running and afterwards run the following command:

oc get routes

2a. post the url into your web-browser (make sure you have got an access to the cluster and are not blocked by it's firewall)

1b. If routes option doesn't work, run the following command

oc port-forward service/skydive-analyzer 8082:8082 --namespace=skydive

2b. Now open web-browser on localhost:8082

Flow Exporter

After a successful deployment of skydive operator run the script:

./deploy_skydive_flow_exporter_operator.sh

for deployment developing using minio run: (don't forget to kill the old flow_exporter_operator if still running)

./hack/deploy_skydive_flow_exporter_dev_operator.sh

Prometheus Connector

After a successful deployment of skydive operator run the script:

./deploy_prometheus_connector.sh

Customize skydive deployment / CRD

Modify the current config/skydive_v1_skydive.yaml and pick what you wish to deploy (insert true or false in the relevant field), the options are as follows:

  • Skydive agents
  • Skydive analyzer
    • Service route

You can provide the skydive operator with environments variables in order to customize your skydive deployment. Checkout this example of crd to get started with providing environment variables to the skydive operator, full list of acceptable enviorment variables are listed here

Choose your logging level (defaults to DEBUG)