Can I use kubespray to deploy a k8s with no network plugin? - kubespray

We do not need any network model like Calico or weavenet, just host network is enough. But I couldn't find a way to disable network plugin. Kubespray always wants me to specify one.

How can a host network work with multiple servers? Use the default.

Related

Access Jenkins by IP address from "outside the network"

I am using Jenkins on MacOS (Monterey) and I want to be able to access my Jenkins from any (outside) network using my ip address.
I have updated the --httpListenAddress to 0.0.0.0 and restarted Jenkins.
I have checked for port 8080 to be open to inbound traffic.
I have been able to access this Jenkins from devices on the same network but not from an outside network.
I was able to achieve everything I wanted when using an AWS EC2 instance (by adding security group rules) but not able to do the same for a local Jenkins on my machine.
Any help/advice would be great! (Maybe without using a 3rd party service?)
Thank you.

On which scenarios firewall is not supported by the nodes?

I'm trying to run a Minio Cluster using the Jelastic template, however when attempting to activate the firewall on one of the nodes I'm greeted with the message "Firewall is not supported on this node."
screenshot
Firewall is only supported on official images from Jelastic.
When you use a custom docker image for your node, you won't be able to use the Jelastic Firewall on it. You have to manually configure the iptables.

How to login to Jenkins from any network

I’m an absolute beginner when it comes to setting up a Jenkins environment but I have just installed Jenkins on a MAC v10.15.5 using home-brew and would like the capability to:
Open a web browser
Login to Jenkins from any machine on any network
Trigger a job.
I’m able to do this using a different machine on the same network but unable to do this using a machine on a different network. I changed the "httpListenAddress" value within the jenkins-lts.plist file to 0.0.0.0 to allow the web interface to be accessible from anywhere as mentioned at https://www.macminivault.com/installing-jenkins-on-macos/ but apart from that I’m not sure where to go from here.
I’ve heard about Apache Tomcat but not sure if it's necessary for what I need to do. If anyone can provide instructions / safe approaches about how to login to the Jenkins environment on my MAC from any network that would be appreciated.
To get jenkins web interface use $JENKINS_HOST_IP:8080 (by default jenkins uses port 8080) and then make first-run-configure.
Login to Jenkins from any machine on any network - it depends on network topology, what is used in your organisation. So, to reach jenkins host from any network where should be allowed traffic from/into network where jenkins host is placed.
Trigger a job - where are a lot of triggers you can use. Take a look at official documentation here

The Jenkins tunnel address which I specify in the Jenkins->Configure Cloud does not seem to work. Can someone help me with the same?

I have a kubernetes cluster running on GKE and a Jenkins server running on a GCP instance.
I am using the Kubernetes plugin to dynamically create pods on the kubernetes cluster. I created a pipeline(Declarative syntax) for the same.
So I am aware that the Jenkins slave agents communicates with the Jenkins master on port 50000.
A snip of the configuration
But for some reason when I viewed the logs for the JNLP container creates by Jenkins, I received an exception - tcpSlaveAgentListener not found.
A snip of the container log
According to the above image, I assume the tunneling is unsuccessful as it is trying to connect to http://34.90.46.204:8080/tcpSlaveAgentListener/ whereas it should connect to http://34.90.46.204:50000/tcpSlaveAgentListener/.
It was a lazy question for me to ask, but I solved the issue.
In the Manage Jenkins-> Configure Global Security settings:
For the option on setting a port for TCP inbound agents: unselect the disable option which is selected by default and then provide a port for the inbound agents to interact on (50000).
A snip of the configuration
Jenkins uses a TCP port to communicate with agents connected inbound. If you're going to use inbound agents, you can allow the system to randomly select a port at launch (this avoids interfering with other programs, including other Jenkins instances). As it's hard for firewalls to secure a random port, you can instead specify a fixed port number and configure your firewall accordingly.
Hope this helps someone.

Configure network interfaces in Go

Does Go offer a way to configure network interfaces? I found a very easy to use net.Interfaces method to get the information, but i want to modify the network configuration.
In order to modify your network config, the best way would be to call external tools like ip, iptables, ifconfig, brctl, etc..
This is the way we do in within docker (https://github.com/dotcloud/docker/blob/master/network.go#L72)

Resources