-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add deployment test #8
base: master
Are you sure you want to change the base?
Conversation
run operator-tests |
ping @sa-cloud |
# Create a general Skydive resource | ||
kubectl create -f deploy/crds/charts.helm.k8s.io_v1alpha1_skydive_cr.yaml | ||
# Create Skydive as netflow collector resource | ||
kubectl create -f deploy/crds/charts.helm.k8s.io_v1alpha1_netflowcollector_cr.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one of the _cr.yaml should be installed at a time. Each of them deploys a Skydive, and only one Skydive instance can run at a cluster (unless this was fixed)
# Create Skydive as netflow collector resource | ||
kubectl create -f deploy/crds/charts.helm.k8s.io_v1alpha1_netflowcollector_cr.yaml | ||
|
||
# Do some tests... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
For kubectl create -f deploy/crds/charts.helm.k8s.io_v1alpha1_netflowcollector_cr.yaml
kubectl get pods
We expect the same as with helm deployment - skydive pods are up and running
NAME READY STATUS RESTARTS AGE
netflow-collector-skydive-agent-f8zgq 1/1 Running 0 3m8s
netflow-collector-skydive-agent-klbmb 1/1 Running 0 3m8s
netflow-collector-skydive-agent-zmb5m 1/1 Running 0 3m8s
netflow-collector-skydive-analyzer-866d9778c4-bw4pk 3/3 Running 0 3m8s
skydive-operator-67c958f454-fkg9j 1/1 Running 0 3m28s -
The same as above for kubectl create -f deploy/crds/charts.helm.k8s.io_v1alpha1_netflowcollector_cr.yaml (after removing the above by running kubectl delete -f deploy/crds/charts.helm.k8s.io_v1alpha1_skydive_cr.yaml)
-
When deploying the charts.helm.k8s.io_v1alpha1_netflowcollector_cr.yaml we can optionally go deeper:
kubectl describe pods netflow-collector-skydive-analyzer-866
and see it has 3 containers: skydive-analyzer, skydive-exporter and skydive-minio, and all are running
No description provided.