Skip to content

Commit 4bfef71

Browse files
Merge pull request #88 from kameshsampath/upgrade/v0.4.0
Setup upgraded to Knative v0.4.0
2 parents d740993 + 648100d commit 4bfef71

43 files changed

Lines changed: 297 additions & 1762 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

09-camel-k/.editorconfig

Lines changed: 0 additions & 8 deletions
This file was deleted.

09-camel-k/knative/channels.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

09-camel-k/knative/print.groovy

Lines changed: 0 additions & 3 deletions
This file was deleted.

documentation/antora.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ title: Knative Tutorial
33
version: v1.1.0-SNAPSHOT
44
nav:
55
- modules/ROOT/nav.adoc
6-
- modules/camelk/nav.adoc
76

87
start_page: ROOT:index.adoc

documentation/modules/ROOT/nav.adoc

Lines changed: 103 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,113 @@
1-
* xref:setup.adoc[1. Setup]
2-
** xref:setup.adoc#prerequisite[Prerequisites]
3-
** xref:setup.adoc#download-tutorial-sources[Download Tutorial Sources]
4-
** xref:setup.adoc#kubernetes-cluster[Kubernetes Cluster]
5-
*** xref:setup.adoc#install-knative-minikube[Install with Minikube ]
6-
**** xref:setup.adoc#start-minikube[Configure and Start minikube ]
7-
**** xref:setup.adoc[Install Knative ]
8-
**** xref:setup.adoc#install-knative-istio[Install Istio ]
9-
**** xref:setup.adoc#install-knative-serving[Install Knative Serving ]
10-
**** xref:setup.adoc#install-knative-build[Install Knative Build]
11-
**** xref:setup.adoc#install-knative-eventing[Install Knative Eventing ]
12-
**** xref:setup.adoc#set-knative-tutorial-ns[Configuring Kubernetes namespace ]
13-
*** xref:setup.adoc#install-knative-openshift[Install with OpenShift]
14-
**** xref:setup.adoc#install-knative-ocp[Install on OCP]
15-
**** xref:setup.adoc#install-knative-minishift[Install on Minishift]
16-
**** xref:setup.adoc#configure-openshift-project[Configure OpenShift project]
17-
** xref:setup.adoc#setup-work-folder[Work Folder]
1+
* xref:01-setup.adoc[1. Setup]
2+
** xref:01-setup.adoc#prerequisite[Prerequisites]
3+
** xref:01-setup.adoc#download-tutorial-sources[Download Tutorial Sources]
4+
** xref:01-setup.adoc#kubernetes-cluster[Kubernetes Cluster]
5+
*** xref:01-setup.adoc#install-knative-minikube[Install with Minikube ]
6+
**** xref:01-setup.adoc#start-minikube[Configure and Start minikube ]
7+
**** xref:01-setup.adoc[Install Knative ]
8+
**** xref:01-setup.adoc#install-knative-istio[Install Istio ]
9+
**** xref:01-setup.adoc#install-knative-serving[Install Knative Serving ]
10+
**** xref:01-setup.adoc#install-knative-build[Install Knative Build]
11+
**** xref:01-setup.adoc#install-knative-eventing[Install Knative Eventing ]
12+
**** xref:01-setup.adoc#set-knative-tutorial-ns[Configuring Kubernetes namespace ]
13+
*** xref:01-setup.adoc#install-knative-openshift[Install with OpenShift]
14+
**** xref:01-setup.adoc#install-knative-ocp[Install on OCP]
15+
**** xref:01-setup.adoc#install-knative-minishift[Install on Minishift]
16+
**** xref:01-setup.adoc#configure-openshift-project[Configure OpenShift project]
17+
** xref:01-setup.adoc#setup-work-folder[Work Folder]
1818
19-
* xref:01basic-fundas.adoc[2. Basics and Fundamentals]
20-
** xref:01basic-fundas.adoc#basics-prerequisite[Prerequisites]
21-
** xref:01basic-fundas.adoc#basics-build-containers[Build Containers]
22-
** xref:01basic-fundas.adoc#basics-deploy-service[Deploy Service]
23-
** xref:01basic-fundas.adoc#basics-invoke-service[Invoke Service]
24-
** xref:01basic-fundas.adoc#basics-see-what-you-have-deployed[See what you have deployed]
25-
** xref:01basic-fundas.adoc#deploying-new-revision[Deploy new Revision Service]
26-
** xref:01basic-fundas.adoc#basics-pinning-revision[Pinning service to a revision]
27-
** xref:01basic-fundas.adoc#basics-cleanup[Cleanup]
19+
* xref:02-basic-fundas.adoc[2. Basics and Fundamentals]
20+
** xref:02-basic-fundas.adoc#basics-prerequisite[Prerequisites]
21+
** xref:02-basic-fundas.adoc#basics-build-containers[Build Containers]
22+
** xref:02-basic-fundas.adoc#basics-deploy-service[Deploy Service]
23+
** xref:02-basic-fundas.adoc#basics-invoke-service[Invoke Service]
24+
** xref:02-basic-fundas.adoc#basics-see-what-you-have-deployed[See what you have deployed]
25+
** xref:02-basic-fundas.adoc#deploying-new-revision[Deploy new Revision Service]
26+
** xref:02-basic-fundas.adoc#basics-pinning-revision[Pinning service to a revision]
27+
** xref:02-basic-fundas.adoc#basics-cleanup[Cleanup]
2828
29-
* xref:02configs-and-routes.adoc[3. Configurations and Routes]
30-
** xref:02configs-and-routes.adoc#crtd-prerequisite[Prerequisites]
31-
** xref:02configs-and-routes.adoc#ctrd-build-containers[Build Containers]
32-
** xref:02configs-and-routes.adoc#crtd-deploy-configuration[Deploy Configuration]
33-
** xref:02configs-and-routes.adoc#crtd-invoke-service[Invoke Service]
34-
** xref:02configs-and-routes.adoc#crtd-deploy-route[Deploy Route]
35-
** xref:02configs-and-routes.adoc#crtd-see-what-you-have-deployed[See what you have deployed]
36-
** xref:02configs-and-routes.adoc#crtd-deploying-new-revision[Deploy new Revision Service]
37-
** xref:02configs-and-routes.adoc#crtd-distributing-traffic[Distributing Traffic]
38-
** xref:02configs-and-routes.adoc#ctrd-cleanup[Cleanup]
29+
* xref:03-configs-and-routes.adoc[3. Configurations and Routes]
30+
** xref:03-configs-and-routes.adoc#crtd-prerequisite[Prerequisites]
31+
** xref:03-configs-and-routes.adoc#ctrd-build-containers[Build Containers]
32+
** xref:03-configs-and-routes.adoc#crtd-deploy-configuration[Deploy Configuration]
33+
** xref:03-configs-and-routes.adoc#crtd-invoke-service[Invoke Service]
34+
** xref:03-configs-and-routes.adoc#crtd-deploy-route[Deploy Route]
35+
** xref:03-configs-and-routes.adoc#crtd-see-what-you-have-deployed[See what you have deployed]
36+
** xref:03-configs-and-routes.adoc#crtd-deploying-new-revision[Deploy new Revision Service]
37+
** xref:03-configs-and-routes.adoc#crtd-distributing-traffic[Distributing Traffic]
38+
** xref:03-configs-and-routes.adoc#ctrd-cleanup[Cleanup]
3939
40-
* xref:03scaling.adoc[4. Scaling]
41-
** xref:03scaling.adoc#scaling-prerequisite[Prerequisites]
42-
** xref:03scaling.adoc#scaling-build-containers[Build Containers]
43-
** xref:03scaling.adoc#scaling-deploy-service[Deploy Service]
44-
** xref:03scaling.adoc#scaling-invoke-service[Invoke Service]
45-
** xref:03scaling.adoc#scaling-scale-to-zero[Scale to Zero]
46-
*** xref:03scaling.adoc#scaling-observer-scale-to-zero[Observing default scale down ]
47-
*** xref:03scaling.adoc#scaling-observer-scale-to-zero-1m[Change scale to zero time]
48-
*** xref:03scaling.adoc#scaling-reset-to-defaults[Reset to Defaults]
49-
** xref:03scaling.adoc#scaling-auto-scaling[Auto Scaling]
50-
*** xref:03scaling.adoc#scaling-autoscaling-deploy-service[Deploy Service]
51-
*** xref:03scaling.adoc#scaling-autoscaling-invoke-service[Invoke Service]
52-
*** xref:03scaling.adoc#scaling-load-service[Load Service]
53-
** xref:03scaling.adoc#scaling-min-scale[Minimum Scale]
54-
*** xref:03scaling.adoc#scaling-deploy-service-minscale[Deploy service ]
55-
** xref:03scaling.adoc#scaling-cleanup[Cleanup]
40+
* xref:04-scaling.adoc[4. Scaling]
41+
** xref:04-scaling.adoc#scaling-prerequisite[Prerequisites]
42+
** xref:04-scaling.adoc#scaling-build-containers[Build Containers]
43+
** xref:04-scaling.adoc#scaling-deploy-service[Deploy Service]
44+
** xref:04-scaling.adoc#scaling-invoke-service[Invoke Service]
45+
** xref:04-scaling.adoc#scaling-scale-to-zero[Scale to Zero]
46+
*** xref:04-scaling.adoc#scaling-observer-scale-to-zero[Observing default scale down ]
47+
*** xref:04-scaling.adoc#scaling-observer-scale-to-zero-1m[Change scale to zero time]
48+
*** xref:04-scaling.adoc#scaling-reset-to-defaults[Reset to Defaults]
49+
** xref:04-scaling.adoc#scaling-auto-scaling[Auto Scaling]
50+
*** xref:04-scaling.adoc#scaling-autoscaling-deploy-service[Deploy Service]
51+
*** xref:04-scaling.adoc#scaling-autoscaling-invoke-service[Invoke Service]
52+
*** xref:04-scaling.adoc#scaling-load-service[Load Service]
53+
** xref:04-scaling.adoc#scaling-min-scale[Minimum Scale]
54+
*** xref:04-scaling.adoc#scaling-deploy-service-minscale[Deploy service ]
55+
** xref:04-scaling.adoc#scaling-cleanup[Cleanup]
5656
57-
* xref:04build/build.adoc[5. Build]
58-
** xref:04build/build.adoc#build-prerequisite[Prerequisites]
59-
*** xref:04build/build.adoc#build-create-docker-secret[Generate Docker Secret]
60-
*** xref:04build/build.adoc#build-generate-build-spec[Generate Build Spec]
61-
*** xref:04build/build.adoc#build-generate-knative-service[Generate Knative service]
62-
*** xref:04build/build.adoc#build-apply-prereq-resources[Apply Resources]
63-
** xref:04build/build.adoc#build-create-build[Create Build]
64-
** xref:04build/build.adoc#build-see-what-you-have-deployed[See what you have deployed]
65-
** xref:04build/build.adoc#build-watching-logs[Watching logs]
66-
** xref:04build/build.adoc#build-build-status[Build Status]
67-
** xref:04build/build.adoc#build-deploy-service-build[Deploy Service]
68-
** xref:04build/build.adoc#build-invoke-service[Invoke Service]
69-
** xref:04build/build.adoc#build-build-cleanup[Cleanup]
57+
* xref:05-build/build.adoc[5. Build]
58+
** xref:05-build/build.adoc#build-prerequisite[Prerequisites]
59+
*** xref:05-build/build.adoc#build-create-docker-secret[Generate Docker Secret]
60+
*** xref:05-build/build.adoc#build-generate-build-spec[Generate Build Spec]
61+
*** xref:05-build/build.adoc#build-generate-knative-service[Generate Knative service]
62+
*** xref:05-build/build.adoc#build-apply-prereq-resources[Apply Resources]
63+
** xref:05-build/build.adoc#build-create-build[Create Build]
64+
** xref:05-build/build.adoc#build-see-what-you-have-deployed[See what you have deployed]
65+
** xref:05-build/build.adoc#build-watching-logs[Watching logs]
66+
** xref:05-build/build.adoc#build-build-status[Build Status]
67+
** xref:05-build/build.adoc#build-deploy-service-build[Deploy Service]
68+
** xref:05-build/build.adoc#build-invoke-service[Invoke Service]
69+
** xref:05-build/build.adoc#build-build-cleanup[Cleanup]
7070
71-
* xref:04build/build-templates.adoc[6. Build Template]
72-
** xref:04build/build-templates.adoc#build-template-prerequisite[Prerequisites]
73-
*** xref:04build/build-templates.adoc#build-template-generate-template[Generate build template]
74-
*** xref:04build/build-templates.adoc#build-template-generate-service[Generate Knative service]
75-
*** xref:04build/build-templates.adoc#build-template-apply-resources[Apply Resources]
76-
** xref:04build/build-templates.adoc#build-template-create-template[Create Build Template]
77-
*** xref:04build/build-templates.adoc#build-see-what-you-have-deployed[See what you have deployed]
78-
** xref:04build/build-templates.adoc#build-deploy-service-build-template[Deploy Service]
79-
** xref:04build/build-templates.adoc#build-template-invoke-service[Invoke Service]
80-
** xref:04build/build-templates.adoc#build-template-cleanup[Cleanup]
71+
* xref:05-build/build-templates.adoc[6. Build Template]
72+
** xref:05-build/build-templates.adoc#build-template-prerequisite[Prerequisites]
73+
*** xref:05-build/build-templates.adoc#build-template-generate-template[Generate build template]
74+
*** xref:05-build/build-templates.adoc#build-template-generate-service[Generate Knative service]
75+
*** xref:05-build/build-templates.adoc#build-template-apply-resources[Apply Resources]
76+
** xref:05-build/build-templates.adoc#build-template-create-template[Create Build Template]
77+
*** xref:05-build/build-templates.adoc#build-see-what-you-have-deployed[See what you have deployed]
78+
** xref:05-build/build-templates.adoc#build-deploy-service-build-template[Deploy Service]
79+
** xref:05-build/build-templates.adoc#build-template-invoke-service[Invoke Service]
80+
** xref:05-build/build-templates.adoc#build-template-cleanup[Cleanup]
8181
82-
* xref:05eventing/eventing.adoc[7. Eventing]
83-
** xref:05eventing/eventing.adoc#eventing-prerequisite[Prerequisites]
84-
** xref:05eventing/eventing.adoc#eventing-assumptions[Assumptions]
85-
** xref:05eventing/eventing-src-svc.adoc[Source to Service]
86-
*** xref:05eventing/eventing-src-svc.adoc#eventing-source[Event Source]
87-
*** xref:05eventing/eventing-src-svc.adoc#eventing-create-event-source[Create Event Source]
88-
*** xref:05eventing/eventing-src-svc.adoc#eventing-verify-event-source[Verify]
89-
*** xref:05eventing/eventing-src-svc.adoc#eventing-sink-service[Sink Service]
90-
**** xref:05eventing/eventing-src-svc.adoc#eventing-gen-sink-service[Generate Service]
91-
**** xref:05eventing/eventing-src-svc.adoc#eventing-deploy-sink-service[Deploy Service]
92-
*** xref:05eventing/eventing-src-svc.adoc#eventing-see-what-you-have-deployed[See what you have deployed]
93-
*** xref:05eventing/eventing-src-svc.adoc#eventing-cleanup[Cleanup]
82+
* xref:06-eventing/eventing.adoc[7. Eventing]
83+
** xref:06-eventing/eventing.adoc#eventing-prerequisite[Prerequisites]
84+
** xref:06-eventing/eventing.adoc#eventing-assumptions[Assumptions]
85+
** xref:06-eventing/eventing-src-svc.adoc[Source to Service]
86+
*** xref:06-eventing/eventing-src-svc.adoc#eventing-source[Event Source]
87+
*** xref:06-eventing/eventing-src-svc.adoc#eventing-create-event-source[Create Event Source]
88+
*** xref:06-eventing/eventing-src-svc.adoc#eventing-verify-event-source[Verify]
89+
*** xref:06-eventing/eventing-src-svc.adoc#eventing-sink-service[Sink Service]
90+
**** xref:06-eventing/eventing-src-svc.adoc#eventing-gen-sink-service[Generate Service]
91+
**** xref:06-eventing/eventing-src-svc.adoc#eventing-deploy-sink-service[Deploy Service]
92+
*** xref:06-eventing/eventing-src-svc.adoc#eventing-see-what-you-have-deployed[See what you have deployed]
93+
*** xref:06-eventing/eventing-src-svc.adoc#eventing-cleanup[Cleanup]
9494
95-
** xref:05eventing/eventing-src-sub.adoc[Source to Subscriber]
96-
*** xref:05eventing/eventing-src-sub.adoc#eventing-channel[Channel]
97-
**** xref:05eventing/eventing-src-sub.adoc#eventing-create-event-channel[Create Event Channel]
98-
**** xref:05eventing/eventing-src-sub.adoc#eventing-verify-event-channel[Verify]
99-
*** xref:05eventing/eventing-src-sub.adoc#eventing-source[Event Source]
100-
**** xref:05eventing/eventing-src-sub.adoc#eventing-create-event-source[Create Event Source]
101-
**** xref:05eventing/eventing-src-sub.adoc#eventing-verify-event-source[Verify]
102-
*** xref:05eventing/eventing-src-sub.adoc#eventing-subscriber[Event Subscriber]
103-
**** xref:05eventing/eventing-src-sub.adoc#eventing-create-subscriber[Create Event Subscriber]
104-
**** xref:05eventing/eventing-src-sub.adoc#eventing-verify-subscriber[Verify]
105-
*** xref:05eventing/eventing-src-sub.adoc#eventing-see-what-you-have-deployed[See what you have deployed]
106-
*** xref:05eventing/eventing-src-sub.adoc#eventing-subscriber-service[Subscriber Service]
107-
**** xref:05eventing/eventing-src-sub.adoc#eventing-gen-subscriber-service[Generate Service]
108-
**** xref:05eventing/eventing-src-sub.adoc#eventing-deploy-subscriber-service[Deploy Service]
109-
*** xref:05eventing/eventing-src-sub.adoc#eventing-cleanup[Cleanup]
110-
** xref:05eventing/eventing.adoc#eventing-watch-logs[Watching Logs]
95+
** xref:06-eventing/eventing-src-sub.adoc[Source to Subscriber]
96+
*** xref:06-eventing/eventing-src-sub.adoc#eventing-channel[Channel]
97+
**** xref:06-eventing/eventing-src-sub.adoc#eventing-create-event-channel[Create Event Channel]
98+
**** xref:06-eventing/eventing-src-sub.adoc#eventing-verify-event-channel[Verify]
99+
*** xref:06-eventing/eventing-src-sub.adoc#eventing-source[Event Source]
100+
**** xref:06-eventing/eventing-src-sub.adoc#eventing-create-event-source[Create Event Source]
101+
**** xref:06-eventing/eventing-src-sub.adoc#eventing-verify-event-source[Verify]
102+
*** xref:06-eventing/eventing-src-sub.adoc#eventing-subscriber[Event Subscriber]
103+
**** xref:06-eventing/eventing-src-sub.adoc#eventing-create-subscriber[Create Event Subscriber]
104+
**** xref:06-eventing/eventing-src-sub.adoc#eventing-verify-subscriber[Verify]
105+
*** xref:06-eventing/eventing-src-sub.adoc#eventing-see-what-you-have-deployed[See what you have deployed]
106+
*** xref:06-eventing/eventing-src-sub.adoc#eventing-subscriber-service[Subscriber Service]
107+
**** xref:06-eventing/eventing-src-sub.adoc#eventing-gen-subscriber-service[Generate Service]
108+
**** xref:06-eventing/eventing-src-sub.adoc#eventing-deploy-subscriber-service[Deploy Service]
109+
*** xref:06-eventing/eventing-src-sub.adoc#eventing-cleanup[Cleanup]
110+
** xref:06-eventing/eventing.adoc#eventing-watch-logs[Watching Logs]
111111
112112
113113
* xref:faq.adoc[8.Frequently Asked Questions]
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
= Setup
2+
include::_attributes.adoc[]
3+
4+
[#prerequisite]
5+
== Prerequisite CLI tools
6+
7+
The following CLI tools are required for running the exercises in this tutorial. Please have them installed and configured before you get started with any of the tutorial chapters.
8+
9+
[cols="4*^,4*."]
10+
|===
11+
|**Tool** |**macOS** |**Fedora** | **Remarks**
12+
| `minikube`
13+
| https://kubernetes.io/docs/setup/minikube
14+
| https://kubernetes.io/docs/setup/minikube
15+
|
16+
17+
| `minishift`
18+
| https://github.com/minishift/minishift/releases
19+
| https://github.com/minishift/minishift/releases
20+
|
21+
22+
| https://maven.apacge.org[Apache Maven]
23+
| `brew install maven`
24+
| `dnf install maven`
25+
|
26+
27+
| https://github.com/wercker/stern[stern]
28+
| `brew install stern`
29+
| `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`
30+
|
31+
32+
| https://github.com/mikefarah/yq[yq]
33+
| `brew install yq`
34+
| https://github.com/mikefarah/yq/releases/latest
35+
|
36+
37+
| https://httpie.org/[httpie]
38+
| `brew install httpie`
39+
| `dnf install httpie`
40+
|
41+
42+
| https://github.com/JoeDog/siege[siege]
43+
| `brew install siege`
44+
| https://github.com/JoeDog/siege
45+
|
46+
47+
| watch
48+
|`brew install watch`
49+
| it will be pre-installed
50+
|
51+
52+
| kubectx and kubens
53+
| `brew install kubectx`
54+
| https://github.com/ahmetb/kubectx
55+
|
56+
|===
57+
58+
[#download-tutorial-sources]
59+
== Download Tutorial Sources
60+
Before we start to setting up the environment, lets clone the tutorial sources and call the cloned folder as `$TUTORIAL_HOME`
61+
62+
[source,bash]
63+
----
64+
git clone https://github.com/redhat-developer-demos/knative-tutorial
65+
----
66+
67+
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.
68+
69+
[IMPORTANT,subs="+macros,+attributes"]
70+
====
71+
72+
This tutorial was developed and tested with:
73+
74+
- Knative `{knative-version}`
75+
- minikube `{minikube-version}`
76+
- OpenShift `{openshift-version}`
77+
- minishift `{minishift-version}`
78+
====
79+
80+
[#kubernetes-cluster]
81+
== Kubernetes Cluster
82+
83+
include::partial$minikube-setup.adoc[]
84+
include::partial$openshift-setup.adoc[]
85+
86+
[#setup-work-folder]
87+
== Work folder
88+
89+
The work folder i.e `$TUTORIAL_HOME/work` can be used as a work directory during the build. The README in the work folder as the GitHub repository links of the applications `greeter` and `event-greeter` that will be used in various exercises.
File renamed without changes.

0 commit comments

Comments
 (0)