Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3ece501f
Commit
3ece501f
authored
Nov 12, 2018
by
David Ashpole
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add kubelet pod-resources API definition
parent
076adbf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
api.proto
pkg/kubelet/apis/podresources/v1alpha1/api.proto
+49
-0
No files found.
pkg/kubelet/apis/podresources/v1alpha1/api.proto
0 → 100644
View file @
3ece501f
// To regenerate api.pb.go run hack/update-generated-pod-resources.sh
syntax
=
'proto3'
;
package
v1alpha1
;
import
"github.com/gogo/protobuf/gogoproto/gogo.proto"
;
option
(
gogoproto.goproto_stringer_all
)
=
false
;
option
(
gogoproto.stringer_all
)
=
true
;
option
(
gogoproto.goproto_getters_all
)
=
true
;
option
(
gogoproto.marshaler_all
)
=
true
;
option
(
gogoproto.sizer_all
)
=
true
;
option
(
gogoproto.unmarshaler_all
)
=
true
;
option
(
gogoproto.goproto_unrecognized_all
)
=
false
;
// PodResourcesLister is a service provided by the kubelet that provides information about the
// node resources consumed by pods and containers on the node
service
PodResourcesLister
{
rpc
List
(
ListPodResourcesRequest
)
returns
(
ListPodResourcesResponse
)
{}
}
// ListPodResourcesRequest is the request made to the PodResourcesLister service
message
ListPodResourcesRequest
{}
// ListPodResourcesResponse is the response returned by List function
message
ListPodResourcesResponse
{
repeated
PodResources
pod_resources
=
1
;
}
// PodResources contains information about the node resources assigned to a pod
message
PodResources
{
string
name
=
1
;
string
namespace
=
2
;
repeated
ContainerResources
containers
=
3
;
}
// ContainerResources contains information about the resources assigned to a container
message
ContainerResources
{
string
name
=
1
;
repeated
ContainerDevices
devices
=
2
;
}
// ContainerDevices contains information about the devices assigned to a container
message
ContainerDevices
{
string
resource_name
=
1
;
repeated
string
device_ids
=
2
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment