NOTE: Use
--id=fake
[tenant id] if cortex multi-tenancy is disabled [See line 16 in cortex values file]. In our case cortex tenant id isorg1
[See line 142 in the cortex values file].
kubectl port-forward service/cortex-nginx --namespace cortex 8001:80
URL=http://localhost:8001
cortextool rules load ./rules/kubernetes-apps.yaml --address=${URL} --id=fake
cortextool rules load ./rules/kubernetes-storage.yaml --address=${URL} --id=fake
cortextool rules list --address=${URL} --id=fake
cortextool rules print --address=${URL} --id=fake