This folder contains a set of configuration to be used with tanka to deploy a single DSS instance in a Kubernetes cluster.
-
A Kubernetes cluster should be running and you should be properly authenticated. Requirements and instructions to create a new Kubernetes cluster can be found here:
-
Create the certificates and apply them to the cluster using the instructions here
-
Install Tanka
There is a base file in examples/minikube. You can directly use it to deploy the service.
Check first that you cluster is using 192.168.49.2 as IP with minikube ip -p dss-local-cluster. If that not the case, edit examples/minikube/spec.json accordingly.
To apply changes, use the following command:
cd examples/minikubetk apply .
You may edit main.jsonnet as needed should you want to change configuration, or docker images used.
Jobs are not automatically removed. It is possible to use tanka to delete unmanaged resources (eg previous jobs) by enabling the garbage collection feature in your spec.json file. Use tk prune to cleanup resources not present anymore in the jsonnet.