Questions tagged [kubernetes-service]
429 questions
0
votes
1 answer
Kubernetes services - Portforwarding to all pods through deployment
I want to showcase kubernetes load balancing capabilities. On my local system, I have one node in the cluster. Want to deploy nginx container in 3 pods and replace the index.html (default) with my modified index.html (having some variances). I am…

Raja Chava
- 81
- 2
- 9
0
votes
1 answer
How to change the URL from localhost to service iinside a pod in Kubernetes
I have an application running on a pure docker environment. I wanted to deploy that in a k8s. Hence I created config maps, deployments etc. Below is the config file before deploying to k8s.
config:
message:
- type:…

Bhargav Behara
- 285
- 1
- 4
- 10
0
votes
1 answer
Exposing LoadBalancer service in minikube at arbitrary port?
I have a minikube cluster with a running WordPress in one deployment, and MySQL in another. Both of the deployments have corresponding services. The definition for WordPress service looks like this:
apiVersion: v1
kind: Service
metadata:
name:…

mhaligowski
- 2,182
- 20
- 26
0
votes
3 answers
Is an ingress and ingress contoller needed
I am a kubernetes newbie, and no matter how much I read about it I cannot get my head around this issue.
I have a simple deployment , which is creating a pod with a not so complex app.
I know what an ingress and an ingress controller is doing…

Flora Biletsiou
- 309
- 3
- 6
- 17
0
votes
1 answer
Why is my minikube's NodePort service's external IP and not ?
I'm working through chapter 5.3 of Kubernetes In Action by Marko Luska. I'm creating a nodeport service from the following file:
apiVersion: v1
kind: Service
metadata:
name: kubia-nodeport
spec:
type: NodePort
ports:
- port: 80
…

mikeLundquist
- 769
- 1
- 12
- 26
0
votes
1 answer
Cannot access a LoadBalancer service at Kubernetes
I managed to deploy a python app at the kubernetes cluster . The python app image is deployed at AWS ECR (Elastic Container Registry).
My deployment is:
(NAME)charting-rest-server (READY)1/1 (UP-TO-DATE)1 (AVAILABLE)1 …

Flora Biletsiou
- 309
- 3
- 6
- 17
0
votes
1 answer
Kubernetes accesses pod with HostIP:Port via service
I noticed when accessing the Kubernetes Service, the host ip is ignored by the kubernetes.
For example: I have 3 kubernetes workers, hostIP1, hostIP2 and hostIP3, on each worker, i create a pod, with label: app = test. In each pod, it just simple…

Ping.Goblue
- 576
- 8
- 12
0
votes
0 answers
Intermittent timeout on Kubernetes services
I was wondering if anyone can point me in the right direction as I've been pulling my hair out with this one.
So, I've got a couple of simple services running (through a NodePort) and for the most of time, they run fine.
But every once in a while,…

Mekroebo
- 352
- 4
- 11
0
votes
2 answers
How to make kube-proxy is distribute the load evently?
I have a ClusterIP Service which is used to distribute load to 2 PODs internally.
The load is not distributed evenly across the PODs.
How to make the load distributed evenly ?

Chandu
- 1,837
- 7
- 30
- 51
0
votes
1 answer
What is difference between load balancing using Service type ClusterIP and Service type of LoadBalancer?
When I use Service with type ClusterIP and 2 PODS, the traffic is distributed accross the 2 PODs.
I found another Service type LoadBalancer. What is the difference between the 2 types of Services? How is LoadBalancer different from ClusterIP ?…

Chandu
- 1,837
- 7
- 30
- 51
0
votes
2 answers
Is a Kubernetes service cluster specific or can a service span across clusters?
I am new to K8S. My understanding is that I will have to create a separate cluster for separate region. Say for example, I will have to create 3 clusters, one for us-south, another for eu-gb and third one for au-syd region. Now say I need my…

adi
- 143
- 11
0
votes
1 answer
Cannot access Kubernetes Service - Connection Refused
I'm trying to get a very basic app running on my Kubernetes cluster.
It consists of an ASP.NET Core WebAPI and a .NET Core console application that it accessing the WebAPI.
In the console application, I receive the error: "Connection…

Mekroebo
- 352
- 4
- 11
0
votes
2 answers
kubernetes nodePort service on a range
I wanted to expose my application on all the ports between 3000-14000. For this, I have changed the default nodePort range 30k - 32767 by updating kubeapi-server manifest file field "--service-node-port-range=3000-14000". For me, it is almost…

vidyadhar reddy
- 83
- 3
- 15
0
votes
1 answer
Not able to expose pod for outside using Service and ingress
I created a pod for mongodb and deployment files looks like:
The persistent volume claim is defined as:
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mongodb-data-claim
annotations:
volume.beta.kubernetes.io/storage-class:…

Abhishek Mishra
- 63
- 4
0
votes
1 answer
More default named port in kubernetes?
In kubernetes, I always see the service's definition like this:
---
apiVersion: v1
kind: Service
metadata:
name: random-exporter
labels:
app: random-exporter
spec:
type: ClusterIP
selector:
app: random-exporter
ports:
- port:…

Liqang Liu
- 1,654
- 3
- 12
- 20