Skip to content

Commit

Permalink
feat: Upgrade to Knative v0.19
Browse files Browse the repository at this point in the history
- Use Knative Serving v0.19
- Use Knative Eventing v0.19
- Minikube updated to v1.17.1
- Use OpenShift 4.6
  • Loading branch information
kameshsampath committed Feb 19, 2021
1 parent 73ecdaa commit 8583289
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 437 deletions.
2 changes: 1 addition & 1 deletion documentation/modules/setup/pages/_attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:moduledir: ..
:github-repo: https://github.com/redhat-developer-demos/knative-tutorial/blob/{branch}
:github-repo: {repo-base}/blob/{branch}
:basics-repo: serving
:configs-and-routes-repo: configs-and-routes
:scaling-repo: scaling
Expand Down
9 changes: 4 additions & 5 deletions documentation/modules/setup/pages/minikube.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ $TUTORIAL_HOME/bin/start-minikube.sh
[.console-output]
[source,bash,subs="+macros,+attributes"]
----
😄 [{tutorial-namespace}] minikube {minikube-version} on Darwin 10.15.7
😄 [{tutorial-namespace}] minikube {minikube-version} on Darwin 11.1
✨ Using the hyperkit driver based on user configuration
👍 Starting control plane node {tutorial-namespace} in cluster {tutorial-namespace}
🔥 Creating hyperkit VM (CPUs=6, Memory=8192MB, Disk=51200MB) ...
🐳 Preparing Kubernetes v1.18.0 on Docker 19.03.12 ...
🐳 Preparing Kubernetes {kubernetes-version} on Docker 20.10.2 ...
> kubelet.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubectl.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubeadm.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
Expand Down Expand Up @@ -201,8 +201,7 @@ A successful Kourier Ingress Gateway should show the following pods in `kourier-
[.console-input]
[source,bash,subs="+quotes,+attributes,+macros"]
----
kubectl get pods --all-namespaces -l 'app in(3scale-kourier-gateway,3scale-kourier-cont
rol)'
kubectl get pods --all-namespaces -l 'app in(3scale-kourier-gateway,3scale-kourier-control)'
----

[.console-output]
Expand Down Expand Up @@ -303,7 +302,7 @@ Configure Knative to use the `kourier-ingress` Gateway:
[.console-input]
[source,bash,subs="+macros,+attributes"]
----
ksvc_domain="\"data\":{\""$(minikube ip)".nip.io\": \"\"}"
ksvc_domain="\"data\":{\""$(minikube -p {tutorial-namespace} ip)".nip.io\": \"\"}"
kubectl patch configmap/config-domain \
-n knative-serving \
--type merge \
Expand Down
18 changes: 10 additions & 8 deletions documentation/modules/setup/pages/openshift.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[#install-knative-openshift]
= OpenShift
include::_attributes.adoc[]
:hardbreaks-option:

Knative Serving and Eventing install needs OpenShift4, you need to have one provisioned using https://try.openshift.com[try.openshift.com] or can use any existing OpenShift4 cluster.

Expand All @@ -13,19 +14,20 @@ Once you have your cluster, you can download the latest OpenShift client(oc) fro
oc version
----

The output should show oc version >=4.5
The output should show oc version >= {openshift-version}

[.console-output]
[source,bash]
[source,bash,subs="+macros,+attributes"]
----
Client Version: 4.5.8
Kubernetes Version: v1.18.2-0-g52c56ce
Client Version: 4.6.9
Kubernetes Version: {kubernetes-version}
----

[IMPORTANT]
=====
Please follow the https://docs.openshift.com/container-platform/4.3/serverless/installing_serverless/installing-openshift-serverless.html[OpenShift] documentation, to have Knative components installed on your cluster.
=====
 

video::eOwJjC9u4aM[youtube,width=640,height=480]

For more information on OpenShift Servertless, consult the https://docs.openshift.com/container-platform/4.6/serverless/installing_serverless/installing-openshift-serverless.html[OpenShift^] documentation.

**Navigate to tutorial project**

Expand Down

0 comments on commit 8583289

Please sign in to comment.