現(xiàn)象描述
rancher2.1 搭建完畢,已經(jīng)導(dǎo)入k8s集群,且正確設(shè)置pipeline 流水線。
手動(dòng)點(diǎn)擊運(yùn)行按鈕,可以正常執(zhí)行。但是推送不能自動(dòng)觸發(fā)。
解決辦法
- gitlab 使用root賬戶登錄。
- Admin Area -> Settings -> Network ->Outbound requests
勾選Allow requests to the local network from hooks and services
如下圖所示
image.png
