-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Readme improvements to avoid duplication
- Loading branch information
Showing
15 changed files
with
77 additions
and
109 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 was deleted.
Oops, something went wrong.
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,55 +1,40 @@ | ||
Helm Example | ||
============ | ||
|
||
This example demonstrates how a Helm chart can be included as an artifact within a CSAR. | ||
This example demonstrates a Helm chart included as an artifact within a CSAR. | ||
|
||
To deploy this example you can generally follow the instructions for the | ||
[Hello World example](../../QUICKSTART.md), though make sure to build the chart | ||
artifact first. E.g.: | ||
|
||
Building the CSAR | ||
----------------- | ||
examples/scripts/build-chart | ||
examples/scripts/build-csar | ||
turandot service deploy helm --file=dist/helm.csar | ||
|
||
* [Package the Helm chart](scripts/build-chart) | ||
|
||
examples/helm/scripts/build-chart | ||
|
||
* [Package as CSAR file](scripts/build-csar) | ||
|
||
examples/helm/scripts/build-csar | ||
|
||
|
||
Deploying | ||
--------- | ||
As long as you have LoadBalancer ingress support on your cluster (such as | ||
Minikube's "tunnel"), then you can then use curl or a web browser to access the | ||
deployed service: | ||
|
||
turandot service deploy helm-hello-world --file=dist/helm.csar | ||
IP=$(kubectl get services --selector=app.kubernetes.io/name=helm --output=jsonpath={.items[0].status.loadBalancer.ingress[0].ip}) | ||
xdg-open http://$IP:8080 | ||
|
||
Verifying | ||
--------- | ||
Note that though Helm is used to create the Kubernetes manifests, Turandot is controlling them. | ||
The `helm` command line tool will not be able to list the release. Use the `turandot service` command | ||
instead. | ||
|
||
As in the hello-world example, confirm operation using | ||
Helper Scripts | ||
-------------- | ||
|
||
Run minikube tunnel in a separate session | ||
|
||
minikube tunnel | ||
|
||
Then get the external IP address | ||
|
||
kubectl get service hello-world-helm | ||
|
||
and use it to confirm operation | ||
* [Package the Helm chart](scripts/build-chart) | ||
* [Package as CSAR file](scripts/build-csar) | ||
|
||
curl <external address>:8080 | ||
|
||
How the Helm Chart Was Created | ||
------------------------------ | ||
|
||
We used `helm create hello-world`. Unfortunately, this example chart assumes privileged permissions on | ||
We used `helm create hello-world`. Unfortunately, this example chart assumes privileged containers on | ||
the host that are not allowed out-of-the-box on OpenShift. To ensure it would work on OpenShift we | ||
made two changes: | ||
|
||
* In `value.yaml` we changed `image.repository` to `bitnami/nginx`, which is a containerization of NGINX | ||
that does not require priveleged permissions | ||
* In `value.yaml` we changed `image.repository` to `bitnami/nginx`, which points to an NGINX container | ||
image that does not require a priveleged container | ||
([documentation](https://hub.docker.com/r/bitnami/nginx)). | ||
* In `templates/deployment.yaml` we changed the port from 80 to 8080 (port 80 requires privileged | ||
permissions). | ||
* In `templates/deployment.yaml` we changed the port from 80 to 8080 (again, because port 80 requires | ||
a privileged container). |
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 was deleted.
Oops, something went wrong.
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
5 changes: 5 additions & 0 deletions
5
examples/telephony-network-service/telephony-network-service.yaml
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