Questions tagged [kubernetes-nodeport]
30 questions
14
votes
3 answers
Difference between kubectl port-forwarding and NodePort service
Whats the difference between kubectl port-forwarding (which forwards port from local host to the pod in the cluster to gain access to cluster resources) and NodePort Service type ?

Rad4
- 1,936
- 8
- 30
- 50
1
vote
1 answer
How do i bind to all ip-address?
I'm working on upgrading our eks cluster from 1.23 to 1.27. Some of the applications are failing because of the below error
Failed creating artifactory: java.net.ConnectException: Connection refused: localhost/0:0:0:0:0:0:0:1:8080
Failed creating…

user6826691
- 1,813
- 9
- 37
- 74
1
vote
2 answers
Kubernetes NodePort on Minikube not accessible from outside
my current service file:
spec:
selector:
name: some-pod
type: NodePort
ports:
- port: 8200
targetPort: 8200
nodePort: 30082
externalIPs:
- 192.168.183.128
current deployment of a pod within the…

Prab
- 464
- 3
- 13
1
vote
1 answer
How to set dns for applications deployed on kubernetes?
I'm running my angular service with Node IP and NodePort. Now I want to set some dns name for my angular application. Where do I need to set the dns name for Node IP and NodePort? Is there any config file that I need to change?
example:…

Naga Manideep
- 31
- 4
1
vote
1 answer
LoadBalancer or Nodeport service not connecting to pod inside minikube from localhost
I'm trying to use LoadBalancer as a service to a pod. The container inside the pod (single container pod) is listening to port 8080 for receiving packets over UDP. I have checked the container manually and it is doing fine its part. However I'm…

Pawan Kumar
- 11
- 1
1
vote
0 answers
EKS - Restarting or Deleting a Pod of Go cobra/fasthttp helloworld for a K8s service kills service nodeport on worker group instance
I have a simple k8s NodePort Service linked to a k8s deployment of a single pod hosting a hello world go program that basically uses cobra to spin up a fasthttp server. If the pod of that deployment restarts or get deleted (and a new one spins up),…

Derick F
- 2,749
- 3
- 20
- 30
1
vote
1 answer
How to expose a single REST API to outside cluster in Kubernetes?
I am new to Kubernetes and if I am not wrong, a service can be exposed inside the cluster using ClusterIP, and to the outside world using NodePort or LoadBalancer types. But my requirement is that I have a single container that has few REST APIs. I…

Pratap
- 655
- 2
- 10
- 20
1
vote
1 answer
Kubernetes NodePort service time out
I am trying to deploy a pod in kubernetes and link a service to it so I can access it via web browser.
The pod specification is the following:
apiVersion: apps/v1
kind: Deployment
metadata:
name: visualizer-nautic
labels:
app:…

Francisco
- 31
- 4
1
vote
1 answer
K8s Nodeport is faster than service name?
I have 2 k8s application running in a single cluster. When it communicate with service name, it takes 12 seconds to transfer 1 GB data. When communicate with nodeport time is 8sec. Why the service name is slow?
Why the nodeport give faster? Actually…

Ajin Pradeep
- 41
- 3
1
vote
1 answer
Nodeport not working for a windows VirtualMachineInstance running inside a cluster
I have a k8s cluster in cent Os7 and a Windows virtual machine instance running in same cluster as pod. There is a service running in windows on port 9092. I have created a nodeport for that service to access outside cluster but its not working...…

Ajin Pradeep
- 41
- 3
0
votes
1 answer
Using Nodeport to access api in pod Kubernetes Service
I created a nodeport service on a port 12345, to access my api running on node 6666, deployed through a pod. The pod is deployed in multiple nodes.
ports:
- port: 8181
targetPort: 6666
nodePort: 12345
protocol: TCP
In order to…

Lakshmi Narayanan
- 5,220
- 13
- 50
- 92
0
votes
0 answers
Kubernetes cluster does not get external IP
I have created NodePort type service but I never get External IP for my nodes.
Then I am trying to curl using Internal IP but it never works.

GameChanger
- 378
- 5
- 16
0
votes
1 answer
Kubernetes Service Not Reachable Via NodePort
I have deployed my K8s cluster in CentOS which consists of 1 Master and 2 Nodes. I am exposing my services to the external world using NodePort. My service is -
---
apiVersion: v1
kind: Service
metadata:
name: atcapi
namespace: default
spec:
…

Raj
- 264
- 1
- 3
- 18
0
votes
0 answers
Why won't curl connect to node port when Kubernetes service created as yaml?
Hi I have the following service definition...
apiVersion: v1
kind: Service
metadata:
name: my-app-dev
labels:
run: my-app-dev
spec:
type: NodePort
selector:
app: my-app-dev
ports:
- port: 18080
targetPort: 18080
…

user432024
- 4,392
- 8
- 49
- 85
0
votes
1 answer
Unable to access nodeport
I tried starting minikube using virtualbox, docker and hyperkit. For each case, I cannot access the nodeport.
My pods and services look good
NAME READY STATUS RESTARTS AGE
dbpostgresql-655654d6dd-mmgxk 1/1 …

Judy1989
- 327
- 1
- 6
- 18