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)是一种平均方法,用于平滑时间序列数据或者计算变量的滚动均值。它对数据的权重分布呈指数递减,越靠近当前时刻的数据权重越高,越远离当前时刻的数据权重…...
Android Wi-Fi 连接失败日志分析
1. Android wifi 关键日志总结 (1) Wi-Fi 断开 (CTRL-EVENT-DISCONNECTED reason3) 日志相关部分: 06-05 10:48:40.987 943 943 I wpa_supplicant: wlan0: CTRL-EVENT-DISCONNECTED bssid44:9b:c1:57:a8:90 reason3 locally_generated1解析: CTR…...
PL0语法,分析器实现!
简介 PL/0 是一种简单的编程语言,通常用于教学编译原理。它的语法结构清晰,功能包括常量定义、变量声明、过程(子程序)定义以及基本的控制结构(如条件语句和循环语句)。 PL/0 语法规范 PL/0 是一种教学用的小型编程语言,由 Niklaus Wirth 设计,用于展示编译原理的核…...
CMake 从 GitHub 下载第三方库并使用
有时我们希望直接使用 GitHub 上的开源库,而不想手动下载、编译和安装。 可以利用 CMake 提供的 FetchContent 模块来实现自动下载、构建和链接第三方库。 FetchContent 命令官方文档✅ 示例代码 我们将以 fmt 这个流行的格式化库为例,演示如何: 使用 FetchContent 从 GitH…...
HDFS分布式存储 zookeeper
hadoop介绍 狭义上hadoop是指apache的一款开源软件 用java语言实现开源框架,允许使用简单的变成模型跨计算机对大型集群进行分布式处理(1.海量的数据存储 2.海量数据的计算)Hadoop核心组件 hdfs(分布式文件存储系统)&a…...
IP如何挑?2025年海外专线IP如何购买?
你花了时间和预算买了IP,结果IP质量不佳,项目效率低下不说,还可能带来莫名的网络问题,是不是太闹心了?尤其是在面对海外专线IP时,到底怎么才能买到适合自己的呢?所以,挑IP绝对是个技…...
DingDing机器人群消息推送
文章目录 1 新建机器人2 API文档说明3 代码编写 1 新建机器人 点击群设置 下滑到群管理的机器人,点击进入 添加机器人 选择自定义Webhook服务 点击添加 设置安全设置,详见说明文档 成功后,记录Webhook 2 API文档说明 点击设置说明 查看自…...
Selenium常用函数介绍
目录 一,元素定位 1.1 cssSeector 1.2 xpath 二,操作测试对象 三,窗口 3.1 案例 3.2 窗口切换 3.3 窗口大小 3.4 屏幕截图 3.5 关闭窗口 四,弹窗 五,等待 六,导航 七,文件上传 …...
LRU 缓存机制详解与实现(Java版) + 力扣解决
📌 LRU 缓存机制详解与实现(Java版) 一、📖 问题背景 在日常开发中,我们经常会使用 缓存(Cache) 来提升性能。但由于内存有限,缓存不可能无限增长,于是需要策略决定&am…...
Axure 下拉框联动
实现选省、选完省之后选对应省份下的市区...
【WebSocket】SpringBoot项目中使用WebSocket
1. 导入坐标 如果springboot父工程没有加入websocket的起步依赖,添加它的坐标的时候需要带上版本号。 <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-websocket</artifactId> </dep…...
