当前位置: 首页 > news >正文

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)是一种平均方法,用于平滑时间序列数据或者计算变量的滚动均值。它对数据的权重分布呈指数递减,越靠近当前时刻的数据权重越高,越远离当前时刻的数据权重…...

多模态2025:技术路线“神仙打架”,视频生成冲上云霄

文|魏琳华 编|王一粟 一场大会,聚集了中国多模态大模型的“半壁江山”。 智源大会2025为期两天的论坛中,汇集了学界、创业公司和大厂等三方的热门选手,关于多模态的集中讨论达到了前所未有的热度。其中,…...

Flask RESTful 示例

目录 1. 环境准备2. 安装依赖3. 修改main.py4. 运行应用5. API使用示例获取所有任务获取单个任务创建新任务更新任务删除任务 中文乱码问题: 下面创建一个简单的Flask RESTful API示例。首先,我们需要创建环境,安装必要的依赖,然后…...

Golang 面试经典题:map 的 key 可以是什么类型?哪些不可以?

Golang 面试经典题:map 的 key 可以是什么类型?哪些不可以? 在 Golang 的面试中,map 类型的使用是一个常见的考点,其中对 key 类型的合法性 是一道常被提及的基础却很容易被忽视的问题。本文将带你深入理解 Golang 中…...

Appium+python自动化(十六)- ADB命令

简介 Android 调试桥(adb)是多种用途的工具,该工具可以帮助你你管理设备或模拟器 的状态。 adb ( Android Debug Bridge)是一个通用命令行工具,其允许您与模拟器实例或连接的 Android 设备进行通信。它可为各种设备操作提供便利,如安装和调试…...

基于uniapp+WebSocket实现聊天对话、消息监听、消息推送、聊天室等功能,多端兼容

基于 ​UniApp + WebSocket​实现多端兼容的实时通讯系统,涵盖WebSocket连接建立、消息收发机制、多端兼容性配置、消息实时监听等功能,适配​微信小程序、H5、Android、iOS等终端 目录 技术选型分析WebSocket协议优势UniApp跨平台特性WebSocket 基础实现连接管理消息收发连接…...

如何在看板中有效管理突发紧急任务

在看板中有效管理突发紧急任务需要:设立专门的紧急任务通道、重新调整任务优先级、保持适度的WIP(Work-in-Progress)弹性、优化任务处理流程、提高团队应对突发情况的敏捷性。其中,设立专门的紧急任务通道尤为重要,这能…...

P3 QT项目----记事本(3.8)

3.8 记事本项目总结 项目源码 1.main.cpp #include "widget.h" #include <QApplication> int main(int argc, char *argv[]) {QApplication a(argc, argv);Widget w;w.show();return a.exec(); } 2.widget.cpp #include "widget.h" #include &q…...

【Go】3、Go语言进阶与依赖管理

前言 本系列文章参考自稀土掘金上的 【字节内部课】公开课&#xff0c;做自我学习总结整理。 Go语言并发编程 Go语言原生支持并发编程&#xff0c;它的核心机制是 Goroutine 协程、Channel 通道&#xff0c;并基于CSP&#xff08;Communicating Sequential Processes&#xff0…...

uniapp微信小程序视频实时流+pc端预览方案

方案类型技术实现是否免费优点缺点适用场景延迟范围开发复杂度​WebSocket图片帧​定时拍照Base64传输✅ 完全免费无需服务器 纯前端实现高延迟高流量 帧率极低个人demo测试 超低频监控500ms-2s⭐⭐​RTMP推流​TRTC/即构SDK推流❌ 付费方案 &#xff08;部分有免费额度&#x…...

如何理解 IP 数据报中的 TTL?

目录 前言理解 前言 面试灵魂一问&#xff1a;说说对 IP 数据报中 TTL 的理解&#xff1f;我们都知道&#xff0c;IP 数据报由首部和数据两部分组成&#xff0c;首部又分为两部分&#xff1a;固定部分和可变部分&#xff0c;共占 20 字节&#xff0c;而即将讨论的 TTL 就位于首…...