kubectl get 中英文对照
wlzx059@node01:~$ kubectl get --help
Display one or many resources.
(显示一个或多个资源。)Prints a table of the most important information about the specified resources. You can filter the list using a label
selector and the --selector flag. If the desired resource type is namespaced you will only see results in your current
namespace unless you pass --all-namespaces.
(打印有关指定资源的最重要信息的表。您可以使用标签选择器和 --selector 标志过滤列表。如果所需的资源类型已命名,则除非传递 --all-namespaces,否则您将只能在当前命名空间中看到结果。
)By specifying the output as 'template' and providing a Go template as the value of the --template flag, you can filter
the attributes of the fetched resources.
(通过将输出指定为“template”并提供 Go 模板作为 --template 标志的值,您可以过滤获取的资源的属性。)
Use "kubectl api-resources" for a complete list of supported resources.Examples:# List all pods in ps output format (以 ps 输出格式列出所有 pod)kubectl get pods# List all pods in ps output format with more information (such as node name)(以 ps 输出格式列出所有 pod,并提供更多信息(例如节点名称))kubectl get pods -o wide# List a single replication controller with specified NAME in ps output format(List a single replication controller with specified NAME in ps output format)(以 ps 输出格式列出具有指定 NAME 的单个复制控制器)kubectl get replicationcontroller web# List deployments in JSON output format, in the "v1" version of the "apps" API group(在“应用”API 组的“v1”版本中以 JSON 输出格式列出部署)kubectl get deployments.v1.apps -o json# List a single pod in JSON output format(以 JSON 输出格式列出单个 Pod)kubectl get -o json pod web-pod-13je7# List a pod identified by type and name specified in "pod.yaml" in JSON output format(列出由 JSON 输出格式的“pod.yaml”中指定的类型和名称标识的 pod)kubectl get -f pod.yaml -o json# List resources from a directory with kustomization.yaml - e.g. dir/kustomization.yaml(使用 kustomization.yaml 列出目录中的资源 - 例如 dir/kustomization.yaml)kubectl get -k dir/# Return only the phase value of the specified pod(仅返回指定 Pod 的相位值)kubectl get -o template pod/web-pod-13je7 --template={{.status.phase}}# List resource information in custom columns(在自定义列中列出资源信息)kubectl get pod test-pod -o custom-columns=CONTAINER:.spec.containers[0].name,IMAGE:.spec.containers[0].image# List all replication controllers and services together in ps output format(以 ps 输出格式一起列出所有复制控制器和服务)kubectl get rc,services# List one or more resources by their type and names(按类型和名称列出一个或多个资源)kubectl get rc/web service/frontend pods/web-pod-13je7# List status subresource for a single pod.(列出单个pod的状态子资源)kubectl get pod web-pod-13je7 --subresource statusOptions:-A, --all-namespaces=false:If present, list the requested object(s) across all namespaces. Namespace in current context is ignored evenif specified with --namespace.(如果存在,请列出所有命名空间中请求的对象。当前上下文中的命名空间将被忽略,即使使用 --namespace 指定也是如此。)--allow-missing-template-keys=true:If true, ignore any errors in templates when a field or map key is missing in the template. Only applies togolang and jsonpath output formats.(如果为 true,则当模板中缺少字段或映射键时,忽略模板中的任何错误。仅适用于 golang 和 jsonpath 输出格式。)--chunk-size=500:Return large lists in chunks rather than all at once. Pass 0 to disable. This flag is beta and may change inthe future.(以块的形式返回大型列表,而不是一次返回所有列表。传递 0 表示禁用。此标志是测试版,将来可能会更改。)--field-selector='':Selector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selectorkey1=value1,key2=value2). The server only supports a limited number of field queries per type.(要筛选的选择器(字段查询)支持“=”、“==”和“!=”。(例如 --字段选择器键 1=值 1,键 2=值 2)。服务器仅支持每种类型的有限数量的字段查询。)-f, --filename=[]:Filename, directory, or URL to files identifying the resource to get from a server.(文件名、目录或文件的 URL,用于标识要从服务器获取的资源。)--ignore-not-found=false:If the requested object does not exist the command will return exit code 0.(如果请求的对象不存在,则该命令将返回退出代码 0)-k, --kustomize='':Process the kustomization directory. This flag can't be used together with -f or -R.(处理库托化目录。此标志不能与 -f 或 -R 一起使用。)-L, --label-columns=[]:Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive.You can also use multiple flag options like -L label1 -L label2...(接受将以逗号分隔的标签列表,这些标签将显示为列。名称区分大小写。您还可以使用多个标志选项,例如 -L 标签 1 -L 标签 2...)--no-headers=false:When using the default or custom-column output format, don't print headers (default print headers).(使用默认或自定义列输出格式时,请勿打印标题(默认打印标题)。)-o, --output='':Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath,jsonpath-as-json, jsonpath-file, custom-columns, custom-columns-file, wide). See custom columns[https://kubernetes.io/docs/reference/kubectl/#custom-columns], golang template[http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template[https://kubernetes.io/docs/reference/kubectl/jsonpath/].(输出格式)--output-watch-events=false:Output watch event objects when --watch or --watch-only is used. Existing objects are output as initial ADDEDevents.(使用 --watch 或 --仅监视时输出监视事件对象。现有对象作为初始 ADD 事件输出。)--raw='':Raw URI to request from the server. Uses the transport specified by the kubeconfig file.(要从服务器请求的原始 URI。使用 kubeconfig 文件指定的传输。)-R, --recursive=false:Process the directory used in -f, --filename recursively. Useful when you want to manage related manifestsorganized within the same directory.(递归处理 -f, --文件名中使用的目录。当您想要管理在同一目录中组织的相关清单时很有用。)-l, --selector='':Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matchingobjects must satisfy all of the specified label constraints.(要筛选的选择器(标签查询)支持“=”、“==”和“!=”。(例如 -l 键 1=值 1,键 2=值 2))--server-print=true:If true, have the server return the appropriate table output. Supports extension APIs and CRDs.(如果为 true,则让服务器返回相应的表输出。支持扩展 API 和 CRD。)--show-kind=false:If present, list the resource type for the requested object(s).(如果存在,请列出所请求对象的资源类型。)--show-labels=false:When printing, show all labels as the last column (default hide labels column)(打印时,将所有标签显示为最后一列(默认隐藏标签列))--show-managed-fields=false:If true, keep the managedFields when printing objects in JSON or YAML format.(如果为 true,则在以 JSON 或 YAML 格式打印对象时保留托管字段。)--sort-by='':If non-empty, sort list types using this field specification. The field specification is expressed as aJSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPathexpression must be an integer or a string.(如果非空,则使用此字段规范对列表类型进行排序。字段规范表示为 JSONPath 表达式(例如 '{.metadata.name}')。此 JSONPath 表达式指定的 API 资源中的字段必须是整数或字符串。)--subresource='':If specified, gets the subresource of the requested object. Must be one of [status scale]. This flag is betaand may change in the future.(如果指定,则获取请求对象的子资源。必须是[状态等级]之一。此标志是测试版,将来可能会更改。)--template='':Template string or path to template file to use when -o=go-template, -o=go-template-file. The template formatis golang templates [http://golang.org/pkg/text/template/#pkg-overview].(模板字符串或模板文件的路径,当 -o=go-template, -o=go-template-file 时使用。模板格式为golang模板)-w, --watch=false:After listing/getting the requested object, watch for changes.(列出/获取请求的对象后,观察更改。如果未提供对象名称,则排除未初始化的对象。)--watch-only=false:Watch for changes to the requested object(s), without listing/getting first.(监视对请求对象的更改,而无需列出/获取第一个。)Usage:kubectl get
[(-o|--output=)json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file|custom-columns|custom-columns-file|wide]
(TYPE[.VERSION][.GROUP] [NAME | -l label] | TYPE[.VERSION][.GROUP]/NAME ...) [flags] [options]Use "kubectl options" for a list of global command-line options (applies to all commands).
相关文章:
kubectl get 中英文对照
wlzx059node01:~$ kubectl get --help Display one or many resources. (显示一个或多个资源。)Prints a table of the most important information about the specified resources. You can filter the list using a label selector and the --selector flag. If the desired …...

R语言APSIM模型进阶应用与参数优化、批量模拟实践技术
随着数字农业和智慧农业的发展,基于过程的农业生产系统模型在模拟作物对气候变化的响应与适应、农田管理优化、作物品种和株型筛选、农田固碳和温室气体排放等领域扮演着越来越重要的作用。APSIM (Agricultural Production Systems sIMulator)模型是世界知名的作物生…...

无涯教程-Perl - times函数
描述 此函数返回一个四元素列表,为当前进程及其子进程提供用户,系统,子进程和子系统时间。 语法 以下是此函数的简单语法- times返回值 此函数返回ARRAY,($usertime,$systemtime,$childsystem,$childuser) 例 以下是显示其基本用法的示例代码- #!/usr/bin/perl -w($use…...

《计算机网络:自顶向下方法》第五章--网络层:控制平面
控制平面作为一种网络范围的逻辑,不仅控制沿着从源主机到目的主机的端到端路径间的路由器如何转发数据报,而且控制网络层组件和服务如何配置和管理 传统上,控制平面功能与数据平面的转发功能在一起实现,在路由器中作为统一的整体…...

Mysql存储引擎中InnoDB与Myisam的主要区别
在mysql命令窗口中,输入show engins,可以看到mysql的所有引擎,那么这么多的引擎,我们经常使用到的也就两种,MyISAM和InnoDB,这两种引擎究竟有什么区别呢? 1, 事务处理 innodb 支持事务功能,myisam 不支持。 Myisam 的执行速度更快,性能更好。 2,select ,update ,inse…...
数据仓库 ODS->DWD->DWS->ADS
1.数据仓库DW 1.1简介 Data warehouse(可简写为DW或者DWH)数据仓库,是在数据库已经大量存在的情况下,为了进一步挖掘数据资源、为了决策需要而产生的,它是一整套包括了etl、调度、建模在内的完整的理论体系。数据仓库…...
【SpringBoot】SpringBoot获取不到用户真实IP怎么办
文章目录 前言问题原因解决方案修改Nginx配置文件SpringBoot代码实现 前言 项目部署后发现服务端无法获取到客户端真实的IP地址,这是怎么回事呢?给我都整懵逼了,经过短暂的思考,我发现了问题的真凶,那就是我们使用了N…...
LightDB 23.3 plorasql 函数支持inout参数输出
开篇立意 oracle PLSQL函数中返回值有两种情况: (1)使用return返回值; (2)使用out修饰的参数(oracle不支持inout) SQL> create function yu(id inout int) return int asbeginn…...
SpringBoot第41讲:SpringBoot集成Redis - 基于RedisTemplate+Jedis的数据操作
SpringBoot第41讲:SpringBoot集成Redis - 基于RedisTemplate+Jedis的数据操作 Redis是最常用的KV数据库,Spring 通过模板方式(RedisTemplate)提供了对Redis的数据查询和操作功能。本文是SpringBoot第41讲,主要介绍基于RedisTemplate + Jedis方式对Redis进行查询和操作的案…...

用 React+ts 实现无缝滚动的走马灯
一、走马灯的作用 走马灯是一种常见的网页交互组件,可以展示多张图片或者内容,通过自动播放或者手动切换的方式,让用户能够方便地浏览多张图片或者内容。 本次实现的不是轮播图而是像传送带一样的无限滚动的形式。 二、需求梳理 走马灯可设…...

三维模型OSGB格式轻量化重难点分析
三维模型OSGB格式轻量化重难点分析 在三维模型应用中,为了适应移动设备的硬件和网络限制等问题,OSGB格式轻量化处理已经成为一个重要的技术手段。但是,在实际应用中,OSGB格式轻量化仍然存在着一些重难点问题。下面将对这些问题进行…...

C#__事件event的简单使用:工具人下楼问题
// 工具人类 namespace DownStair {delegate void DownStairDelegate(); // 定义了一个下楼委托class ToolMan{public string Name { get; set; } // 声明工具人的名字属性// public DownStairDelegate downStairDelegate null; // 初始化委托downStair为空委托// 解决方案pu…...
初识Spring-ioc
初识Spring-ioc 1. Spring的简介2.Spring容器ioc的特点3.spring注入方式1.Setter方法注入(Setter Injection):通过Setter方法来注入依赖。在类中定义对应的Setter方法,并在方法中接收依赖的参数,Spring容器会通过调用S…...

windows10 安装WSL2, Ubuntu,docker
AI- 通过docker开发调试部署ChatLLM 阅读时长:10分钟 本文内容: window上安装ubuntu虚拟机,并在虚拟机中安装docker,通过docker部署数字人模型,通过vscode链接到虚拟机进行开发调试.调试完成后,直接部署在云…...

Java面试题目汇总
一、面向对象的三个基本特征 2、方法重载和方法重写的概念和区别 3、接口和内部类、抽象类的特性 4、文件读写的基本类 **5、串行化的注意事项以及如何实现串行化 6、线程的基本概念、线程的基本状态以及状态之间的关系 7、线程的同步、如何实现线程的同步 8、几种常用的数据结…...
【ARM 嵌入式 编译系列 6 -- GCC objcopy, objdump, readelf, nm 介绍】
文章目录 GCC objcopy 简介objcopy 常用参数GCC objdump 简介GCC readelf 介绍GCC nm 介绍上篇文章:ARM 嵌入式 编译系列 5 – GCC 内建函数 __builtin 详细介绍 下篇文章:ARM 嵌入式 编译系列 7 – ARM GCC 链接脚本详细讲解 GCC objcopy 简介 objcopy 是 GNU二进制工具集(…...

c语言每日一练(9)
前言:每日一练系列,每一期都包含5道选择题,2道编程题,博主会尽可能详细地进行讲解,令初学者也能听的清晰。每日一练系列会持续更新,暑假时三天之内必有一更,到了开学之后,将看学业情…...
毫米波射频方案分析
豪米波被誉为能够带来令人难以置信的网络吞吐量数据,但迄今为止它的采用一直乏善可陈。 毫米波技术的领导者高通公司认为,他们拥有高达60亿美元的前端机会。这 60亿美元将需要在日本、中国、韩国、欧洲和印度广泛采用 mmWave。尽管有这个巨大的机会&am…...
神经网络基础-神经网络补充概念-04-梯度下降法
概念 梯度下降法是一种常用的优化算法,用于在机器学习和深度学习中更新模型参数以最小化损失函数。它通过迭代地调整参数,沿着损失函数的负梯度方向移动,从而逐步逼近损失函数的最小值。 基本思想 梯度下降法的基本思想是:在每…...
神经网络基础-神经网络补充概念-45-指数加权平均
概念 指数加权平均(Exponential Moving Average,EMA)是一种平均方法,用于平滑时间序列数据或者计算变量的滚动均值。它对数据的权重分布呈指数递减,越靠近当前时刻的数据权重越高,越远离当前时刻的数据权重…...
多场景 OkHttpClient 管理器 - Android 网络通信解决方案
下面是一个完整的 Android 实现,展示如何创建和管理多个 OkHttpClient 实例,分别用于长连接、普通 HTTP 请求和文件下载场景。 <?xml version"1.0" encoding"utf-8"?> <LinearLayout xmlns:android"http://schemas…...

Day131 | 灵神 | 回溯算法 | 子集型 子集
Day131 | 灵神 | 回溯算法 | 子集型 子集 78.子集 78. 子集 - 力扣(LeetCode) 思路: 笔者写过很多次这道题了,不想写题解了,大家看灵神讲解吧 回溯算法套路①子集型回溯【基础算法精讲 14】_哔哩哔哩_bilibili 完…...
AtCoder 第409场初级竞赛 A~E题解
A Conflict 【题目链接】 原题链接:A - Conflict 【考点】 枚举 【题目大意】 找到是否有两人都想要的物品。 【解析】 遍历两端字符串,只有在同时为 o 时输出 Yes 并结束程序,否则输出 No。 【难度】 GESP三级 【代码参考】 #i…...

最新SpringBoot+SpringCloud+Nacos微服务框架分享
文章目录 前言一、服务规划二、架构核心1.cloud的pom2.gateway的异常handler3.gateway的filter4、admin的pom5、admin的登录核心 三、code-helper分享总结 前言 最近有个活蛮赶的,根据Excel列的需求预估的工时直接打骨折,不要问我为什么,主要…...

高等数学(下)题型笔记(八)空间解析几何与向量代数
目录 0 前言 1 向量的点乘 1.1 基本公式 1.2 例题 2 向量的叉乘 2.1 基础知识 2.2 例题 3 空间平面方程 3.1 基础知识 3.2 例题 4 空间直线方程 4.1 基础知识 4.2 例题 5 旋转曲面及其方程 5.1 基础知识 5.2 例题 6 空间曲面的法线与切平面 6.1 基础知识 6.2…...

自然语言处理——Transformer
自然语言处理——Transformer 自注意力机制多头注意力机制Transformer 虽然循环神经网络可以对具有序列特性的数据非常有效,它能挖掘数据中的时序信息以及语义信息,但是它有一个很大的缺陷——很难并行化。 我们可以考虑用CNN来替代RNN,但是…...

UR 协作机器人「三剑客」:精密轻量担当(UR7e)、全能协作主力(UR12e)、重型任务专家(UR15)
UR协作机器人正以其卓越性能在现代制造业自动化中扮演重要角色。UR7e、UR12e和UR15通过创新技术和精准设计满足了不同行业的多样化需求。其中,UR15以其速度、精度及人工智能准备能力成为自动化领域的重要突破。UR7e和UR12e则在负载规格和市场定位上不断优化…...

SpringCloudGateway 自定义局部过滤器
场景: 将所有请求转化为同一路径请求(方便穿网配置)在请求头内标识原来路径,然后在将请求分发给不同服务 AllToOneGatewayFilterFactory import lombok.Getter; import lombok.Setter; import lombok.extern.slf4j.Slf4j; impor…...

QT: `long long` 类型转换为 `QString` 2025.6.5
在 Qt 中,将 long long 类型转换为 QString 可以通过以下两种常用方法实现: 方法 1:使用 QString::number() 直接调用 QString 的静态方法 number(),将数值转换为字符串: long long value 1234567890123456789LL; …...
聊一聊接口测试的意义有哪些?
目录 一、隔离性 & 早期测试 二、保障系统集成质量 三、验证业务逻辑的核心层 四、提升测试效率与覆盖度 五、系统稳定性的守护者 六、驱动团队协作与契约管理 七、性能与扩展性的前置评估 八、持续交付的核心支撑 接口测试的意义可以从四个维度展开,首…...