Branch: master
Find file History
omerlh Update api packages (#110)
* adeed gren config file

* cr fixes

* move to json

* upgrade to dontet 2.2

* bump version

* fix the tests

* move to alpine

* fix the build

* try to fix the build

* now it should finally pass

* fix the dockerfile

* try to fix the build

* maybe?

* take version only from the target framework

* dummy
Latest commit 6be3a1a Feb 3, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Php example (#72) Jan 9, 2019
deployment-kamus Update api packages (#110) Feb 4, 2019
deployment-secret Kamus example (#39) Dec 27, 2018 api removed from kamus-api-url argument Jan 16, 2019

Kamus Example

A small example app, showing the power of Kamus. Before running this demo, make sure Kamus is up and running, and the CLI is installed.

Running the demo

Before running the demo, make sure to install Kamus on the cluster. If Kamus is not installed, use the following command:

helm repo add soluto
helm upgrade --install soluto/kamus

Start by encrypting a secret using the CLI:

kamus-cli encrypt super-secret kamus-example-sa default --kamus-url <Kamus URL>

You might have to pass aditional arguments, based on your installation.

After encrypting the secret, open deployment-kamus\configmap.yaml. Modify the value of key to the encrypted value returned from the CLI.

Now, run

kubectl apply -f deployment-kamus/

To deploy the example app. Check deployment status using

kubectl get pods

Notice the kamus-example pods. Now run:

kubectl port-forward deployment/kamus-example 8080:80

Open http://localhost:8080 on your browser, you should see the encrypted secrets decrypted!

In case you have issues running the demo, we made a recorded version of the demo.

Kubernetes Secrets

To complete the example, reffer to deployment-secret. This example shows the alternative to Kamus - using Kubernetes native secrets. Run the demo using

kubectl apply -f deployment-kamus/

Notice the kamus-example pods. Wait for the pod to be in Completed state, and check the logs using

kubectl logs -l app=kamus-example

You should see the following output


Editing the secrets:

  • Open secret.yaml
  • Decode the value under config.json using base64 decoder
  • Edit the JSON
  • Encode the JSON using base64 encoder, and put this value under config.json