kubernetes1.9 部署ingress-nginx

偷懒 ……(_)v
https://www.cnblogs.com/panwenbin-logs/p/9915927.html
注意:在创建 nginx-ingress-controller 时会报错
reason: 'FailedCreate' Error creating: pods "nginx-ingress-controller-56b8d677cb-rt5m5" is forbidden: SecurityContext.RunAsUser is forbidden
解决:
–admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota,NodeRestriction

将SecurityContextDeny 去掉 重启apiserver。
再次重新apply。

你可能感兴趣的:(kubernetes1.9 部署ingress-nginx)