简体   繁体   English

Gitlab + Jenkins 通过私有 IP 集成(Amazon EC2)

[英]Gitlab + Jenkins Intergration Over Private IP (Amazon EC2)

I'm running both my Jenkins & GitLab server on two difference EC2 instances.我在两个不同的 EC2 实例上同时运行 Jenkins 和 GitLab 服务器。

Is there away that I can grant GitLab access an integration with my Jenkins over my Jenkins private ip address?我是否可以授予 GitLab 访问与我的 Jenkins 通过我的 Z2E54334C0A5CE2E3E3E5A5845DF3AB3ADAZ 私有地址 Z957B527BCFCAD32E80F585D206 的集成?

  1. check info your two intances, if Subnet ID and Availability zone in two intance are similar, you can access private ip.检查您的两个实例的信息,如果两个实例中的子网 ID 和可用区相似,您可以访问私有 ip。

在此处输入图像描述


2. if Subnet ID and Availability zone in two intance are not similar. 2.如果两个实例中的子网ID和可用区不相似。 I can access public ip:我可以访问公共 ip:
2.1 Security Groups > create sercurity group > config public ip your two instance. 2.1安全组>创建安全组>配置公共ip你的两个实例。
2.2 then EC2 > Instances > your instances_name > Actions > Security > Change security groups > Add sercurity group you create in step 2.1 > Save. 2.2 然后 EC2 > Instances > your instances_name > Actions > Security > Change security groups > 添加您在步骤 2.1 中创建的安全组 > Save。 Now you can access public ip your two instance.现在您可以访问公共 ip 您的两个实例。 在此处输入图像描述

Well all i had to do is over the gitlab admin panel settings> network> allow local communication.那么我所要做的就是通过 gitlab 管理面板设置>网络>允许本地通信。

This solved my issue.这解决了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM