"K8s API 리소스"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 7개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;k8s resources
;k8s API resources, K8s 리소스
;k8s 리소스
;K8s API 리소스, k8s 리소스


==기본 조회==
<syntaxhighlight lang='console'>
$ kubectl api-resources
NAME                              SHORTNAMES  APIVERSION                            NAMESPACED  KIND
bindings                                      v1                                    true        Binding
componentstatuses                cs          v1                                    false        ComponentStatus
configmaps                        cm          v1                                    true        ConfigMap
endpoints                        ep          v1                                    true        Endpoints
...
</syntaxhighlight>
==clusterroles에서 조회==
<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
$ kubectl get clusterroles -ojson | jq -r '.items[].rules[].resources[]' | sort | uniq
$ kubectl get clusterroles -ojson | jq -r '.items[].rules[].resources[]' | sort | uniq
9번째 줄: 21번째 줄:
bgppeers
bgppeers
bindings
bindings
blockaffinities
...
caliconodestatuses
clusterinformations
configmaps
controllerrevisions
cronjobs
cronjobs/status
daemonsets
daemonsets/status
deployments
deployments/rollback
deployments/scale
deployments/status
endpoints
endpointslices
events
felixconfigurations
globalbgpconfigs
globalfelixconfigs
globalnetworkpolicies
globalnetworksets
horizontalpodautoscalers
horizontalpodautoscalers/status
hostendpoints
ingresses
ingresses/status
ipamblocks
ipamhandles
ippools
ipreservations
jobs
jobs/status
kubecontrollersconfigurations
leases
limitranges
localsubjectaccessreviews
namespaces
namespaces/status
networkpolicies
networksets
nodes
nodes/status
persistentvolumeclaims
persistentvolumeclaims/status
poddisruptionbudgets
poddisruptionbudgets/status
pods
pods/attach
pods/eviction
pods/exec
pods/log
pods/portforward
pods/proxy
pods/status
replicasets
replicasets/scale
replicasets/status
replicationcontrollers
replicationcontrollers/scale
replicationcontrollers/status
resourcequotas
resourcequotas/status
rolebindings
roles
secrets
serviceaccounts
serviceaccounts/token
services
services
services/proxy
services/proxy
89번째 줄: 35번째 줄:
* [[k8s verbs]]
* [[k8s verbs]]
* [[k8s 리소스]]
* [[k8s 리소스]]
* [[쿠버네티스 API 요청 애트리뷰트]]
* [[k8s 오브젝트]]
* [[k8s 워크로드]]
* [[k8s API 요청 애트리뷰트]]
* [[kubectl api-resources]]
* [[kubectl get clusterroles]]
* [[kubectl get clusterroles]]
* [[kubectl describe clusterrole admin]]
* [[kubectl describe clusterrole admin]]
98번째 줄: 47번째 줄:
* https://docs.splunk.com/Documentation/AddOns/released/GoogleCloud/Setupv3
* https://docs.splunk.com/Documentation/AddOns/released/GoogleCloud/Setupv3


[[분류: k8s RBAC]]
[[분류: k8s]]

2024년 6월 8일 (토) 14:21 기준 최신판

1 개요[ | ]

k8s API resources, K8s 리소스
K8s API 리소스, k8s 리소스

2 기본 조회[ | ]

$ kubectl api-resources
NAME                              SHORTNAMES   APIVERSION                             NAMESPACED   KIND
bindings                                       v1                                     true         Binding
componentstatuses                 cs           v1                                     false        ComponentStatus
configmaps                        cm           v1                                     true         ConfigMap
endpoints                         ep           v1                                     true         Endpoints
...

3 clusterroles에서 조회[ | ]

$ kubectl get clusterroles -ojson | jq -r '.items[].rules[].resources[]' | sort | uniq
*
bgpconfigurations
bgppeers
bindings
...
services
services/proxy
services/status
statefulsets
statefulsets/scale
statefulsets/status

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}