You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `work` folder in `$TUTORIAL_HOME` can be used to download the demo application resources and refer them during the exercises. The `work` folder has a README, which has instructions on source code repo and git commands to clone the sources.
78
68
79
-
[IMPORTANT]
69
+
[IMPORTANT,subs="+macros,+attributes"]
80
70
====
81
71
82
72
This tutorial was developed and tested with:
83
73
84
-
- Knative `v0.3.0`
85
-
- minikube `v0.34.1`
86
-
- OpenShift `v3.11`
87
-
- minishift `v1.30.0+186b034`
74
+
- Knative `{knative-version}`
75
+
- minikube `{minikube-version}`
76
+
- OpenShift `{openshift-version}`
77
+
- minishift `{minishift-version}`
88
78
====
89
79
90
80
[#kubernetes-cluster]
91
81
== Kubernetes Cluster
92
82
93
-
[#install-knative-minikube]
94
-
=== Minikube
95
-
96
-
[#start-minikube]
97
-
==== Configure and Start minikube
98
-
99
-
Before installing Knative and its components, we need to add few startup config to minikube.
Installation of istio components will take some time and its highly recommended that you start Knative components installation only after you see all istio component pods are running. The istio pods can be watched using the command:
129
-
[source,bash,subs="+macros,+attributes"]
130
-
----
131
-
kubectl -n istio-system get pods -w
132
-
----
133
-
You can use kbd:[CTRL + c ] to terminate the watch
134
-
====
135
-
136
-
A successful istio install will have the pods running in `istio-system` namespace as shown below:
We will use a non default kubernetes namespace called `knativetutorial` for all the tutorial exercises.
259
-
260
-
[source,bash]
261
-
----
262
-
kubectl create namespace knativetutorial
263
-
----
264
-
265
-
[#install-knative-openshift]
266
-
=== OpenShift
267
-
268
-
For OpenShift Knative installations we will use the OpenShift Cloud Function's https://github.com/openshift-cloud-functions/knative-operators[Knative Operators].
If you have an existing OpenShift cluster then run the following commands:
283
-
284
-
[source,bash,linenums]
285
-
-----
286
-
./etc/scripts/install.sh
287
-
-----
288
-
289
-
If you need more details about the installation or customizations refer https://github.com/openshift-cloud-functions/Documentation/blob/master/knative-OCP.md[Knative with OpenShift].
290
-
291
-
[#install-knative-minishift]
292
-
==== minishift
293
-
294
-
Run the following commands to configure Knative with minishift:
295
-
296
-
[source,bash,linenums]
297
-
-----
298
-
./etc/scripts/install-on-minishift.sh #<1>
299
-
-----
300
-
301
-
<1> It will create a minishift profile and install knative. It also assumes that you already have minishift and your computer has 10GB or more of memory
302
-
303
-
[#configure-openshift-project]
304
-
==== Configuring OpenShift project for Knative applications
<1> The `oc adm policy` adds the **privileged** https://docs.okd.io/3.10/admin_guide/manage_scc.html[Security Context Constraints(SCCs)]to the **default** Service Account. The SCCs are the precursor to the PSP (Pod Security Policy) mechanism in kubernetes.
0 commit comments