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
Name
for your firewall rule, e.g.allow-http-8080
. - Select
All instances in the network
as Targets. - Select
IP ranges
in theSource filter
. - Enter
0.0.0.0/0
asSource IP ranges
. - In
Protocols and ports
, useSpecified protocols and ports
, checktcp
and input8080
. - Click the
Create
button.
-
Create a new VM instance of Ubuntu 18.04 LTS on GCP.
- Choose
Ubuntu 18.04 LTS
as image inBoot disk
.- Click
change
. - Scroll through the
version
dropdown to find the right one.
- Click
- Expand
Management, security, disk, networking, sole tenancy
, click theNetworking
tab, 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>:8080
to set up Jenkins.
Last modified July 28, 2020: Regenerate docs (3a694b8a)