14

k8s之安全信息(Secret)及配置信息(ConfigMap)-jonson sun

 4 years ago
source link: https://blog.51cto.com/13972012/2468955
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.
Secretsecret也是k8s中的一个资源对象,主要用于保存轻量的敏感信息,比如数据库用户名和密码,令牌,认证密钥等。我们可以将这类敏感信息放在secret对象中,如果把它们暴露到镜像或者podspec中稍显不妥,将其放在secret对象中可以更好地控制及使用,并降低意外暴露的风险。Secret可以使用volume或者环境变量的方式来使用这些轻量级数据。Secret有三种类型:ServiceA

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK