Questions tagged [kubernetes-service]
429 questions
0
votes
0 answers
coredns crashes frequently and application is not responding
I have Kubernetes version 1.16.11 setup in ubuntu 16.04 and weave for CNI network. I have web application which communicates with services in same cluster. web application shows result 1st time and later it doesn't show and request to services are…

Prasad
- 519
- 9
- 22
0
votes
1 answer
Unable to reach service using NodePort from k8s master
I have setup kubernetes cluster in Ubuntu 16.04 with a master and a worker. I deployed application and created NodePort service as below.
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name:…

Prasad
- 519
- 9
- 22
0
votes
1 answer
Connecting Frontend API application to Backend database
Can someone please help me complete this scenario as I have everything running successfully but with no end result as expected. I have a PostgreSQL database and Redis (back-end) Pods along with a front-end API application that I will be using to…

amin
- 47
- 9
0
votes
1 answer
No endpoint set for postgres-service
I'm having a problem getting an endpoint for my postgres-service. I've checked the selector and it does seem to match the pod name, but I've posted both yamls below.
I've tried resetting Minikube and following the Kubernetes debugging instructions,…

OrianaGrande
- 11
- 2
0
votes
2 answers
Can I guarantee the "kubernetes" Service will retain a consistent ClusterIP following cluster creation even if I attempt to modify or recreate it?
A few of our Pods access the Kubernetes API via the "kubernetes" Service. We're in the process of applying Network Policies which allow access to the K8S API, but the only way we've found to accomplish this is to query for the "kubernetes" Service's…

Puma
- 867
- 1
- 7
- 14
0
votes
2 answers
How to make a Kubernetes deployment accessible only from a specific deployment?
I have two Kubernetes deployments (DeploymentA and DeploymentB) and I am wondering that is there a way to whitelist all incoming traffic from DeploymentB in DeploymentA? So that DeploymentA can be accessed only via DeploymentB.
ClusterIP service can…

Patric
- 39
- 5
0
votes
3 answers
Running a bash script using a Kubenetes Service
I am not sure how dumb or un-reasonable this question is, but we are trying to see if we can do this in any way.
I have a .bash file. And I want to run this when I invoke a url.
Let's take the url is https://domainname.com/jobapi
When I invoke this…

SkyArc
- 406
- 1
- 6
- 17
0
votes
2 answers
"kubectl get pods -A" command not working
I installed Kubernetes in virtual BOX previously it was working properly but not it is showing The connection to the server 192.168.42.141:6443 was refused - did you specify the right host or port?, Please help.

Dewa
- 33
- 1
- 7
0
votes
2 answers
Kubernetes - Best way to communicate between two containers and to the outside word
I have two Kubernetes developpements: one with a Grafana pod, and the other with an InfluxDB pod.
I want:
1) to expose my Grafana:3000 to the outside word
2) Grafana to be able to connect to InfluxDB:8086
I've seen it done with two separate…

Grim
- 57
- 1
- 5
0
votes
1 answer
Kubernetes services are not accessible through nodeport with Desktop Docker setup
I am using Docker Desktop on windows 10. And I generate kubernetes NodePort Service to access from client web browser (http://10.110.201.24:30008/hello/praveen) but service is not accessible.
apiVersion: apps/v1
kind: Deployment
metadata:
name:…

Uday Kiran
- 487
- 2
- 9
- 29
0
votes
1 answer
Not able to access kubernetes service locally
I am not be able to access my service from my local machine. I had done my k8 deployment using minikube and created a service of NodePort type to access it.
C:\WINDOWS\system32>kubectl get deployments
NAME READY UP-TO-DATE …

Ranjit Mattamal
- 5
- 3
0
votes
1 answer
How to access a service from another namespace in kubernetes
I have the zipkin deployment and service below as you can see zipkin is located under monitoring namespace the, i have an env variable called ZIPKIN_URL in each of my pods which are running under default namespace, this varibale takes this URL…

touati ahmed
- 311
- 8
- 21
0
votes
1 answer
Minikube ingress controller not forwarding request to deployed service properly
I have following setup in minikube cluster
SpringBoot app deployed in minikube cluster
name : opaapp and containerPort: 9999
Service use to expose service app as below
apiVersion: v1
kind: Service
metadata:
name: opaapp
namespace: default
…

ajoy sinha
- 1,156
- 4
- 14
- 30
0
votes
1 answer
Unable to reach backend service from frontend service in Kubernetes
I'm struggling to make Http calls from the frontend app to the backend app in Kubernetes.
So basically I have deployment,service and ingress rules for both frontend and backend application and the frontend service can't connect to backend…

rakesh
- 135
- 3
- 15
0
votes
2 answers
Can we use the service "kubernetes" to communicate with the API servers?
I was looking for a load-balancing technique with health checks while making my
worker-nodes communicating with the API server.
Kubernetes itself has a service called "kubernetes" whose endpoints are the API servers.
I entered the domain of this…

Vyom Srivastava
- 33
- 5