84

Pod 状态管理-Trying

 6 years ago
source link: http://blog.51cto.com/tryingstuff/2130287
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
在容器内获取Pod信息(DownwardAPI)DownwardAPI有提供了两种方式来实现从容器内部获取POD信息的方法:环境变量的方式DownwardAPI卷文件挂载通过这两种方式,可以将pod的标签信息,资源信息,状态信息传递到Pod内部。环境变量方式-将Pod信息注入为环境变量参考链接1、使用pod参数方式使用如下文件:apiVersion:v1kind:Podmetadata:name:

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK