Merge "use internal endpoint for mcapi" into stable/2023.1
diff --git a/releasenotes/notes/use-internal-endpoint-for-magnum-capi-client-in-default-da61531ce88c94aa.yaml b/releasenotes/notes/use-internal-endpoint-for-magnum-capi-client-in-default-da61531ce88c94aa.yaml
new file mode 100644
index 0000000..d621716
--- /dev/null
+++ b/releasenotes/notes/use-internal-endpoint-for-magnum-capi-client-in-default-da61531ce88c94aa.yaml
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    The Cluster API driver for Magnum is now configured to use the internal
+    endpoints by default in order to avoid going through the ingress and
+    leverage client-side load balancing.
diff --git a/roles/magnum/vars/main.yml b/roles/magnum/vars/main.yml
index 95582ac..5fff81e 100644
--- a/roles/magnum/vars/main.yml
+++ b/roles/magnum/vars/main.yml
@@ -27,6 +27,7 @@
         region_name: "{{ openstack_helm_endpoints_barbican_region_name }}"
       capi_client:
         ca_file: /etc/ssl/certs/ca-certificates.crt
+        endpoint_type: internalURL
       cinder_client:
         endpoint_type: internalURL
         region_name: "{{ openstack_helm_endpoints_cinder_region_name }}"