How to install Kriten on your macbook
- steve291030
- May 7
- 1 min read

Install kubectl: Install and Set Up kubectl on macOS
Install Helm: Installing Helm
Install Docker Desktop: Install Docker Desktop on Mac
In Docker Desktop settings, enable Kubernetes

When Docker Desktop has restarted, you should have a config file in $HOME/.kube
Check that you have the docker-desktop context and switch to it, and check kubectl is working:
kubectl config get-contexts
kubectl config use-context docker-desktop
Switched to context "docker-desktop".
kubectl get nodes
NAME STATUS ROLES AGE VERSION
docker-desktop Ready control-plane 7m4s v1.32.2Add the Kriten helm repo:
helm repo add kriten https://kriten-io.github.io/kriten-charts/
helm repo updateAdd nodeports:
kubectl apply -n kriten -f - <<EOF
apiVersion: v1
kind: Service
metadata:
name: kriten-nodeport
spec:
selector:
app: kriten
type: NodePort
ports:
- name: http
port: 80
targetPort: 8080
nodePort: 30040
---
apiVersion: v1
kind: Service
metadata:
name: kriten-frontend-nodeport
spec:
selector:
app: kriten-frontend
type: NodePort
ports:
- name: http
port: 80
targetPort: 80
nodePort: 30050
EOFSet an environment variable to the IP address of your macbook
export IP_ADDRESS=<your_ip_address>Use helm to install Kriten and the frontend.
helm install kriten kriten/kriten \
--set frontend.enabled=true \
--set frontend.backendAddress=$IP_ADDRESS':30040' \
--set frontend.image.repository=kubecodeio/kriten-frontend \
--set frontend.image.tag="latest" \
--namespace kriten --create-namespaceYou should now be able to connect to the Kriten API:
curl -c ./token.txt -X POST 'http://'$IP_ADDRESS':30040/api/v1/login' \
--header 'Content-Type: application/json' \
--data '{
"username": "root",
"password": "root",
"provider": "local"
}' Which should return a token:
{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJvb3QiLCJ1c2VyX2lkIjoiODJkOTg4NGItZmIxZC00MmQ4LTgxM2MtZTJlYjY1ZDllYmMzIiwicHJvdmlkZXIiOiJsb2NhbCIsImV4cCI6MTc0MTQ1OTkwMn0.zerwoMCIYHM4qE5k3h2rw9chwtWhrr2568zh2_1x5SY"}You should now be able to browse to "http://"$IP_ADDRESS":30050".
Happy Kriten-ing



