How kubeslice/netops works
NetOps is a Kubernetes pod that applies slice QoS using Linux Traffic Control. The workflow starts with the Slice Controller sending gRPC QoS, lifecycle, and gateway-context updates; the server validates and dispatches requests, and slice state drives TC classes and gateway filters on the selected network interface. The README documents cluster deployment, but not additional runtime capabilities. Edges reflect shown calls and registration; the handler excerpt is partial, so some internal relationships are not expanded.
Main entry points: netop_handler.go QoS Handler · netop_grpc_server.go gRPC Service · main.go Pod Entrypoint · status.go Command Runner
Components 11
Controller API
- gRPC Contract
pkg/proto/netop.proto - Pod Entrypoint
main.go - gRPC Service
server/netop_grpc_server.go
Slice QoS
- Slice State
server/common.go - QoS Handler
server/netop_handler.go
Traffic Control
- TC Configuration
server/netop_handler.go - Gateway Filters
server/netop_handler.go
Runtime support
- Command Runner
server/status.go - Logger
logger/logger.go
Other components
- Slice Controller
- Linux Traffic Control
Connections 15
- Slice Controller → gRPC Service: sends RPCs
- Pod Entrypoint → gRPC Service: registers service
main.go - Pod Entrypoint → gRPC Contract: uses service
main.go - Pod Entrypoint → QoS Handler: bootstraps
main.go - Pod Entrypoint → Logger: initializes
main.go - gRPC Service → QoS Handler: dispatches QoS
server/netop_grpc_server.go - gRPC Service → Slice State: updates gateway state
server/netop_grpc_server.go - QoS Handler → Slice State: maintains
server/netop_handler.go - QoS Handler → TC Configuration: configures classes
server/netop_handler.go - QoS Handler → Gateway Filters: configures filters
server/netop_handler.go - TC Configuration → Command Runner: runs commands
server/netop_handler.go - Gateway Filters → Command Runner: runs commands
server/netop_handler.go - Command Runner → Linux Traffic Control: executes tc
server/status.go - QoS Handler → Logger: logs operations
server/netop_handler.go - gRPC Service → Logger: logs requests
server/netop_grpc_server.go