Harbor Install & Setup
- Chris Speed
- Jul 16, 2023
- 1 min read
Updated: Jul 25, 2023
1. Go to the Harbor releases page & Download either the online or offline installer for the version you want to install.
2. Use tar to extract the installer package:
tar xzvf harbor-online-installer-version.tgz
3. Create a Certificate Authority (CA) certificate using OpenSSL
cd ~
sudo mkdir cert
cd cert
openssl genpkey -algorithm RSA -out ca.key
openssl req -new -key ca.key -out ca.csr
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
4. Copy .yml file
cp harbor.yml.tmpl harbor.yml
5. Edit harbor.yml file
sudo nano harbor.yml
Make the following changes:
hostname: cero-helix
port: 81
port: 8443
certificate: /ca.crt
private_key: /ca.key
6. Edit prepare file, with the location of the certs
sudo nano prepare
-v /home/cerospeed/cert:/hostfs \
7. Install Harbor
sudo ./install.sh
8. Open Harbor via https://<ip address>:8443 or https://10.0.0.92:8443
Default admin username and password are admin and Harbor12345
References:
コメント