Skip to content

Instantly share code, notes, and snippets.

View lucasponce's full-sized avatar

Lucas Ponce lucasponce

View GitHub Profile
@lucasponce
lucasponce / gist:e8297b26940fd655f0592a968c396ee1
Last active July 15, 2020 15:11
input[type='range] style
.requests-total input[type='range'] {
-webkit-appearance: none;
width: 100%;
height: 25px;
background: #d3d3d3;
outline: none;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
}
~/Projects/gopath/src/github.com/kiali/kiali(3scale-reuse-handler) $ make build
Building...
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build \
-o /home/lponce/Projects/gopath/bin/kiali -ldflags "-X main.version=v1.21.0-SNAPSHOT -X main.commitHash=9d06cbfff1a9a6f2e8b34a9107b4325a94525c50"
go: inconsistent vendoring in /home/lponce/Projects/gopath/src/github.com/kiali/kiali:
github.com/NYTimes/gziphandler@v1.1.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/beorn7/perks@v1.0.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/dgrijalva/jwt-go@v3.2.0+incompatible: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/golang/glog@v0.0.0-20160126235308-23def4e6c14b: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/golang/protobuf@v1.3.5: is explicitly required in go.mod, but not marked as exp
@lucasponce
lucasponce / test-kiali-3scale-extension.md
Created February 18, 2020 11:03
Testing Kiali extensions (3scale)

Install 3scale adapter definition on Minikube (adapter is not installed, but enough for testing):

kubectl apply -n istio-system -f https://raw.githubusercontent.com/3scale/3scale-istio-adapter/master/config/threescale.yaml

Enable 3scale adapter OpenShift / Maistra:

oc edit smcp/full-install -n istio-system
spec:
  threeScale:

enabled: true

@lucasponce
lucasponce / full-stack-developer-setup.md
Last active March 2, 2020 19:16
Sharing my setup: How I develop on Kiali

Hi,

Kiali maintainers typically work on a full stack basis contributing into back-end and front-end repos.

Here I'm going to share some notes about my laptop setup that hope it may help to new maintainers to jump into the project and prepare your first PR.

The way you setup your workstation could be quite personal, so I don't think there are two Kiali maintainers sharing the same :-).

Hardware & Operating System

#!/usr/bin/env bash
KIALI=$HOME/Projects/gopath/src/github.com/kiali/kiali
KIALI_UI=$HOME/Projects/repos/kiali-ui
cd $KIALI
export CLUSTER_TYPE=minikube
export CONSOLE_VERSION=local
export CONSOLE_LOCAL_DIR=$KIALI_UI
#!/usr/bin/env bash
# Platform Setup
minikube config set vm-driver kvm2
minikube start --memory=16384 --cpus=4 --kubernetes-version=v1.14.2
minikube addons enable registry
export ISTIO_HOME=$HOME/Software/istio-1.4.3
export PATH=$PATH:$ISTIO_HOME/bin
istioctl manifest apply --set profile=demo
# Platform Setup
minikube config set vm-driver kvm2
minikube start --memory=16384 --cpus=4 --kubernetes-version=v1.14.2
minikube addons enable registry
export ISTIO_HOME=$HOME/Software/istio-1.4.0
export PATH=$PATH:$ISTIO_HOME/bin
istioctl manifest apply --set profile=demo
### All istio config for istio-system
GET http://localhost:8080/apis/authentication.istio.io/v1alpha1
Accept: application/json
<> 2019-08-08T123333.200.json
<> 2019-01-18T111534.200.json
<> 2019-01-18T111251.200.json
<> 2019-01-18T111124.200.json
<> 2019-01-18T111101.200.json
@lucasponce
lucasponce / istio-telemetry-addons.yaml
Created November 21, 2019 10:59
Istio 1.4 Telemetry addons DR/VS
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: grafana-gateway
namespace: istio-system
spec:
selector:
istio: ingressgateway
servers:
- port:
@lucasponce
lucasponce / meshpolicy-config.yaml
Created August 14, 2019 12:07
Example of global MeshPolicy config for Istio
apiVersion: authentication.istio.io/v1alpha1
kind: MeshPolicy
metadata:
name: default
spec:
peers:
- mtls: {}
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule