-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make runlocal-rp with Container Image #3593
Conversation
Please rebase pull request. |
6078f54
to
91c82f1
Compare
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
…image locally with Podman fix the code setup_resources.sh has been fixed makefile has been fixed fix the code removed unwanted files vnet create and delete code has been added Makefile has been fixed makefile modified added code to add dedicated vnet unwanted file deleted added some imp files fix the issue code has been added code has been fixed fix the code hive cluster creation process has been done modified the file Updated the Dockerfile to install and configure openssh-server and openssl, and modified the Makefile to build and run the container with services. Modified the Makefile to build and run the container with services. Modified the Makefile to build and run the container with services. setup file has been fixed env file updated fix makefile fix makefile fix makefile added ci-rp in target file has been fixed file has been fixed veriable requirment has been updated Modify the environment variable CLUSTER_RESOURCEGROUP to include the user's distinct identifier, making it unique to each user veriable requirment has been updated veriable requirment has been updated fix the separate variable to handle all the images removed the unwanted stuff from the files added the loopback address before the port export fix the openshift version fix makefile target removed the unwanted target from Makefile env.example
…ullspecs, and update instructions fix: Use RP_IMAGE_LOCAL for Linux compatibility in runlocal-rp target remove the changes veriable file modified move the set file to the hack directory and updated the doc move the set file to the hack directory and updated the doc Improve Podman Compatibility for Local RP with Secrets Handling Improve Podman compatibility by switching from 72626 to syntax for environment variables in Makefile env file updated Added logic to print the VNet/Subnets env file updated Update OpenShift version to 4.13.40 Update OpenShift version to 4.13.40 file added file added modified the makefile file has been added file has been added Makefile has been modifies Added the dynamic variable to fetch the default openshift version Update setup_resources.sh to dynamically fetch OpenShift version and pull specs from const.go
…ion to ensure accurate deployment configurations fixed the env
…mming minor version from OpenShift version file has been added
36a0393
to
d948f49
Compare
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes LGTM - I trust others creating clusters successfully on it - thank you SO MUCH Shubhada! I think as a final item, we should send out a quick notice of this change to the team.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...Even better - I was able to successfully create a cluster and pass local E2E on it. Sweet!
Lines 52 to 56 in 2ce4ec6
|
sorry I misunderstood. never mind. |
Runlocal-RP is Containerized - Modified Makefile to execute a local `podman run` for the RP on 127.0.0.1 - Local RPs now by default interact with Hive due to MacOS limitations - Updated RP dev config to serve on all IPs due to MacOS limitations - Doc updates
Runlocal-RP is Containerized - Modified Makefile to execute a local `podman run` for the RP on 127.0.0.1 - Local RPs now by default interact with Hive due to MacOS limitations - Updated RP dev config to serve on all IPs due to MacOS limitations - Doc updates
Which issue this PR addresses:
We created new Makefile targets to streamline the process of launching containers. This allowed developers to test locally more thoroughly, reducing development cycle time and decreasing failures rate of cluster creation process.
What this PR does / why we need it:
Test plan for issue:
runlocal-rp
to ensure the container image builds and runs correctly.Steps for validating on Mac (need to validate on Linux):
Mount your local MacOS filesystem into the podman machine:
podman machine init --now --cpus=4 --memory=4096 -v $HOME:$HOME
Use the openvpn config file (which is now mounted inside the podman machine) to start the VPN connection:
podman machine ssh
sudo rpm-ostree install openvpn
sudo systemctl reboot
podman machine ssh
sudo openvpn --config /Users/<user_name>/go/src/github.com/Azure/ARO-RP/secrets/vpn-aks-westeurope.ovpn --daemon --writepid vpnpid
ps aux | grep openvpn
Source the environment file before creating the cluster using the
setup_resources.sh
script(Added the updated env in the PR). ./env
cd /hack
./setup_resources.sh
Once the cluster create verify connectivity with the ARO cluster:
Download the admin kubeconfig file
az aro get-admin-kubeconfig --name <cluster_name> --resource-group v4-westeurope --file ~/.kube/aro-admin-kubeconfig
Set the KUBECONFIG environment variable
export KUBECONFIG=~/.kube/aro-admin-kubeconfig
Verify connectivity with the ARO cluster
kubectl get nodes
Additional Changes:
pkg/env/dev.go
fromreturn net.Listen("tcp", "localhost:8443")
toreturn net.Listen("tcp", ":8443")
.podman run --rm -p 127.0.0.1:8443:8443
Is there any documentation that needs to be updated for this PR?
N/A
How do you know this will function as expected in production?
Currently not a production change - this will be a parallel CI/CD effort that for now does not impact prod.