This is the documentation for version 0.39. For documentation on the latest version of kpt, please see kpt.dev.
Creating a Jenkins Instance on GCP
-
Create a Firewall Rule that allows TCP connections to port
8080, which Jenkins uses.- Go to the Firewall page.
- Click
Create Firewall Rule. - Specify a
Namefor your firewall rule, e.g.allow-http-8080. - Select
All instances in the networkas Targets. - Select
IP rangesin theSource filter. - Enter
0.0.0.0/0asSource IP ranges. - In
Protocols and ports, useSpecified protocols and ports, checktcpand input8080. - Click the
Createbutton.
-
Create a new VM instance of Ubuntu 18.04 LTS on GCP.
- Choose
Ubuntu 18.04 LTSas image inBoot disk.- Click
change. - Scroll through the
versiondropdown to find the right one.
- Click
- Expand
Management, security, disk, networking, sole tenancy, click theNetworkingtab, enter the name of the firewall rule you created, e.g.allow-http-8080.
- Choose
-
SSH into the VM instance you just created.
-
Install Jenkins on the VM.
-
Install JDK first.
sudo apt update sudo apt install openjdk-8-jdk -
Then install Jenkins.
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \ /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins
-
-
Go to
<instance ip>:8080to set up Jenkins.
Last modified July 28, 2020: Regenerate docs (3a694b8a)