Skip to content

Instantly share code, notes, and snippets.

View vnugent's full-sized avatar

Viet Nguyen vnugent

View GitHub Profile
@vnugent
vnugent / hosa-test1.md
Last active March 22, 2017 14:44
HOSA test 1

Environment:

  • 1 VM 8GB RAM, 1 master, 1 node on the same VM. Installed from released binary
  • RH Public OS1
  • Origin version: 1.4.1
  • HOSA version: Unknown

Master: http://master.cloud1.hawkular.org

Test tools:

Number of pods: 10
{
"promgen/example-5-2r548": {
"metrics": [
{
"type": "gauge",
"id": "e1bda985-0a0f-11e7-972b-fa163e4fa2fc_custom_gaugeA",
"data_count": 60
},
{
Number of pods: 20
{
"promgen/example-5-j6jea": {
"metrics": [
{
"type": "gauge",
"id": "98521d12-0a8b-11e7-a6bf-fa163e4fa2fc_custom_gaugeA",
"data_count": 60
},
{
@vnugent
vnugent / 239pods-30-minutes.txt
Created March 23, 2017 17:09
239 pods/node, 30minutes of raw metrics
/home/vnguyen/git/.pyme/bin/python2.7 /home/vnguyen/git/pyme/pyme/main.py
Number of pods: 239
1
2
3
4
5
6
7
8
import yaml
import sys
myParam = {
"description": "Queue size parameter for the collector",
"displayName": "Jaeger Collector Queue Size",
"name": "COLLECTOR_QUEUE_SIZE",
"required": False,
"value": "300000"
}
@vnugent
vnugent / leaning-tower-of-pisa.geojson
Last active March 13, 2018 17:05
Geojson example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Label (enable) project for auto injection

 oc label namespace $(oc project -q)  istio-injection=enabled

clean up sidecar containers part of deployment pods

oc get pod |grep deploy | awk '{print $1}' | xargs --no-run-if-empty -I {} oc rsh -c istio-proxy {} pkill -f istio
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: kiali
namespace: $NAMESPACE
labels:
app: kiali
type: Opaque
data:
@vnugent
vnugent / istio-minikube.md
Last active October 26, 2018 14:48
Istio with minikube

Install Notes for Minikube, Istio and Kiali via Helm on Fedora 28

Use this link for 1.1 release https://preliminary.istio.io/

Step 0

Follow official docs to install kvm2, libvirtd, kubectl and helm

Step 1

Start minikube.