官术网_书友最值得收藏!

Editing Kubernetes resources

We can also edit the properties of a running container with kubectl edit pod httpd-8576c89d7-qjd62. We are not going to change anything at this point, but you can try to change something before we delete the container. We are going to work with the edit command while working with OpenShift in further chapters.

The kubectl edit command by default uses the vi editor. Learn how to use vi first if you are not familiar with this text editor, otherwise you might get into trouble. 

Another trick that you can do is to change the editor by running export EDITOR=nano, where nano is your favorite text editor.

Similarly, you can edit any other Kubernetes resources. We will discuss other Kubernetes resources later in this chapter.  

主站蜘蛛池模板: 佳木斯市| 伊川县| 芦山县| 江都市| 城市| 云安县| 南陵县| 西贡区| 中卫市| 从化市| 龙江县| 南和县| 新昌县| 仪陇县| 包头市| 五台县| 孝感市| 江安县| 丰都县| 堆龙德庆县| 廊坊市| 金门县| 仁布县| 乐亭县| 肇庆市| 沛县| 个旧市| 皮山县| 舞钢市| 额尔古纳市| 延边| 昭通市| 琼结县| 响水县| 民权县| 武乡县| 江油市| 石河子市| 南乐县| 巩义市| 烟台市|