Questions tagged [hostnetwork]
10 questions
1
vote
1 answer
Setting hostNetwork:true does not expose the host interfaces
I have a very simple program:
package main
import (
"fmt"
"github.com/vishvananda/netlink"
)
func main() {
_, err := netlink.LinkByName("wlp164s0")
if err != nil {
fmt.Println("error finding VIP Interface, for building…

Mohan Parthasarathy
- 31
- 4
1
vote
1 answer
Can Kubernetes pods that use host networking access Service resources by the service name and service port?
Can Kubernetes pod that uses the host network send requests directly to a Service resource by using the service name and service port (incl. utilization of CoreDNS)? Or do I have to expose the service via nodePort on the host network?

Richard
- 25
- 1
- 5
1
vote
1 answer
Are Kubernetes pods that use host networking assigned a pod IP that can be accessed using a Service resource?
If a Kubernetes pod is defined with host network enabled, is the application running on this pod accessible from the Service resource using the app selector?

Richard
- 25
- 1
- 5
1
vote
1 answer
Non-invasive UDP Multicast on Kubernetes
I have a (working) test program that sends and receives messages across UDP multicast. I've successfully deployed it to kubernetes cluster and demonstrated two pods communicating with one another. The only catch with this is that I need to add…

Julian Birch
- 2,605
- 1
- 21
- 36
0
votes
0 answers
Istio sidecar for Pod with hostNetwork enabled
In my k8s cluster there is a Pod (prometheus/node-exporter) that uses hostNetwork to collect metrics from a node. The same Pod sends collected data to Prometheus, which is a part of Istio service mesh. The service mesh requires all traffic to be…

Yiadh TLIJANI
- 61
- 4
0
votes
1 answer
docker desktop kubernetes - how to map ports with ClusterFirstWithHostNet
I'm using kubernetes from docker for windows and I encountered problem. I use statefulset with following part of config:
spec:
terminationGracePeriodSeconds: 300
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
In classic…

MikolajMGT
- 113
- 2
- 10
0
votes
0 answers
hostNetwork setting to false doesnt allow copy to hostPath
I have theoretically gone through hostNetwork definition provided by Kubernetes. For the below pod spec
cat hostpod.yaml
apiVersion: v1
kind: Pod
metadata:
name: test-pd
spec:
#hostNetwork: true
containers:
- image: ubuntu
name:…

ambikanair
- 4,004
- 11
- 43
- 83
0
votes
0 answers
How to access all physical host network interfaces from container?
Requirement:
If I do ifconfig, then I want to see the physical interface cards, which I need to access to be used inside a container.
Why? - coz i need to create a socket from container to interface
NOTE:
This interface has to be accessed at OSI…

Ankeit Taksh
- 47
- 6
0
votes
0 answers
Is there a way to distinguish two pods that have turned on hostnetwork by IP or DNS?
I have yaml file. It creates two deployments, both pods inside turned on the hostnetwork.
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: busybox
spec:
replicas: 1
template:
metadata:
labels:
app: busybox
spec:
…

Howard
- 3,638
- 4
- 32
- 39
-1
votes
1 answer
In terms of networking, are there any limitation to windows container over linux container like host network access from container
Limitation of window container over Linux container in terms of networking like host network access from container
I have done research on window container but could not find any relevant information on the limitation of window container over Linux…

Radhu
- 9