move gateway

This commit is contained in:
Philip Haupt
2025-04-04 00:38:01 +02:00
parent 69668b83c8
commit 3323f5d48d
4 changed files with 26 additions and 12 deletions

23
cilium/src/gateway.yaml Normal file
View File

@@ -0,0 +1,23 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: first-gateway
namespace: kube-system
spec:
gatewayClassName: cilium
listeners:
- name: kms
protocol: TCP
port: 1688
- name: relay-port
protocol: TCP
port: 21117
- name: nat-port
protocol: TCP
port: 21115
- name: registry-port
protocol: TCP
port: 21116
- name: heartbeat-port
protocol: UDP
port: 21116

View File

@@ -1,10 +0,0 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: kms-gateway
spec:
gatewayClassName: cilium
listeners:
- name: kms
protocol: TCP
port: 1688

View File

@@ -5,7 +5,6 @@ resources:
- cr.yaml - cr.yaml
- crb.yaml - crb.yaml
- deploy.yaml - deploy.yaml
- gateway.yaml
- sa.yaml - sa.yaml
- svc.yaml - svc.yaml
- tcproute.yaml - tcproute.yaml

View File

@@ -3,6 +3,9 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: kms-service name: kms-service
namespace: kms
annotations:
io.cilium/lb-ipam-ips: 192.168.0.181
spec: spec:
selector: selector:
app: kms app: kms
@@ -11,4 +14,3 @@ spec:
- port: 1688 - port: 1688
targetPort: 1688 targetPort: 1688
protocol: TCP protocol: TCP