-
Notifications
You must be signed in to change notification settings - Fork 1
/
commands.txt
43 lines (31 loc) · 1.08 KB
/
commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#START
minishift profile set cloud-workshop
minishift config set memory 8GB
minishift config set cpus 3
minishift config set image-caching true
minishift config set openshift-version v3.11.0
minishift addon enable admin-user
minishift addon enable anyuid
minishift start
minishift ssh -- sudo setenforce 0
eval $(minishift oc-env)
eval $(minishift docker-env)
#SERVICES
oc login $(minishift ip):8443 -u tomek -p tomek
oc new-project workshop
docker build -t cloud-workshop/foo-service
docker images
psql -U foo foodb
#ISTIO
cd istio-1.0.3
export ISTIO_HOME=`pwd`
export PATH=$ISTIO_HOME/bin:$PATH
oc apply -f install/kubernetes/helm/istio/templates/crds.yaml
oc apply -f install/kubernetes/istio-demo.yaml
oc new-project workshop
oc adm policy add-scc-to-user privileged -z default -n workshop
oc adm policy add-role-to-user view tomek -n istio-system
oc apply -f <(istioctl kube-inject -f kubernetes/deployment.yml) -n workshop
oc apply -f kubernetes/service.yml -n workshop
istioctl create -f istio/destination-rule.yml -n workshop
istioctl create -f istio/virtual-service.yml -n workshop