Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # download id_rsa: https://pastebin.com/XVG11ZeW
- chmod 700 id_rsa
- # get available ip
- https://etherpad.openstack.org/p/osa-ny1.b
- # enter machine
- ssh -i id_rsa ubuntu@<my_ip>
- # enter lab env
- cd lab/
- git clone https://github.com/7mode/templates.git
- ./run_stack.sh
- kubectl apply -f numbercrancher.yml
- kubectl get pod # redo until pod is RUNNING
- ./run_proxy.sh &
- # check out CLI commands and UI
- # user: admin
- # pass: password
- # ********** be under demo project *********
- # ********** be under project tab *********
- # check Prometheus dashboard
- http://<my_ip>:9090/graph?g0.range_input=15m&g0.stacked=0&g0.expr=rate(libvirt_cpu_stats_user_time_nanosecs%7Bname%3D~%22test.*%22%7D%5B1m%5D)%2F10000000&g0.tab=0&g1.range_input=15m&g1.stacked=0&g1.expr=rate(function_exec_time_sum%5B1m%5D)%20%2F%20rate(function_exec_time_count%5B1m%5D)&g1.tab=0&g2.range_input=15m&g2.stacked=0&g2.expr=avg%20by%20(instance)%20(rate(node_cpu_seconds_total%7Bmode%3D%27user%27%7D%5B1m%5D))*100&g2.tab=0
- # run stress to raise Prometheus alarms
- ./run _stress.sh
- # check out CLI commands and UI
- # check out Prometheus dashboard
- # lab exercises
- cd templates
- # check out first template - heat stack with two vms
- vim step1.yaml
- vitrage template validate --path step1.yaml
- vitrage template add --path step1.yaml
- # check out CLI commands and UI
- # fill second template - host containing two vms
- vim step2.yaml
- vitrage template validate --path step3.yaml
- vitrage template add --path step2.yaml
- # check out CLI commands and UI
- # fill 3rd template - k8s comprised host
- vim step3.yaml
- vitrage template validate --path step3.yaml
- vitrage template add --path step3.yaml
- # check out CLI commands and UI
- # back to cleaned env
- cd ..
- ./kill_stress.sh
Add Comment
Please, Sign In to add comment