Skip to content

Commit

Permalink
Added gateway api specific yaml files
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Perez <[email protected]>
  • Loading branch information
japerezjr committed Jul 15, 2024
1 parent 6964c7f commit f2a99a9
Show file tree
Hide file tree
Showing 21 changed files with 356 additions and 2 deletions.
19 changes: 19 additions & 0 deletions base-kustomize/barbican/base/barbican-routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: barbican-route
namespace: openstack
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "barbican.cluster.local"
- "barbican"
- "barbican.openstack"
- "barbican.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: barbican-api
port: 9311
1 change: 1 addition & 0 deletions base-kustomize/barbican/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ resources:
- barbican-rabbitmq-queue.yaml
- all.yaml
- hpa-barbican-api.yaml
- barbican-routes.yaml
24 changes: 24 additions & 0 deletions base-kustomize/cinder/base/cinder-routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: cinder-gateway-route
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: cinder
spec:
parentRefs:
- name: flex-gateway
sectionName: cinder-tls
namespace: nginx-gateway
hostnames:
- "cinder.cluster.local"
- "cinder"
- "cinder.openstack"
- "cinder.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: cinder-api
port: 8776
1 change: 1 addition & 0 deletions base-kustomize/cinder/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ resources:
- all.yaml
- hpa-cinder-scheduler.yaml
- hpa-cinder-api.yaml
- heat-routes.yaml
7 changes: 5 additions & 2 deletions base-kustomize/gateway/grafana-routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ metadata:
spec:
parentRefs:
- name: flex-gateway
sectionName: graf-https
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "grafana.sjc3.rackspacecloud.com"
- "grafana.cluster.local"
- "grafana"
- "grafana.grafana"
- "grafana.grafana.svc.cluster.local"
rules:
- backendRefs:
- name: grafana
Expand Down
27 changes: 27 additions & 0 deletions base-kustomize/gateway/internal-gateway-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: flex-gateway
namespace: nginx-gateway
spec:
gatewayClassName: nginx
listeners:
- name: cluster-http
port: 80
protocol: HTTP
hostname: "*.cluster.local"
allowedRoutes:
namespaces:
from: All
- name: cluster-tls
port: 443
protocol: HTTPS
hostname: "*.cluster.local"
allowedRoutes:
namespaces:
from: All
tls:
mode: Terminate
certificateRefs:
- kind: Secret
name: wildcard-cluster-tls-secret
13 changes: 13 additions & 0 deletions base-kustomize/glance/base/client-settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: gateway.nginx.org/v1alpha1
kind: ClientSettingsPolicy
metadata:
name: gateway-client-settings
namespace: nginx-gateway
spec:
targetRef:
group: gateway.networking.k8s.io
kind: Gateway
name: flex-gateway
body:
maxSize: "50g" # sizes without a unit are bytes.
23 changes: 23 additions & 0 deletions base-kustomize/glance/base/glance-routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: glance-gateway-route
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: glance
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "glance.cluster.local"
- "glance"
- "glance.openstack"
- "glance.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: glance-api
port: 9292
2 changes: 2 additions & 0 deletions base-kustomize/glance/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ resources:
- glance-rabbitmq-queue.yaml
- all.yaml
- hpa-glance-api.yaml
- glance-routes.yaml
- client-settings.yaml

patches:
- target:
Expand Down
48 changes: 48 additions & 0 deletions base-kustomize/heat/base/heat-routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: cloudformation-gateway-route
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: cloudformation
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "cloudformation.cluster.local"
- "cloudformation"
- "cloudformation.openstack"
- "cloudformation.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: heat-cfn
port: 8000
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: heat-gateway-route
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: heat
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "heat.cluster.local"
- "heat"
- "heat.openstack"
- "heat.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: heat-api
port: 8004
1 change: 1 addition & 0 deletions base-kustomize/heat/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ resources:
- hpa-heat-api.yaml
- hpa-heat-cfn.yaml
- hpa-heat-engine.yaml
- heat-routes.yaml
20 changes: 20 additions & 0 deletions base-kustomize/keystone/base/keystone-routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
kind: HTTPRoute
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: keystone-gateway-route
namespace: openstack
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "keystone.cluster.local"
- "keystone"
- "keystone.openstack"
- "keystone.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: keystone-api
port: 5000
1 change: 1 addition & 0 deletions base-kustomize/keystone/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ resources:
- keystone-rabbitmq-queue.yaml
- all.yaml
- hpa-keystone-api.yaml
- keystone-routes.yaml
1 change: 1 addition & 0 deletions base-kustomize/neutron/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resources:
- neutron-rabbitmq-queue.yaml
- all.yaml
- hpa-neutron-server.yaml
- neutron-routes.yaml

patches:
- target:
Expand Down
23 changes: 23 additions & 0 deletions base-kustomize/neutron/base/neutron-routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: neutron-gateway-route
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: neutron
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "neutron.cluster.local"
- "neutron"
- "neutron.openstack"
- "neutron.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: neutron-server
port: 9696
1 change: 1 addition & 0 deletions base-kustomize/octavia/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
- all.yaml
- hpa-octavia-api.yaml
- hpa-octavia-worker.yaml
- octavia-routes.yaml

# To run the OVN driver, the octavia-api container must have an agent container within the same pod.
patches:
Expand Down
24 changes: 24 additions & 0 deletions base-kustomize/octavia/base/octavia-routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: octavia-api
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: octavia
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "octavia.cluster.local"
- "octavia"
- "octavia.openstack"
- "octavia.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: octavia-api
port: 9876
1 change: 1 addition & 0 deletions base-kustomize/placement/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ resources:
- placement-mariadb-database.yaml
- all.yaml
- hpa-placement-api.yaml
- placement-nova-routes.yaml
96 changes: 96 additions & 0 deletions base-kustomize/placement/base/placement-nova-routes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: placement-api
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: placement
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "placement.cluster.local"
- "placement"
- "placement.openstack"
- "placement.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: placement-api
port: 8778
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: metadata-gateway-route
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: nova-metadata
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "metadata.cluster.local"
- "metadata"
- "metadata.openstack"
- "metadata.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: nova-metadata
port: 8775
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: nova-gateway-route
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: nova
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "nova.cluster.local"
- "nova"
- "nova.openstack"
- "nova.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: nova-api
port: 8774
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: novnc-gateway-route
namespace: openstack
labels:
application: gateway-api
service: HTTPRoute
route: novnc
spec:
parentRefs:
- name: flex-gateway
sectionName: cluster-tls
namespace: nginx-gateway
hostnames:
- "novnc.cluster.local"
- "novnc"
- "novnc.openstack"
- "novnc.openstack.svc.cluster.local"
rules:
- backendRefs:
- name: nova-novncproxy
port: 6080
1 change: 1 addition & 0 deletions base-kustomize/skyline/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ resources:
- ingress-apiserver.yaml
- hpa-skyline-apiserver.yaml
- pdb-apiserver.yaml
- skyline-routes.yaml
Loading

0 comments on commit f2a99a9

Please sign in to comment.