Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

K8s gets the corresponding available resources under apiversion

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Get the api command

[note: the url address http://127.0.0.1/ of the following command is the address of k8s master]

Kubectl api-versions

The output is as follows:

Apps/v1beta1

Authentication.k8s.io/v1beta1

Authorization.k8s.io/v1beta1

Autoscaling/v1

Batch/v1

Certificates.k8s.io/v1alpha1

Extensions/v1beta1

Policy/v1beta1

Rbac.authorization.k8s.io/v1alpha1

Storage.k8s.io/v1beta1

V12. Curl http://127.0.0.1:8080/apis|grep groupVersion | cut-d:-f2 | sort | uniq-c | cut-d\ "- f2 output is as follows: apps/v1beta1authentication.k8s.io/v1beta1authorization.k8s.io/v1beta1autoscaling/v1batch/v1certificates.k8s.io/v1alpha1extensions/v1beta1policy/v1beta1rbac.authorization.k8s.io/v1alpha1storage.k8s.io/v1beta13. Curl http://127.0.0.1:8080/api/v1|grep kind | cut-d:-f2 | sort | uniq-c | cut-d\"-f2 output is as follows: APIResourceListBindingComponentStatusConfigMapEndpointsEventEvictionLimitRangeNamespaceNodePersistentVolumePersistentVolumeClaimPodPodTemplateReplicationControllerResourceQuotaScaleSecretSecurityContextConstraintsServiceServiceAccount

Add api information after the url address of master, and the information collected is as follows:

The simplified results are as follows:

[note: yellow is the commonly used part, you can see that extensions/v1betal is suitable for 90% of the scenarios]

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report