Skip to content

Instantly share code, notes, and snippets.

View lucasponce's full-sized avatar

Lucas Ponce lucasponce

View GitHub Profile
KIALI=$HOME/Projects/gopath/src/github.com/kiali/kiali
KIALI_UI=$HOME/Projects/repos/kiali-ui
cd $KIALI_UI
export REACT_APP_RCUE=false
yarn build
cd $KIALI
TASK [kiali-deploy : Create resource [ingress] on [openshift]] *****************
task path: /opt/ansible/roles/kiali-deploy/tasks/process-resource.yml:1
changed: [localhost] => {"attempts": 1, "changed": true, "method": "create", "result": {"apiVersion": "extensions/v1beta1", "kind": "Ingress", "metadata": {"annotations": {"operator-sdk/primary-resource": "kiali-operator/kiali", "operator-sdk/primary-resource-type": "Kiali.kiali.io"}, "creationTimestamp": "2019-04-24T12:38:59Z", "generation": 1, "labels": {"app": "kiali", "version": "dev"}, "name": "kiali", "namespace": "istio-system", "resourceVersion": "293415", "selfLink": "/apis/extensions/v1beta1/namespaces/istio-system/ingresses/kiali", "uid": "ef098a30-668d-11e9-b74b-309c23d284ab"}, "spec": {"backend": {"serviceName": "kiali", "servicePort": 20001}}, "status": {"loadBalancer": {}}}}
TASK [kiali-deploy : Create resource [route] on [openshift]] *******************
task path: /opt/ansible/roles/kiali-deploy/tasks/process-resource.yml:1
FAILED - RETRYING:
func CastThreeScaleHandler(handler kubernetes.IstioObject) ThreeScaleHandler {
threeScaleHandler := ThreeScaleHandler{}
threeScaleHandler.Name = handler.GetObjectMeta().Name
if params, paramsPresent := handler.GetSpec()["params"]; paramsPresent {
if paramsMap, paramsCasted := params.(map[string]interface{}); paramsCasted {
if serviceId, serviceIdPresent := paramsMap["service_id"]; serviceIdPresent {
if serviceIdValue, serviceIdCasted := serviceId.(string); serviceIdCasted {
threeScaleHandler.ServiceId = serviceIdValue
}
}
@lucasponce
lucasponce / istio-telemetry-addons.yaml
Created June 14, 2019 09:38
Istio Telemetry Addons
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: grafana-gateway
namespace: istio-system
spec:
selector:
istio: ingressgateway
servers:
- port:
@lucasponce
lucasponce / update-kiali-cr.yaml
Last active June 30, 2019 10:42
Update Kiali CR
apiVersion: kiali.io/v1alpha1
kind: Kiali
metadata:
name: kiali
annotations:
ansible.operator-sdk/reconcile-period: "0s"
spec:
deployment:
image_version: "v1.0"
accessible_namespaces: [ "**" ]
[0] Pre-requisites
Install google-cloud-sdk in your laptop
Documentation: https://cloud.google.com/sdk
Install helm in your laptop.
Documentation: https://helm.sh/docs/using_helm/#installing-helm
Get latest Istio.
curl -L https://git.io/getLatestIstio | ISTIO_VERSION=1.1.7 sh -
@lucasponce
lucasponce / istio-gke-kiali
Last active May 13, 2021 16:58
Install Istio in Google Kubernetes Engine + Update Kiali to latest
[0] Pre-requisites
Install google-cloud-sdk in your laptop
Documentation: https://cloud.google.com/sdk
Install helm in your laptop.
Documentation: https://helm.sh/docs/using_helm/#installing-helm
Get latest Istio.
curl -L https://git.io/getLatestIstio | ISTIO_VERSION=1.1.7 sh -
@lucasponce
lucasponce / install-gke-istio-kiali.sh
Last active June 30, 2019 13:45
Create a Kubernetes cluster using GKE and install Istio. Upgrade Kiali and install examples. Specific Linux comands to open browsers from command line
#!/bin/bash
echo "[1.0] Check pre-requisites"
# Check gcloud, kubectl, helm, istioctl, envsubst, curl commands
COMMANDS=(gcloud kubectl helm istioctl envsubst curl)
for CMD in "${COMMANDS[@]}"
do
which "$CMD" >/dev/null 2>&1
if [ ! "$?" == "0" ]; then
@lucasponce
lucasponce / meshpolicy-security.yaml
Last active July 1, 2019 13:01
Global MeshPolicy
apiVersion: authentication.istio.io/v1alpha1
kind: MeshPolicy
metadata:
name: default
spec:
peers:
- mtls: {}
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
name: default
namespace: travel-agency
spec:
peers:
- mtls: {}
---
apiVersion: networking.istio.io/v1alpha3