Questions tagged [kubernetes-pod]

Kubernetes-pod refers to Pods, the smallest deployable units of computing that can be created and managed in the cluster management software Kubernetes. Use this tag for questions related to this group of containers.

Kubernetes-pod refers to Pods, the smallest deployable units of computing that can be created and managed in the cluster management software Kubernetes. Use this tag for questions related to this group of containers.

2142 questions
0
votes
2 answers

Is it possible to initiate kill process from the prestop hook in k8s

I have a situation where my process (pid 1) in a pod sometimes is not responding to the SIGTERM signal due to it has entered a really bad state. This means that it will not be killed by k8s after the prestop hook is run until the grace period is…
0
votes
1 answer

Is it possible to implement multiple interface pods in Azure kubernetes service?

I am trying to implement multi interface pods in azure kubernetes service. It seems like multus is not supported in aks(1). Is there any other way to achieve this. If possible what network policy and network configurations should be used?
0
votes
1 answer

Is it okay to change the pod eviction timeout?(k8s, openshift)

I want to know about pod eviction timeout. I've already read k8s, openshift manual and some blog. but i couldn't find an article on impact of reducing pod-eviction-timeout.(default : 5m) I think there is a reason why the default value is 5 minutes.…
0
votes
1 answer

Kubernetes Worker Node status NotReady status: node.kubernetes.io/unreachable:NoSchedule

I have a Kubernetes Cluster setup using Kubeadm. Have a master node as well as a worker node. I have a few pods deployed to the worker node. The Worker node has got no taints and the pods have no toleration. However, after some time I witnessed the…
0
votes
3 answers

Automating Kubernetes deployment using script

I have 'deployment.yaml' & 'service.yaml' files to deploy application in kubernetes (minikube). To do a manual deployment I can use kubectl apply -f to create resources but I am looking for a way to automate deployment using scripts.…
mebb
  • 123
  • 10
0
votes
1 answer

How can we replace kubectl commands mentioned in playbook to equivalent ansible module

Here we are trying to use the nginx secret for different namespace (abc here). Although this playbook works fine locally but when trying to execute in AKS cluster against pod getting below error which is obivous because kubeconfig is not present in…
harry1218
  • 1
  • 1
0
votes
0 answers

Accessing to kubernetes from pod using java api, returns forbbiden error

I want to connect to kubernetes api from a pod using the java kubernetes library. But when I try to do anything with the api, kubernetes returns Forbbiden error. Here is the code of how I connect. ApiClient client =…
0
votes
3 answers

Unable to expose SCTP server running in a kubernetes pod using NodePort

I have a single node kubernetes cluster running in a VM in azure. I have a service running SCTP server in port 38412. I need to expose that port externally. I have tried by changing the port type to NodePort. But no success. I am using flannel as a…
0
votes
1 answer

Kubernetes service select pods based on start time

I have a K8s service defined as: apiVersion: v1 kind: Service metadata: labels: name: myapp name: myapp namespace: myapps spec: ports: - name: ui port: 8081 protocol: TCP targetPort: 8081 selector: my-app:…
Ace McCloud
  • 798
  • 9
  • 27
0
votes
1 answer

can bash use kubectl get pods run a log watch sequentially?

Note: this is more a bash/shell script issue than Kubernetes. So I have one replica of a pod, and so kubectl get pods will only return one active replica. Conceptually what I want to do is simple. I want to do a kubectl logs my-pod-nnn1 with a…
Oliver Williams
  • 5,966
  • 7
  • 36
  • 78
0
votes
0 answers

Accessing k8s pods using ingress externally (outside k8s cluster) is better than accessing k8s pods using service within the cluster?

I did a Performance test where I do Writes/ Reads into/from DB (cassandra pods). I perfrommed read/write ops on k8s pods (Cassandra) through Ingress from a external machine (outside k8s cluster). Similarly I also tried accessing same cassandra pods…
0
votes
0 answers

Kubernetes: /dev/vfio/0: no such file or directory

I am trying to deploy my kubernetes cluster but struck with ContainerCreatingError on one particular pod. When I do describe on the pod, I found the following error. spec: failed to generate spec: lstat /dev/vfio/0: no such file or directory …
codeX
  • 4,842
  • 2
  • 31
  • 36
0
votes
0 answers

Allocatable resources not taken into account on one Kubernetes node

I have a K8s cluster on premise with five nodes running 1.19.8. For some time now one of those nodes gets a lot more pressure than the other four. That node has double the amount of CPU cores available. But the same amount of memory as the…
Max N.
  • 993
  • 1
  • 12
  • 31
0
votes
1 answer

How can I ensure kubernetes pods (sitting behind nginx) can complete in-flight requests before pods are terminated?

My infrastructure has pods running on k8s with nginx sitting in the middle. According to the k8s pod lifecycle documentation, if you remove a pod, 1 second later it's removed from the endpoints list so no new requests are sent to it and nginx can no…
bitstream
  • 459
  • 9
  • 20
0
votes
1 answer

Deploying Application code in Persisted Volume in Kubernetes

I am new to Kuberentes and am trying to deploying a simple webapp in it, currently I am building an image with all the dependencies and my application bundled in , uploading the image to repo and then deploying it in the pod, but the issue with this…
av abhishiek
  • 647
  • 2
  • 11
  • 26