-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support non-default namespaced gateway (#217)
* Allow to add non default namespaced gateway * Allow reconcile service network which for non-default namespace * Add some examples for non-default namespaced gateway * Add logic to only delete servicenetwork if not used by all namespaces * Update debug msg * Add unit test for non-default namespace gateways modelbuid * Add unit test on synthesize gateway * Remove stale code and address CR comments
- Loading branch information
1 parent
3a95863
commit 674ca03
Showing
11 changed files
with
224 additions
and
30 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
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
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,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: gw-infra-1 |
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,17 @@ | ||
apiVersion: gateway.networking.k8s.io/v1beta1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: inventory | ||
namespace: gw-infra-1 | ||
spec: | ||
parentRefs: | ||
- name: my-hotel | ||
namespace: gw-infra-1 | ||
sectionName: http | ||
rules: | ||
- backendRefs: | ||
- name: inventory-v1 | ||
namespace: gw-infra-1 | ||
kind: Service | ||
port: 8090 | ||
weight: 10 |
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,38 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: inventory-v1 | ||
namespace: gw-infra-1 | ||
labels: | ||
app: inventory-v1 | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: inventory-v1 | ||
template: | ||
metadata: | ||
labels: | ||
app: inventory-v1 | ||
spec: | ||
containers: | ||
- name: inventory-v1 | ||
image: public.ecr.aws/x2j8p8w7/http-server:latest | ||
env: | ||
- name: PodName | ||
value: "inventory-v1 handler pod" | ||
|
||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: inventory-v1 | ||
namespace: gw-infra-1 | ||
spec: | ||
selector: | ||
app: inventory-v1 | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 8090 |
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,13 @@ | ||
apiVersion: gateway.networking.k8s.io/v1beta1 | ||
kind: Gateway | ||
metadata: | ||
name: my-hotel | ||
namespace: gw-infra-1 | ||
annotations: | ||
application-networking.k8s.aws/lattice-vpc-association: "true" | ||
spec: | ||
gatewayClassName: amazon-vpc-lattice | ||
listeners: | ||
- name: http | ||
protocol: HTTP | ||
port: 80 |
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
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
Oops, something went wrong.