-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add content based router example demo - other refactor of documentation renaming, partials Fixes #36
- Loading branch information
1 parent
7af9e58
commit 1138a5e
Showing
19 changed files
with
700 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
documentation/modules/ROOT/pages/_partials/invoke-service.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
# tag::env[] | ||
[source,bash,linenums] | ||
[k8s-env=''] | ||
[k8s-cli=''] | ||
#tag::env[] | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
INGRESSGATEWAY=istio-ingressgateway | ||
IP_ADDRESS="$(minishift ip):$(kubectl get svc $INGRESSGATEWAY --namespace istio-system --output 'jsonpath={.spec.ports[?(@.port==80)].nodePort}')" | ||
IP_ADDRESS="$({k8s-env} ip):$({k8s-cli} get svc $INGRESSGATEWAY --namespace istio-system --output 'jsonpath={.spec.ports[?(@.port==80)].nodePort}')" | ||
---- | ||
# end::env[] | ||
#end::env[] | ||
|
||
# tag::call[] | ||
[source,bash,linenums] | ||
#tag::call[] | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
curl -v -H "Host: greeter.knativetutorial.example.com" $IP_ADDRESS | ||
---- | ||
|
||
.(OR) | ||
|
||
[source,bash,linenums] | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
http $IP_ADDRESS 'Host: greeter.knativetutorial.example.com' | ||
---- | ||
# end::call[] | ||
#end::call[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,16 @@ | ||
[k8s-cli=''] | ||
|
||
# tag::minio[] | ||
#tag::config-k8s-local-registry[] | ||
|
||
For various exercises in this cookbook we will be using the s3 kind of object storage. We will use open source object storage called https://github.com/minio/minio[minio] that is compatible with Amazon S3 | ||
|
||
The following section details how to setup minio server | ||
|
||
[source,bash] | ||
---- | ||
cd $COOKBOOKS_SOURCES_HOME/minio-s3-server | ||
oc apply -f skaffold.yaml -n cookbook | ||
oc expose svc minio-server -n cookbook | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
K8S_LOCAL_REGISTRY=`{k8s-cli} get svc -n kube-system registry -ojsonpath='{.spec.clusterIP}'` | ||
[.text-center] | ||
**(OR)** | ||
[source,bash] | ||
---- | ||
kubectl apply -f skaffold.yaml -n cookbook | ||
val="ko.local,dev.local,pass:[${K8S_LOCAL_REGISTRY}]" | ||
{k8s-cli} -n knative-serving get cm config-controller -oyaml \ | ||
| yq w - data.registriesSkippingTagResolving $val \ | ||
| kubectl apply -f - | ||
---- | ||
|
||
[NOTE] | ||
==== | ||
Details on how to use AWS s3 with minio is available https://docs.minio.io/docs/aws-cli-with-minio.html[here] | ||
==== | ||
|
||
A successful minio deployment can be viewed via OpenShift dashboard as shown below: | ||
|
||
image::minio-server.png[minio server] | ||
|
||
#end::minio[] | ||
#end::config-k8s-local-registry[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
documentation/modules/camelk/pages/_partials/kamel-objects-status.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[kube-ns=''] | ||
[it-name=''] | ||
|
||
#tag::integration-status[] | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
kubectl -n {kube-ns} get integrations.camel.apache.org {it-name} | ||
---- | ||
.(OR) | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
oc -n {kube-ns} get integrations.camel.apache.org {it-name} | ||
---- | ||
#end::integration-status[] |
55 changes: 55 additions & 0 deletions
55
documentation/modules/camelk/pages/_partials/minio-and-s3.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[k8s-env='minikube'] | ||
[s3-bucket='data'] | ||
[s3-upload-file='message1.xml'] | ||
[s3-upload-file-link=''] | ||
|
||
#tag::minio-aws-config[] | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
aws configure | ||
# AWS Access Key ID [None]: demoaccesskey #<1> | ||
# AWS Secret Access Key [None]: demosecretkey #<2> | ||
# Default region name [None]: | ||
# Default output format [None]: | ||
|
||
aws configure set default.s3.signature_version s3v4 #<3> | ||
|
||
aws configure list #<4> | ||
---- | ||
|
||
<1> Using default user access key **demoaccesskey** | ||
<2> Using default user secret key **demosecretkey** | ||
<3> Enable **AWS Signature Version '4'** for minio server | ||
<4> List the configuration | ||
|
||
#end::minio-aws-config[] | ||
|
||
#tag::s3-url[] | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
S3_URL=$({k8s-env} service -n knativetutorial minio-server --url) | ||
---- | ||
#end::s3-url[] | ||
|
||
#tag::s3-make-bucket[] | ||
|
||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
aws --endpoint-url $S3_URL s3 mb s3://{s3-bucket} | ||
---- | ||
|
||
#end::s3-make-bucket[] | ||
|
||
#tag::s3-upload-file[] | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
aws --endpoint-url $S3_URL s3 cp link:{s3-upload-file-link}[{s3-upload-file}] s3://{s3-bucket} | ||
---- | ||
#end::s3-upload-file[] | ||
|
||
#tag::s3-ls-bucket[] | ||
[source,bash,subs="+macros,+attributes"] | ||
---- | ||
aws --endpoint-url $S3_URL s3 ls s3://{s3-bucket} | ||
---- | ||
#end::s3-ls-bucket[] |
34 changes: 0 additions & 34 deletions
34
documentation/modules/camelk/pages/_partials/minio-config.adoc
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.