1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 15:06:23 +00:00

Bastion host

This commit is contained in:
galal-hussein
2018-05-09 00:30:50 +02:00
parent a43d47b240
commit aff01a9267
8 changed files with 112 additions and 18 deletions

View File

@@ -220,10 +220,13 @@ func (c *Cluster) CheckClusterPorts(ctx context.Context, currentCluster *Cluster
if err := c.runServicePortChecks(ctx); err != nil {
return err
}
if c.K8sWrapTransport == nil {
// Skip kubeapi check if we are using custom k8s dialer or bastion/jump host
if c.K8sWrapTransport == nil && len(c.BastionHost.Address) == 0 {
if err := c.checkKubeAPIPort(ctx); err != nil {
return err
}
} else {
log.Infof(ctx, "[network] Skipping kubeapi port check")
}
return c.removeTCPPortListeners(ctx)