diff --git a/cilium/src/gateway.yaml b/cilium/src/gateway.yaml new file mode 100644 index 0000000..64759dc --- /dev/null +++ b/cilium/src/gateway.yaml @@ -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 \ No newline at end of file diff --git a/kms/gateway.yaml b/kms/gateway.yaml deleted file mode 100644 index 688595a..0000000 --- a/kms/gateway.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/kms/kustomization.yaml b/kms/kustomization.yaml index d2a8a1e..07f6969 100644 --- a/kms/kustomization.yaml +++ b/kms/kustomization.yaml @@ -5,7 +5,6 @@ resources: - cr.yaml - crb.yaml - deploy.yaml - - gateway.yaml - sa.yaml - svc.yaml - tcproute.yaml \ No newline at end of file diff --git a/kms/svc.yaml b/kms/svc.yaml index 7424909..92599c4 100644 --- a/kms/svc.yaml +++ b/kms/svc.yaml @@ -3,6 +3,9 @@ apiVersion: v1 kind: Service metadata: name: kms-service + namespace: kms + annotations: + io.cilium/lb-ipam-ips: 192.168.0.181 spec: selector: app: kms @@ -11,4 +14,3 @@ spec: - port: 1688 targetPort: 1688 protocol: TCP -