上QQ阅读APP看书,第一时间看更新
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.
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.