https://github.com/palestamp/ksql
https://github.com/palestamp/ksql
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/palestamp/ksql
- Owner: palestamp
- Created: 2021-03-02T14:53:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T08:36:53.000Z (over 5 years ago)
- Last Synced: 2025-01-09T01:52:08.314Z (over 1 year ago)
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How to use
1. Install osquery
```
brew install osquery
```
2. Compile extension
```
go build -o ksql cmd/extension/main.go
```
3. Run
```
KSQL_LOG_LEVEL=error osqueryi --extension ./ksql
```
4. Try query
```
osquery> select * from k8s_contexts;
```
## Troubleshooting access problems
Some k8s clusters are discoverable through kube config, but are behind some kind of firewall.
Many queries will try to access those clusters. There is no 100% working workaround for that yet.
## Available tables discovery
All statically defined tables have `k8s_` prefix, to discover those, run
```
osquery> .tables k8s_
```
## Warning
`k8s_env_vars` table will show secrets (from env vars) in plaintext.