Questions tagged [kubernetes]

213 questions
3
votes
0 answers

Kubernetes Rancher download logs with timestamp

I am using Rancher server and on individual pods I can check the logs. Is there a way to get the logs from individual pods with the associated timestamp?
magladde
  • 141
2
votes
1 answer

can't find a newly created secret in a kubernetes cluster

First I create a namespace "foo" using this .yaml file : apiVersion: v1 kind: Namespace metadata: name: foo …
Tomas.R
  • 195
2
votes
1 answer

kubectl get pod READY 0/1 state

I am following a lab on Kubernetes and Mongodb but all the Pods are always in 0/1 state what does it mean? how do i make them READY 1/1 [root@master-node ~]# kubectl get pod NAME READY STATUS RESTARTS …
2
votes
0 answers

Unable to deploy custom helm chart in GKE, no pods created

I have Helm 3 and gcloud installed on my local (Windows) machine, and I am able to access my GKE clusters using kubectl command. I have gone through several tutorials and I am able to install Helm charts from public repository, but when I try to…
Arko
  • 121
2
votes
0 answers

Kubernetes Deployment fails with error

Kubernetes Version: 1.16 OS: CentOS7 hosted on Google Cloud Tried to run a deployment on master node with the following manifest file: apiVersion: apps/v1 kind: Deployment metadata:   name: nginx   labels:     app: nginx   namespace:…
2
votes
1 answer

Unable to reach ip from kubernetes pod but can access it from underlying server

I am able to hit the ip from the server on which the pod is running wget https://10.64.2.21 - https://10.64.2.21/ Connecting to 10.64.2.21:443... connected. But not from within the pod ➜ ~ k exec -ti debug /bin/sh / # wget…
R. Doolan
  • 115
2
votes
1 answer

How to set CPU affinity for Pod in kubernetes?

I want to set CPU affinity for a Pod in kubernetes. But, I have failed to set and struggled with finding the corresponding documents. What I understand: Basically, CPU manager of k8s considers all CPU cores in a node as a shared pool and use them…
1
vote
1 answer

Kubernetes master cluster becomes unresponsive when 2 out of 3 master is down,

We are trying to create k8s cluster environment that spans across 2 data center, We have only 7 BM servers. We choose to have 2 Master and 2 worker nodes in data center1, In a sunny day scenario this works But in case of a disaster at data center1,…
KKF
  • 13
1
vote
1 answer

Delay in Kubernetes Job status update when running many jobs in parallel - how to scale the right k8s component?

I have a bit of a unique use-case where I want to run a large number (thousands to tens of thousands) of Kubernetes Jobs at once. Each job consists of a single container, Parallelism 1 and Completions 1, with no side-car or agent. My cluster has…
1
vote
1 answer

Total memory usage as reported by kubectl top nodes vs top pods

Consider these two commands run against my cluster. First roll up all known used ram as reported by top nodes: $ kubectl --no-headers=true top nodes | awk 'BEGIN { total=0 } { total+=$4 } END { print total, "Mi" }' 504972 Mi Then by all pods in top…
phs
  • 613
1
vote
1 answer

Detect Client Real IP from Inside of running Container in Kubernetes

I'm running multiple microservices into Kubernetes and I need to know the client real IP that sent the request to our gateway microservice to show that in UI dashboard. I use Flannel as my overlay network inside my cluster.
1
vote
1 answer

helm install qliksense | secrets already exists

I am pretty new to kubernetes. I run a kubernetes cluster on EKS (AWS). When installing QlikSense on kubernetes I receive the following error. command: helm install -n qliksense qlik/qliksense -f values.yaml error: Error: release qliksense failed:…
Jsimp
  • 13
  • 2
1
vote
0 answers

azure kubernetes network policy to allow some external hosts only for a pod

Let's say I've created a cluster with a manifest like: apiVersion: apps/v1 kind: Deployment metadata: name: my-app spec: replicas: 1 selector: matchLabels: app: my-app template: metadata: labels: app: my-app …
1
vote
1 answer

How to quickly query/verify if a pod is "bare pod" or a pod supported by replication controller?

In OKD v3.11, how to find out if pods running on a node are under the control of replication controller. Is there an oc command or console feature that quickly find the information? Thanks,
DXY
  • 11
1
vote
0 answers

Kubernetes Pod failover never ending on Node failure

I have the following scenario: Node 1: Pod-A Node 2: No Pods Pod-A is using a PV in RWO accessMode. When Node 1 fails (the VM is powered off from the hypervisor), it appears as "NotReady" and Pod-A appears as "Running" until the…
1
2 3 4