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
| 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 |
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
| 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: |
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
| 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 | |
| } | |
| } |
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
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: Gateway | |
| metadata: | |
| name: grafana-gateway | |
| namespace: istio-system | |
| spec: | |
| selector: | |
| istio: ingressgateway | |
| servers: | |
| - port: |
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
| apiVersion: kiali.io/v1alpha1 | |
| kind: Kiali | |
| metadata: | |
| name: kiali | |
| annotations: | |
| ansible.operator-sdk/reconcile-period: "0s" | |
| spec: | |
| deployment: | |
| image_version: "v1.0" | |
| accessible_namespaces: [ "**" ] |
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
| [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 - |
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
| [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 - |
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
| #!/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 |
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
| apiVersion: authentication.istio.io/v1alpha1 | |
| kind: MeshPolicy | |
| metadata: | |
| name: default | |
| spec: | |
| peers: | |
| - mtls: {} | |
| --- | |
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: DestinationRule |
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
| apiVersion: authentication.istio.io/v1alpha1 | |
| kind: Policy | |
| metadata: | |
| name: default | |
| namespace: travel-agency | |
| spec: | |
| peers: | |
| - mtls: {} | |
| --- | |
| apiVersion: networking.istio.io/v1alpha3 |