The project Kuma Mahs is useful tool to create powerful systems based in microservices.
To install and execute the commands you have to install Kuma and the app example available in: https://kuma.io/docs/1.1.2/quickstart/kubernetes/
Enviroment variables used:
{{meshe}} = default
{{namespace}} = kuma-demo
Listing Traffic Permissions:
-- Kubectl:
kubectl get trafficpermission -n {{namespace}}
-- Kuma Api:
http://127.0.0.1:5681/meshes/{{namespace}}/traffic-permissions
Kuma – GUI:
Creating a Traffic Permission:
-- Kubectl:
echo "apiVersion: kuma.io/v1alpha1
kind: TrafficPermission
mesh: default
metadata:
namespace: default
name: all-traffic-allowed
spec:
sources:
- match:
kuma.io/service: '*'
destinations:
- match:
kuma.io/service: '*'" | kubectl apply -f -
Listing the detail about a traffic permission:
-- Kuma-Api:
{{traffic-name}} = all-traffic-allowed
http://127.0.0.1:5681/meshes/{{meshe}}/traffic-permissions/{{traffic-name}}
-- Kuma Api:
http://127.0.0.1:5681/meshes/{{namespace}}/traffic-permissions/{{traffic-name}}
Kuma – Gui:
Deleting a traffic permission:
-- Kumactl:
kubectl delete trafficpermission {{traffic-name}} -n {{traffic-name}}
Traffic permission reference: https://kuma.io/docs/1.1.2/policies/traffic-route/#usage
Step 2 – Kuma Metrics https://leaftix.com/blogtech/2021/04/16/kuma-metrics-grafana/
1 thought on “Kuma Mesh – Commun Commands”
Comments are closed.