-
Related issue: #1218 Missing http proxy settings on rke2 and rancher pod
-
Related issue: #1012 Failed to create image when deployed in private network environment
Category:
- Network
Environment setup
Setup an airgapped harvester
- Clone ipxe example repository https://github.com/harvester/ipxe-examples
- Edit the
setting.xml
file under vagrant ipxe example - Set offline:
true
- Use ipxe vagrant example to setup a 3 nodes cluster
Verification Steps
- Open Settings, edit
http-proxy
with the following values
HTTP_PROXY=http://proxy-host:port
HTTPS_PROXY=http://proxy-host:port
NO_PROXY=localhost,127.0.0.1,0.0.0.0,10.0.0.0/8,192.168.0.0/16,cattle-system.svc,.svc,.cluster.local,<internal domain>
- Create image from URL (change folder date to latest) https://cloud-images.ubuntu.com/focal/20211122/focal-server-cloudimg-amd64.img
- Create a virtual machine
- Prepare an S3 account with
Bucket
,Bucket region
,Access Key ID
andSecret Access Key
- Setup backup target in settings
- Edit virtual machine and take backup
- ssh to server node with user
rancher
- Run
kubectl create deployment nginx --image=nginx:latest
on Harvester cluster - Run
kubectl get pods
Expected Results
- At Step 2, Can download and create image from URL without error
- At step 6, Can backup running VM to external S3 storage correctly
- At step 6, Can delete backup from external S3 correctly
- At step 9, Can pull image from internet and deploy nginx pod in running status
harvester-node-0:/home/rancher # kubectl create deployment nginx --image=nginx:latest
deployment.apps/nginx created
harvester-node-0:/home/rancher # kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx-55649fd747-hkfjh 1/1 Running 0 28s