/** * @param exposedPort * the port exposed by the container (e.g. EXPOSE or Pod.Spec.Container[].Ports[]) * @param bindingPort * the port to which the container port is bound on this IP (e.g. docker run -p ip:hostPort:exposedPort or * Pod.Spec.Container[].Ports[].HostPort) */ public Binding addPortBinding(Integer exposedPort, Integer bindingPort) { this.bindings.add(new PortBinding(exposedPort, bindingPort)); return this; }
/** * @param exposedPort * the port exposed by the container (e.g. EXPOSE or Pod.Spec.Container[].Ports[]) * @param bindingPort * the port to which the container port is bound on this IP (e.g. docker run -p ip:hostPort:exposedPort or * Pod.Spec.Container[].Ports[].HostPort) */ public Binding addPortBinding(Integer exposedPort, Integer bindingPort) { this.bindings.add(new PortBinding(exposedPort, bindingPort)); return this; }