Skip to main content

tuna and Kubernetes

An example of running tuna to provide access to a service in a running Kubernetes cluster.

Step 1. Clone the examples repository

git clone https://gitlab.com/yuccastream/tuna-examples.git
cd tuna-examples/kubernetes

Step 2. Start the service

Create a separate namespace for experiments and start a test service:

kubectl create namespace tuna-example
kubectl -n tuna-example apply -k podinfo

Step 3. Run tuna

Make sure the correct token is specified in the tuna/deployment.yaml file, without it tuna will not work, then execute the command:

kubectl -n tuna-example apply -k tuna

Wait for the test service and tuna to transition to Running status:

kubectl -n tuna-example get pods
NAME READY STATUS RESTARTS AGE
podinfo-6779cc5586-t78q4 1/1 Running 0 2m14s
tuna-64d9b5c698-7sr96 1/1 Running 0 25s

Then view the tuna event log to get the link:

kubectl -n tuna-example logs -l app.kubernetes.io/name=tuna
INFO[13:00:00] Welcome to Tuna
INFO[13:00:00] Account: test (Paid till 05.04.2024)
INFO[13:00:00] Web Interface: http://127.0.0.1:4040
INFO[13:00:00] Forwarding https://yae6hu-10-21-32-25.ru.tuna.am -> podinfo:9898

To remove all created entities use the command kubectl delete namespace tuna-example.