(fix) Fix static ports in MAAS ingress
- Some residual static configuration was left in the MAAS ingress deployment template. Update it to render the ingress ports from endpoints and also to remove the TCP forwarder for the MAAS region API and instead use a standard Ingress resource. Change-Id: I7764d48ea919147503e9bf2521c52cb6f0028538
This commit is contained in:
10
images/maas-rack-controller/2.3_hostheader.patch
Normal file
10
images/maas-rack-controller/2.3_hostheader.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
1047c1047
|
||||
< if family in {AF_INET, AF_INET6}:
|
||||
---
|
||||
> if family in {AF_INET6}:
|
||||
1051a1052,1054
|
||||
> info_url = info_url_base._replace(netloc=netloc)
|
||||
> elif family in {AF_INET}:
|
||||
> info_url = info_url_base
|
||||
1054d1056
|
||||
< info_url = info_url_base._replace(netloc=netloc)
|
||||
@@ -52,8 +52,12 @@ RUN systemctl enable register-rack-controller.service
|
||||
COPY 2.3_nic_filter.patch /tmp/2.3_nic_filter.patch
|
||||
# sh8121att: patch so that interfaces with MAC 00:00:00:00:00:00 omit the MAC address
|
||||
COPY 2.3_mac_address.patch /tmp/2.3_mac_address.patch
|
||||
# sh8121att: patch so query for RPC info contains proper Host header
|
||||
copy 2.3_hostheader.patch /tmp/2.3_hostheader.patch
|
||||
|
||||
RUN cd /usr/lib/python3/dist-packages/provisioningserver/utils && patch network.py < /tmp/2.3_nic_filter.patch
|
||||
RUN cd /usr/lib/python3/dist-packages/provisioningserver/utils && patch ipaddr.py < /tmp/2.3_mac_address.patch
|
||||
RUN cd /usr/lib/python3/dist-packages/provisioningserver/rpc && patch clusterservice.py < /tmp/2.3_hostheader.patch
|
||||
|
||||
# echo journalctl logs to the container's stdout
|
||||
COPY scripts/journalctl-to-tty.service /etc/systemd/system/journalctl-to-tty.service
|
||||
|
||||
Reference in New Issue
Block a user