Configure cluster external addresses
This feature allows overriding of external addresses of onboarded clusters through IngressGateway or Tier1Gateway install CR. The provided IP addresses/hostnames will then be used to access the clusters from the outside world. Note that this feature is useful only when you have some other IP address/hostname already configured to access your kubernetes cluster from the outside world.
Data Plane
To use this feature with IngressGateway, set the xcp.tetrate.io/cluster-external-addresses
annotation under kubeSpec/service
in your IngressGateway
install (DataPlane) CR and apply it with kubectl.
apiVersion: install.tetrate.io/v1alpha1
kind: IngressGateway
metadata:
name: bookinfo
namespace: bookinfo
spec:
kubeSpec:
deployment:
hpaSpec:
maxRepicas: 10
minReplicas: 1
metrics:
- resource:
name: cpu
targetAverageUtilization: 75
type: Resource
replicaCount: 1
strategy:
rollingUpdate:
maxUnavailable: 0
type: RollingUpdate
service:
annotations:
xcp.tetrate.io/cluster-external-addresses: "10.10.10.10,external-address-123.com"
ports:
- name: mtls
port: 15443
targetPort: 15443
- name: http2
port: 80
targetPort: 8080
- name: https
port: 443
targetPort: 8443
type: NodePort
The above CR will set the kubernetesExternalAddresses
to 10.10.10.10
and external-address-123.com
for the gateway service.