Кто-нибудь знает, как настроить kubectl с jenkins?Дженкинс работает на AWS EC2, который может взаимодействовать с AWS EKS Cluster.
, когда я запускаю сценарий оболочки в jenkins как версия kubectl, я получаю:
+ kubectl version
вывод:
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.3", GitCommit:"2bba0127d85d5a46ab4b778548be28623b32d0b0", GitTreeState:"clean", BuildDate:"2018-07-26T20:40:11Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Error from server (Forbidden): <html><head><meta http-equiv='refresh' content='1;url=/login?from=%2Fversion'/> <script>window.location.replace('/login?from=%2Fversion');</script></head> <body style='background-color:white; color:white;'>
Authentication required
<!--
You are authenticated as: anonymous
Groups that you are in:
Permission you need to have (but didn't): hudson.model.Hudson.Read
... which is implied by: hudson.security.Permission.GenericRead
... which is implied by: hudson.model.Hudson.Administer
-->
</body></html>
Build step 'Execute shell' marked build as failure