This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gw-api): configure the service in order to create AWS NLB
- Loading branch information
Showing
3 changed files
with
40 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,28 @@ | ||
apiVersion: kyverno.io/v1 | ||
kind: ClusterPolicy | ||
metadata: | ||
name: mutate-cilium-gateway-echo-gateway | ||
annotations: | ||
policies.kyverno.io/title: Mutate echo gateway | ||
policies.kyverno.io/severity: medium | ||
policies.kyverno.io/description: >- | ||
We need to mutate the echo gateway service in order to configure the AWS LB. | ||
spec: | ||
rules: | ||
- name: mutate-svc-annotations | ||
match: | ||
any: | ||
- resources: | ||
kinds: | ||
- Service | ||
namespaces: | ||
- echo | ||
name: cilium-gateway-echo-gateway | ||
mutate: | ||
patchStrategicMerge: | ||
metadata: | ||
annotations: | ||
external-dns.alpha.kubernetes.io/hostname: echo-${cluster_name}.${domain_name} | ||
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing" | ||
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip" | ||
service.beta.kubernetes.io/aws-load-balancer-type: "nlb-ip" |
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,10 @@ | ||
apiVersion: gateway.networking.k8s.io/v1beta1 | ||
kind: Gateway | ||
metadata: | ||
name: echo-gateway | ||
spec: | ||
gatewayClassName: cilium | ||
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