diff --git a/docs/openstack-barbican.md b/docs/openstack-barbican.md index b28c2802..ac9096a0 100644 --- a/docs/openstack-barbican.md +++ b/docs/openstack-barbican.md @@ -75,7 +75,7 @@ sed 's/your.domain.tld//g' \ > /etc/genestack/gateway-api/routes/custom-barbican-gateway-route.yaml ``` -### Apply the Route +#### Apply the Route ``` shell kubectl --namespace openstack apply -f /etc/gateway-api/routes/custom-barbican-gateway-route.yaml diff --git a/docs/openstack-cinder.md b/docs/openstack-cinder.md index 1dab1cb4..b529a6f4 100644 --- a/docs/openstack-cinder.md +++ b/docs/openstack-cinder.md @@ -78,7 +78,7 @@ sed 's/your.domain.tld//g' \ > /etc/genestack/gateway-api/routes/custom-cinder-gateway-route.yaml ``` -### Apply the Route +#### Apply the Route ``` shell kubectl --namespace openstack apply -f /etc/gateway-api/routes/custom-cinder-gateway-route.yaml diff --git a/docs/openstack-glance.md b/docs/openstack-glance.md index b483bd92..bf91584e 100644 --- a/docs/openstack-glance.md +++ b/docs/openstack-glance.md @@ -90,7 +90,7 @@ sed 's/your.domain.tld//g' \ > /etc/genestack/gateway-api/routes/custom-glance-gateway-route.yaml ``` -### Apply the Route +#### Apply the Route ``` shell kubectl --namespace openstack apply -f /etc/gateway-api/routes/custom-glance-gateway-route.yaml diff --git a/docs/openstack-gnocchi.md b/docs/openstack-gnocchi.md index 6bc50a0a..f716a123 100644 --- a/docs/openstack-gnocchi.md +++ b/docs/openstack-gnocchi.md @@ -167,6 +167,36 @@ helm upgrade --install gnocchi ./gnocchi \ You may need to provide custom values to configure your openstack services, for a simple single region or lab deployment you can supply an additional overrides flag using the example found at `base-helm-configs/aio-example-openstack-overrides.yaml`. In other cases such as a multi-region deployment you may want to view the [Multi-Region Support](multi-region-support.md) guide to for a workflow solution. +### Custom Routes + +!!! note "This step is not needed if all routes were applied when the Gateway API was deployed" + +A custom gateway route can be used when setting up the service. The custom route make it possible to for a domain like `your.domain.tld` to be used for the service. + +??? example "Example routes file found in `/opt/genestack/etc/gateway-api/routes`" + + ``` yaml + --8<-- "etc/gateway-api/routes/custom-keystone-gateway-route.yaml" + ``` + +#### Modify the Route + +This example changes the placeholder domain to ``. Review the [gateway route documentation](https://gateway-api.sigs.k8s.io/api-types/httproute) +for more information on route types. + +``` shell +mkdir -p /etc/genestack/gateway-api/routes +sed 's/your.domain.tld//g' \ + /opt/genestack/etc/gateway-api/routes/custom-gnocchi-gateway-route.yaml \ + > /etc/genestack/gateway-api/routes/custom-gnocchi-gateway-route.yaml +``` + +#### Apply the Route + +``` shell +kubectl --namespace openstack apply -f /etc/gateway-api/routes/custom-gnocchi-gateway-route.yaml +``` + ## Validate the metric endpoint ### Pip install gnocchiclient and python-ceilometerclient diff --git a/docs/openstack-keystone.md b/docs/openstack-keystone.md index dbeceef8..39782481 100644 --- a/docs/openstack-keystone.md +++ b/docs/openstack-keystone.md @@ -95,7 +95,7 @@ sed 's/your.domain.tld//g' \ > /etc/genestack/gateway-api/routes/custom-keystone-gateway-route.yaml ``` -### Apply the Route +#### Apply the Route ``` shell kubectl --namespace openstack apply -f /etc/gateway-api/routes/custom-keystone-gateway-route.yaml diff --git a/docs/openstack-magnum.md b/docs/openstack-magnum.md index 5cf6ed58..1c7afcee 100644 --- a/docs/openstack-magnum.md +++ b/docs/openstack-magnum.md @@ -79,7 +79,7 @@ sed 's/your.domain.tld//g' \ > /etc/genestack/gateway-api/routes/custom-magnum-gateway-route.yaml ``` -### Apply the Route +#### Apply the Route ``` shell kubectl --namespace openstack apply -f /etc/gateway-api/routes/custom-magnum-gateway-route.yaml diff --git a/docs/openstack-octavia.md b/docs/openstack-octavia.md index 493106df..68c69846 100644 --- a/docs/openstack-octavia.md +++ b/docs/openstack-octavia.md @@ -83,7 +83,7 @@ sed 's/your.domain.tld//g' \ > /etc/genestack/gateway-api/routes/custom-octavia-gateway-route.yaml ``` -### Apply the Route +#### Apply the Route ``` shell kubectl --namespace openstack apply -f /etc/gateway-api/routes/custom-octavia-gateway-route.yaml diff --git a/docs/openstack-skyline.md b/docs/openstack-skyline.md index e639ebec..fdf44794 100644 --- a/docs/openstack-skyline.md +++ b/docs/openstack-skyline.md @@ -74,7 +74,7 @@ sed 's/your.domain.tld//g' \ > /etc/genestack/gateway-api/routes/custom-skyline-gateway-route.yaml ``` -### Apply the Route +#### Apply the Route ``` shell kubectl --namespace openstack apply -f /etc/gateway-api/routes/custom-skyline-gateway-route.yaml diff --git a/etc/gateway-api/gateway-patches.json b/etc/gateway-api/gateway-patches.json index f31835f6..1cbbdc55 100644 --- a/etc/gateway-api/gateway-patches.json +++ b/etc/gateway-api/gateway-patches.json @@ -363,5 +363,30 @@ "mode": "Terminate" } } + }, + { + "op": "add", + "path": "/spec/listeners/-", + "value": { + "name": "gnocchi-https", + "port": 443, + "protocol": "HTTPS", + "hostname": "gnocchi.your.domain.tld", + "allowedRoutes": { + "namespaces": { + "from": "All" + } + }, + "tls": { + "certificateRefs": [ + { + "group": "", + "kind": "Secret", + "name": "gnocchi-gw-tls-secret" + } + ], + "mode": "Terminate" + } + } } ] diff --git a/etc/gateway-api/routes/custom-gnocchi-gateway-route.yaml b/etc/gateway-api/routes/custom-gnocchi-gateway-route.yaml new file mode 100644 index 00000000..b5a7a3d7 --- /dev/null +++ b/etc/gateway-api/routes/custom-gnocchi-gateway-route.yaml @@ -0,0 +1,21 @@ +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: custom-gnocchi-gateway-route + namespace: openstack + labels: + application: gateway-api + service: HTTPRoute + route: gnocchi +spec: + parentRefs: + - name: flex-gateway + sectionName: gnocchi-https + namespace: nginx-gateway + hostnames: + - "gnocchi.your.domain.tld" + rules: + - backendRefs: + - name: gnocchi-api + port: 8041