How learnk8s/xlskubectl works
xlskubectl is a browser-based bridge for viewing Kubernetes deployments in Google Sheets and changing desired replica counts from the spreadsheet. The user opens the served page, connects Google credentials, and the client loads deployments, synchronizes spreadsheet rows, and watches Kubernetes updates; spreadsheet edits can trigger deployment scaling. The source excerpt shows these responsibilities in one JavaScript file, so the nodes separate its main runtime roles rather than implying separate modules. The HTML’s implementation details and some event-handling branches were not sampled.
Main entry points: gsheet.js Bridge client · index.html App page
Components 9
Browser interface
- App page
index.html
Cluster bridge
- Bridge client
gsheet.js - Deployment sync
gsheet.js - Update stream
gsheet.js
Spreadsheet sync
- Sheet state
gsheet.js - Sheet I/O
gsheet.js
Other components
- Operator
- Kubernetes API
- Google Sheets API
Connections 13
- Operator → App page: opens
README.md - App page → Bridge client: loads client
- Bridge client → Google Sheets API: authorizes
gsheet.js - Bridge client → Deployment sync: starts sync
gsheet.js - Deployment sync → Kubernetes API: fetches deployments
gsheet.js - Deployment sync → Sheet state: upserts deployments
gsheet.js - Bridge client → Update stream: starts watch
gsheet.js - Update stream → Kubernetes API: watches updates
gsheet.js - Bridge client → Sheet I/O: reads sheet names
gsheet.js - Sheet state → Sheet I/O: renders rows
gsheet.js - Sheet I/O → Google Sheets API: reads and writes
gsheet.js - Bridge client → Google Sheets API: reads desired counts
gsheet.js - Bridge client → Kubernetes API: patches replicas
gsheet.js