From 8af416d238eada7e47c31544ac44984d706c8f9d Mon Sep 17 00:00:00 2001 From: Tom Weininger Date: Mon, 20 Nov 2023 17:54:40 +0100 Subject: [PATCH] Incorporate kubefwd into install_yamls_setup --- install_yamls_setup/roles/podified_cp/tasks/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install_yamls_setup/roles/podified_cp/tasks/main.yaml b/install_yamls_setup/roles/podified_cp/tasks/main.yaml index 21ff9146..1f3ac516 100644 --- a/install_yamls_setup/roles/podified_cp/tasks/main.yaml +++ b/install_yamls_setup/roles/podified_cp/tasks/main.yaml @@ -23,6 +23,7 @@ - podman - python3 - python3-pip + - https://github.com/txn2/kubefwd/releases/download/1.22.5/kubefwd_amd64.rpm state: latest become: yes tags: install @@ -187,6 +188,7 @@ - export OS_PASSWORD=12345678 - export EDPM_COMPUTE_CEPH_ENABLED=false - export BMO_SETUP=false + - export KUBECONFIG=~/.kube/config - export PATH=$PATH:~/.crc/bin/oc tags: config @@ -199,6 +201,10 @@ # Now run the operator as a Go program locally (outside the Kubernetes cluster): # +# First run kubefwd in the background so communication between local operator +# and cluster is possible: +# sudo -E kubefwd services -n openstack & +# # Either using VSCode or directly in a shell: # In VSCode open the home folder and add the ~/octavia_operator folder to the # workspace (File->Add folder to workspace...). Then open