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
1 answer

Read/Write a file to a local host from aks node/pod

A Windows aks node creates a file within the node and writes logs on it. I would like to make a theaks node/pod to write a file on a local host, and the local host to be able to read it. How can I do this? Can I copy a file on an aks node to the…
0
votes
1 answer

Yam file error e error converting YAML to JSON: yaml: line 8: mapping values are not allowed in this context

This is my first try in kubernetes. Trying to install minios storage i am finding error in yaml file apiVersion: v1 kind: PersistentVolume metadata: name: pv-name-1 spec: capacity: storage: 1Ti volumeMode: Filesystem accessModes: …
Rafa
  • 487
  • 7
  • 22
0
votes
1 answer

How to deploy Grafana as a Replicated Statefulset in Kubernetes?

I need to deploy Grafana in a Kubernetes cluster in a way so that I can have multiple persistent volumes stay in sync - similar to what they did here. Does anybody know how I can use the master/slave architecture so that only 1 pod writes while the…
0
votes
2 answers

FluentBit not reading logs from shared PVC

I have a PersistentVolumeClaims(PVC) with ReadWriteMany (RWX) access mode. This PVC is clamed by 2 pods. In the second pod I have FluentBit reading the logs stored by the application pod in the shared PVC. The issue is FluentBit recognizes the…
Sunil
  • 429
  • 1
  • 9
  • 25
0
votes
1 answer

How to expose specific path from container in a K8s service?

I do have a container that runs an image and exposes the application on a specific path and port (e.g. localhost:8080/app_A). In K8s, I have set up a service like this: apiVersion: v1 kind: Service ... spec: selector: application:…
0
votes
2 answers

How to reset K3s cluster pods

I have a k3s cluster with following pods: kube-system pod/calico-node-xxxx kube-system pod/calico-kube-controllers-xxxxxx kube-system pod/metrics-server-xxxxx kube-system …
0
votes
1 answer

how to take snapshot of PV automatically when POD deletion trigger?

I am working on a snapshotting of PV before POD deletion completes. I have written a controller which works on delete event of POD, but by the time it triggers delete event POD deletion is already completed. I want to do below things automatically…
Slok
  • 576
  • 1
  • 12
  • 27
0
votes
1 answer

Will the pods will consume full resources specified in its request or limit while it getting created?

Would like to clear about the pods resource consumption when its getting created or restarted as part of rolling update or scaling up. looking to understand.. whether pods will consume entire resoources specified in its requests while its getting…
Vowneee
  • 956
  • 10
  • 33
0
votes
1 answer

Helm3 Kubernetes environment variable between upgrades

I have a ConfigMap where I have defined some environment variables like log_level.. and referencing them in the deployment. envFrom: - configMapRef: name: test_config_map After deployment, I have changed some of the…
PGS
  • 1,046
  • 2
  • 17
  • 38
0
votes
1 answer

what are best recommended settings to fine tune the hpa settings of kubernetes pods?

We are using AKS version 1.19.11 and we are facing intermittent issues with the hpa, which will create the pods unnecessarly eventhough the pods cpu usage is very less. Our application pods are light weighted and now we have added an hpa threshold…
Vowneee
  • 956
  • 10
  • 33
0
votes
1 answer

Segregate pod traffic with SR-IOV

I understand that, SR-IOV enables a physical NIC to be "seen" as multiple devices and used individually. (Refer here.) While the following example is from Charmed Kubernetes, it is representative of the general mechanism of using SR-IOV in pods. My…
cogitoergosum
  • 2,309
  • 4
  • 38
  • 62
0
votes
0 answers

Why Kubernetes Not Able to access ip by the Domain Name?

i am trying to ping website by the Domain Name but pod is not able to ping the machine but when i tried with ip address it is able to ping the machine.After i add the ip with domain name in the hosts file on /etc folder it is able to ping the…
0
votes
0 answers

Restart pod when another service is recreated

I have a flask pod that connects to a mongodb service through the environment variable SERVICE_HOST (DNS discovery didn't work for some reason), when I change something in mongodb service and re-apply it, the flask pod won't be able to connect to…
LonelyDaoist
  • 665
  • 8
  • 22
0
votes
2 answers

Kubernetes Service unavailable when container crashes

In my Kubernetes cluster, I have a single pod (i.e. one replica) with two containers: server and cache. I also have a Kubernetes Service that matches my pod. If cache is crashing, when I try to send an HTTP request to server via my Service, I get a…
Matt S
  • 1
  • 2
0
votes
1 answer

Pods are stuck at ContainerCreating after deletion of the pod

I am trying to delete my pod with force deletion with the following command kubectl delete pods my-pod-fg4ss --grace-period=0 --force but my pod is recreating my-pod-fg4ss 0/3 ContainerCreating 0 2d3h I am unable to…
1 2 3
99
100