This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test if server is running: | |
# curl -X GET https://<HOSTNAME>/hawkular/metrics/status -k | |
curl -X GET https://yzamir-centos7-1.eng.lab.tlv.redhat.com/hawkular/metrics/status -k | |
# test if bearer authentication works | |
# curl -X GET https://<HOSTNAME>/hawkular/metrics/metricss -kmetrics -k --header "hawkular-tenant: _system" --header "authorization: Bearer <TOKEN>" | |
curl -X GET https://yzamir-centos7-1.eng.lab.tlv.redhat.com/hawkular/metrics/metrics -k --header "hawkular-tenant: _system" --header "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJtYW5hZ2VtZW50LWluZnJhIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im1hbmFnZW1lbnQtYWRtaW4tdG9rZW4tcnAxZ3giLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibWFuYWdlbWVudC1hZG1pbiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImMzODE3NWU5LTM5NGItMTFlNi1iOWFkLTAwMWE0YTIzMTRkNSIsInN1YiI6InN5c3RlbTpzZXJ2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[----] F, [2017-04-24T13:52:08.005662 #26260:342941c] FATAL -- : Error caught: [Errno::ECONNREFUSED] Failed to open TCP connection to localhost:8444 (Connection refused - connect(2) for "localhost" port 8444) | |
/home/yzamir/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:882:in `rescue in block in connect' | |
/home/yzamir/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:879:in `block in connect' | |
/home/yzamir/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/timeout.rb:91:in `block in timeout' | |
/home/yzamir/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/timeout.rb:101:in `timeout' | |
/home/yzamir/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:878:in `connect' | |
/home/yzamir/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:863:in `do_start' | |
/home/yzamir/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/net/http.rb:852:in `start' | |
/home/yzamir/.rvm/gems/ruby-2.3.3/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in `transmit' | |
/home/yzamir/.rvm/gems/ruby-2.3.3/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in `execute' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the aws tool, dnf or yum | |
dnf install awscli | |
# Genrate a list of all avalilable mtrics | |
aws cloudwatch list-metrics | \ | |
sed ':a;N;$!ba;s/[ \n]//g;s/{"Namespace":/\n{"Namespace":/g;s/{"Metrics":\[//g;s/}\]}/}/g;s/,\n/\n/g' | \ | |
sort | |
# Get value of last collected metrics | |
export METRICS='{"Namespace":"AWS/ELB","Dimensions":[{"Name":"Namespace","Value":"AWS"}],"MetricName":"Latency"}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/shells:fish:release:3/Fedora_29/shells:fish:release:3.repo | |
sudo dnf update -y | |
sudo dnf install fish powerline powerline-fonts mozilla-fira-mono-fonts | |
curl -L https://get.oh-my.fish | fish | |
omf update | |
omf install bobthefish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dnf install haproxy | |
sudo setsebool -P haproxy_connect_any=1 | |
sudo vim /etc/haproxy/haproxy.cfg | |
``` | |
#--------------------------------------------------------------------- | |
# pass through SSL for api and apps | |
#--------------------------------------------------------------------- | |
frontend https_api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global --bool pull.rebase true | |
git config --global push.default simple | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global user.name yaacov | |
git config --global user.email [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl proxy --port=8080 --address='0.0.0.0' --accept-hosts='.*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If can't create worker check iptables rulls: | |
iptables -I INPUT -p tcp -s 192.168.126.0/24 -d 192.168.122.1 --dport 16509 -j ACCEPT -m comment --comment "Allow insecure libvirt clients" | |
# When stuck on samples.operator run: | |
oc delete configs.samples.operator.openshift.io cluster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@dell-r730-002:~# kubectl get pod -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase,NODE:.spec.nodeName --all-namespaces | |
NAME STATUS NODE | |
importer-cdrom-vm-cdrom-example-example-qdqlz Pending <none> | |
importer-cdrom-vm-cdrom-vm-cirros-4rzss Pending <none> | |
importer-cdrom-vm-disk2-cdrom-vm-cdrom-vm-hv64m Pending <none> | |
importer-cdrom-vm-disk2-qdvqp Pending <none> | |
importer-rawagner-pvc-cdrom-vm-hpdzl Pending <none> | |
importer-rawagner-pvc-example-5j4gf Pending <none> | |
importer-rawagner-pvc-vm-cirros-2p657 Pending <none> | |
virt-launcher-vm-cirros-gtbr8 Running working-b7sd9-worker-0-6zv8n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oc get node working-b7sd9-worker-0-fdqsc -o yaml | |
apiVersion: v1 | |
kind: Node | |
metadata: | |
annotations: | |
kubevirt.io/heartbeat: "2019-09-04T15:01:29Z" | |
machine.openshift.io/machine: openshift-machine-api/working-b7sd9-worker-0-fdqsc | |
machineconfiguration.openshift.io/currentConfig: rendered-worker-4fffe5d42714996068049d7028611f74 | |
machineconfiguration.openshift.io/desiredConfig: rendered-worker-4fffe5d42714996068049d7028611f74 | |
machineconfiguration.openshift.io/ssh: accessed |
OlderNewer