-
Install Loki on the host cluster:
helm upgrade --install loki grafana/loki --namespace logging --create-namespace -f values.yaml
-
Install a virtual cluster with Alloy ready to use:
helm upgrade --install vcluster vcluster/vcluster --namespace vcluster --create-namespace --values vcluster.yaml
-
Connect to the virtual cluster:
vcluster connect vcluster
-
Install a dummy container that generates log in the virtual cluster:
kubectl apply -f manifest.yaml
-
Check the logs:
curl -G "http://localhost:31000/loki/api/v1/query_range" \ -H "X-Scope-OrgID: teamA" \ --data-urlencode 'query={job=~".+"}' \ --data-urlencode 'start='$(date -v-5M +%s) \ --data-urlencode 'end='$(date +%s) \ --data-urlencode 'limit=10'
-
Notifications
You must be signed in to change notification settings - Fork 0
ajavageek/ready-vclusters
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published