-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9925934
commit 23cd129
Showing
2 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: k8gb.absa.oss/v1beta1 | ||
kind: Gslb | ||
metadata: | ||
name: test-gslb | ||
namespace: test-gslb | ||
spec: | ||
ingress: | ||
ingressClassName: nginx | ||
rules: | ||
- host: boop.mv-custom.hcpapps.net | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: echo | ||
port: | ||
name: http | ||
strategy: | ||
type: roundRobin # Use a round robin load balancing strategy, when deciding which downstream clusters to route clients too | ||
splitBrainThresholdSeconds: 300 # Threshold after which external cluster is filtered out from delegated zone when it doesn't look alive | ||
dnsTtlSeconds: 30 # TTL value for automatically created DNS records |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: test-gslb | ||
|
||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: Gateway | ||
metadata: | ||
name: prod-web | ||
namespace: multi-cluster-gateways | ||
spec: | ||
gatewayClassName: kuadrant-multi-cluster-gateway-instance-per-cluster | ||
listeners: | ||
- allowedRoutes: | ||
namespaces: | ||
from: All | ||
name: api | ||
hostname: boop.mv-custom.hcpapps.net | ||
port: 443 | ||
protocol: HTTPS | ||
tls: | ||
mode: Terminate | ||
certificateRefs: | ||
- name: apps-hcpapps-tls | ||
kind: Secret | ||
|
||
--- | ||
apiVersion: kuadrant.io/v1alpha1 | ||
kind: TLSPolicy | ||
metadata: | ||
name: prod-web | ||
namespace: multi-cluster-gateways | ||
spec: | ||
targetRef: | ||
name: prod-web | ||
group: gateway.networking.k8s.io | ||
kind: Gateway | ||
issuerRef: | ||
group: cert-manager.io | ||
kind: ClusterIssuer | ||
name: glbc-ca | ||
|
||
--- | ||
apiVersion: kuadrant.io/v1alpha1 | ||
kind: DNSPolicy | ||
metadata: | ||
name: prod-web | ||
namespace: multi-cluster-gateways | ||
spec: | ||
targetRef: | ||
name: prod-web | ||
group: gateway.networking.k8s.io | ||
kind: Gateway | ||
|
||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: my-route | ||
spec: | ||
parentRefs: | ||
- kind: Gateway | ||
name: prod-web | ||
namespace: kuadrant-multi-cluster-gateways | ||
hostnames: | ||
- boop.mv-custom.hcpapps.net | ||
rules: | ||
- backendRefs: | ||
- name: echo | ||
port: 8080 | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: echo | ||
spec: | ||
ports: | ||
- name: http-port | ||
port: 8080 | ||
targetPort: http-port | ||
protocol: TCP | ||
selector: | ||
app: echo | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: echo | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: echo | ||
template: | ||
metadata: | ||
labels: | ||
app: echo | ||
spec: | ||
containers: | ||
- name: echo | ||
image: docker.io/jmalloc/echo-server | ||
ports: | ||
- name: http-port | ||
containerPort: 8080 | ||
protocol: TCP |