Documentation ¶
Index ¶
- Constants
- Variables
- func CheckSocat() error
- func ErrPortsNotAvailable(ports []int) error
- func IsPortsNotAvailableErr(err error) bool
- func KillExistingSocat() error
- func SaveSocatPid(pid int) error
- func UnavailablePorts(err error) []int
- type Helper
- func (h *Helper) DetermineNodeHost(hostConfigDir string, names ...string) (string, error)
- func (h *Helper) OtherIPs(excludeIP string) ([]string, error)
- func (h *Helper) ServerIP() (string, error)
- func (h *Helper) StartSocatTunnel(bindIP string) error
- func (h *Helper) TestIP(ip string) error
- func (h *Helper) TestPorts(ports []int) error
Constants ¶
View Source
const ( DefaultDNSPort = 8053 DefaultSvcCIDR = "172.30.0.0/16" // TODO: Figure out why cluster up relies on this name OriginContainerName = "origin" EtcdContainerName = "etcd" BootkubeRenderContainerName = "bootkube-render" OperatorRenderContainerNameSuffix = "-operator-render" BootkubeStartContainerName = "bootkube-start" ContainerName = "origin" )
Variables ¶
View Source
var ( ClusterUpContainers = sets.NewString( OriginContainerName, EtcdContainerName, "kube-apiserver"+OperatorRenderContainerNameSuffix, BootkubeRenderContainerName, BootkubeStartContainerName, ) BasePorts = []int{4001, 7001, 6443, 10250, DefaultDNSPort} RouterPorts = []int{80, 443} AllPorts = append(RouterPorts, BasePorts...) SocatPidFile = filepath.Join(homedir.HomeDir(), kclientcmd.RecommendedHomeDir, "socat-6443.pid") )
Functions ¶
func CheckSocat ¶
func CheckSocat() error
func ErrPortsNotAvailable ¶
func IsPortsNotAvailableErr ¶
func KillExistingSocat ¶
func KillExistingSocat() error
func SaveSocatPid ¶
func UnavailablePorts ¶
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper contains methods and utilities to help with OpenShift startup
func (*Helper) DetermineNodeHost ¶
func (*Helper) OtherIPs ¶
OtherIPs tries to find other IPs besides the argument IP for the Docker host
func (*Helper) StartSocatTunnel ¶
Click to show internal directories.
Click to hide internal directories.