Setup
- openshift
- Mac:
minishift
- docker
Fedora:
dnf install docker
- kubectl
Fedora:
dnf install kubernetes-client
oc (eval $(minishift oc-env))
Fedora:
dnf install maven
Mac OS:
brew install stern
Fedora:
sudo curl —output /usr/local/bin/stern -L https://github.com/wercker/stern/releases/download/1.6.0/stern_linux_amd64 && sudo chmod +x /usr/local/bin/stern
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.
#!/bin/bash
# add the location of minishift executable to PATH
# I also keep other handy tools like kubectl and kubetail.sh
# in that directory
minishift profile set istio-tutorial
minishift config set memory 8GB
minishift config set cpus 3
minishift config set image-caching true
minishift addon enable admin-user
#cdk 3.7 bug - docker url check
minishift config set skip-startup-checks true
minishift start
#This needs to be executed again if you restart minishift.
minishift ssh -- sudo setenforce 0
# Openshift console bug. anyuid needs to be applied after startup
minishift addon apply anyuid
#!/bin/bash
# Mac OS:
# Fedora/RHEL:
curl -L | tar xz
# Both:
export ISTIO_HOME=`pwd`
export PATH=$ISTIO_HOME/bin:$PATH
$ oc get pods -w
or
$ kubectl get pods -w
NAME READY STATUS RESTARTS AGE
grafana-55cd86b44c-2vndc 1/1 Running 0 88m
istio-citadel-f9fbdd9df-xzzr7 1/1 Running 0 88m
istio-cleanup-secrets-1.1.6-d5css 0/1 Completed 0 88m
istio-egressgateway-895fb885d-bdqkv 1/1 Running 0 89m
istio-galley-5797db85b8-4866m 1/1 Running 0 89m
istio-grafana-post-install-1.1.6-6dk5h 0/1 Completed 0 89m
istio-ingressgateway-58f959476f-82zsf 1/1 Running 0 89m
istio-pilot-57d4bb58ff-tt8r4 2/2 Running 0 88m
istio-policy-79b88bcdf9-qqp4r 2/2 Running 6 88m
istio-security-post-install-1.1.6-8mmxj 0/1 Completed 0 88m
istio-sidecar-injector-7698fc57fb-dlnx4 1/1 Running 0 88m
istio-telemetry-b9799c89-d94hj 2/2 Running 6 88m
istio-tracing-7454db9d79-9qwqr 1/1 Running 0 88m
kiali-66d74fc6cc-zdzzt 1/1 Running 0 88m
And if you need quick access to the OpenShift console