Skip to content

Commit 3ece188

Browse files
committed
(refactor): move modules to own repos
- moved camel-k to own repo - chapter numer realign Fixes: 68, 70
1 parent d740993 commit 3ece188

40 files changed

Lines changed: 129 additions & 1603 deletions

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]
File renamed without changes.
File renamed without changes.

documentation/modules/ROOT/pages/02configs-and-routes.adoc renamed to documentation/modules/ROOT/pages/03-configs-and-routes.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
image: dev.local/rhdevelopers/greeter:0.0.1 #<1>
4949
----
5050

51-
<1> It is very important that the image is a fully qualified docker image name, including a tag. For more details on this <<faq-q2,Question 2 of FAQ>>.
51+
<1> It is very important that the image is a fully qualified docker image name, including a tag. For more details on this xref:ROOT:faq.adoc#faq-q2[Question 2 of FAQ].
5252

5353
The service is then deployed using:
5454
[source,bash,subs="+macros,+attributes",linenums]
@@ -111,7 +111,7 @@ kubectl apply -n knativetutorial -f link:{github-repo}/{configs-and-routes-repo}
111111
oc apply -n knativetutorial -f link:{github-repo}/{configs-and-routes-repo}/route/route_default.yaml[route/route_default.yaml]
112112
----
113113

114-
<<invoke-service,Invoking Service>> now should return a response like **Hi greeter => greeter-00001-deployment-5d696cc6c8-m65s5: 1**
114+
<<crtd-invoke-service,Invoking Service>> now should return a response like **Hi greeter => greeter-00001-deployment-5d696cc6c8-m65s5: 1**
115115

116116
NOTE: Sometimes the response might not be returned immediately especially when the pod is coming up from a dormant state. You might need to be a little patient.
117117

@@ -197,9 +197,9 @@ After the deployment was successful we should see a kubernetes deployment called
197197

198198
image::greeter-00002.png[Greeter Service rev2]
199199

200-
Now running the <<show-knative-revisions,command>> will show two revisions: `greeter-00001` and `greeter-0002`.
200+
Now running the <<crtd-show-knative-revisions,command>> will show two revisions: `greeter-00001` and `greeter-0002`.
201201

202-
<<invoke-service,Invoking Service>> will now show an output like **Namaste greeter => greeter-00002-deployment-8d9984dc8-rgzx6: 2**, where __Namaste__ is the value that we configured via environment variable in the Knative service resource file.
202+
<<crtd-invoke-service,Invoking Service>> will now show an output like **Namaste greeter => greeter-00002-deployment-8d9984dc8-rgzx6: 2**, where __Namaste__ is the value that we configured via environment variable in the Knative service resource file.
203203

204204
[#crtd-distributing-traffic]
205205
== Distributing traffic

documentation/modules/ROOT/pages/03scaling.adoc renamed to documentation/modules/ROOT/pages/04-scaling.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
----
4242

4343
<1> Configures the Knative service to always run the latest revision of the deployment.
44-
<2> It is very important that the image is a fully qualified docker image name, including a tag. For more details on this <<faq-q2,Question 2 of FAQ>>.
44+
<2> It is very important that the image is a fully qualified docker image name, including a tag. For more details on this xref:ROOT:faq.adoc#faq-q2[Question 2 of FAQ].
4545

4646
Navigate to the tutorial chapter's `knative` folder:
4747

@@ -83,7 +83,7 @@ include::ROOT:partial$invoke-service.adoc[tag=*]
8383

8484
The last `curl` command should return a response like **Hi greeter => greeter-00001-deployment-5d696cc6c8-m65s5: 1**
8585

86-
Check <<01basic-fundas.adoc#see-what-you-have-deployed,deployed Knative resources>> for more details on which Knative objects and resources have been created with the service deployment above.
86+
Check <<02-basic-fundas.adoc#see-what-you-have-deployed,deployed Knative resources>> for more details on which Knative objects and resources have been created with the service deployment above.
8787

8888
[#scaling-scale-to-zero]
8989
== Configure scale to zero

documentation/modules/ROOT/pages/04build/_attributes.adoc renamed to documentation/modules/ROOT/pages/05-build/_attributes.adoc

File renamed without changes.

0 commit comments

Comments
 (0)