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

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.  

主站蜘蛛池模板: 乐都县| 金昌市| 湖北省| 竹山县| 东宁县| 高尔夫| 武城县| 北川| 北海市| 化德县| 宜章县| 满洲里市| 揭阳市| 河曲县| 盐津县| 建平县| 嘉鱼县| 乌鲁木齐县| 探索| 扬州市| 浦东新区| 清水河县| 调兵山市| 通渭县| 西安市| 西吉县| 丽江市| 武宁县| 厦门市| 大庆市| 河北省| 临夏市| 修武县| 肇东市| 青海省| 苍山县| 新宾| 开江县| 习水县| 黎川县| 营口市|