Setup

    • openshift
    • Mac:
    • minishift
    • docker
    • Mac OS

    • Fedora: dnf install docker

    • kubectl
    • Fedora: dnf install kubernetes-client

    • oc (eval $(minishift oc-env))

    • Mac OS

    • Fedora: dnf install maven

    • istioctl (will be installed via the steps below)

    • Mac OS: built-in or part of your bash shell

    • Fedora: should also be installed already, but just in case…​ dnf install curl gzip tar

    • git
    • dnf install git
    • MAC OS: brew install siege

    • Fedora: dnf install siege

    In case of using Minishift you need at least minishift v1.24.0.

    1. #!/bin/bash
    2. # add the location of minishift executable to PATH
    3. # I also keep other handy tools like kubectl and kubetail.sh
    4. # in that directory
    5. minishift profile set istio-tutorial
    6. minishift config set memory 8GB
    7. minishift config set cpus 3
    8. minishift config set image-caching true
    9. minishift addon enable admin-user
    10. #cdk 3.7 bug - docker url check
    11. minishift config set skip-startup-checks true
    12. minishift start
    13. #This needs to be executed again if you restart minishift.
    14. minishift ssh -- sudo setenforce 0
    15. # Openshift console bug. anyuid needs to be applied after startup
    16. minishift addon apply anyuid
    1. #!/bin/bash
    2. # Mac OS:
    3. # Fedora/RHEL:
    4. curl -L | tar xz
    5. # Both:
    6. export ISTIO_HOME=`pwd`
    7. export PATH=$ISTIO_HOME/bin:$PATH
    1. $ oc get pods -w
    2. or
    3. $ kubectl get pods -w
    4. NAME READY STATUS RESTARTS AGE
    5. grafana-55cd86b44c-2vndc 1/1 Running 0 88m
    6. istio-citadel-f9fbdd9df-xzzr7 1/1 Running 0 88m
    7. istio-cleanup-secrets-1.1.6-d5css 0/1 Completed 0 88m
    8. istio-egressgateway-895fb885d-bdqkv 1/1 Running 0 89m
    9. istio-galley-5797db85b8-4866m 1/1 Running 0 89m
    10. istio-grafana-post-install-1.1.6-6dk5h 0/1 Completed 0 89m
    11. istio-ingressgateway-58f959476f-82zsf 1/1 Running 0 89m
    12. istio-pilot-57d4bb58ff-tt8r4 2/2 Running 0 88m
    13. istio-policy-79b88bcdf9-qqp4r 2/2 Running 6 88m
    14. istio-security-post-install-1.1.6-8mmxj 0/1 Completed 0 88m
    15. istio-sidecar-injector-7698fc57fb-dlnx4 1/1 Running 0 88m
    16. istio-telemetry-b9799c89-d94hj 2/2 Running 6 88m
    17. istio-tracing-7454db9d79-9qwqr 1/1 Running 0 88m
    18. kiali-66d74fc6cc-zdzzt 1/1 Running 0 88m

    And if you need quick access to the OpenShift console