Questions tagged [kubernetes]

Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions. Using the concepts of "labels" and "pods", it groups the containers which make up an application into logical units for easy management and discovery.

Filter by
Sorted by
Tagged with
1
vote
1answer
15 views

Share cacerts, truststore across multiples nodes of Kubernetes

K8s n00b here. How would a java app that can have multiple pods, across nodes, use the same cacerts, truststore across? Should I take some different approach? My use-case is that an admin of that ...
0
votes
0answers
14 views

503 Service Temporarily Unavailable on kubectl apply -f k8s

express-cluster-ip-service.yaml apiVersion: v1 kind: Service metadata: name: express-cluster-ip-service spec: type: ClusterIP selector: component: server ports: - port: 5000 ...
0
votes
1answer
22 views

How long kubernetes stores pod stdout logs?

I run pods in kubernetes (1.17.0) that write logs to stdout. This pods are going to be up for a long time. I use promtail to gather logs and send to loki storage. So I can configure to store logs, for ...
0
votes
0answers
23 views

What does it mean to have more than one instance of Prometheus in Kubernetes

Suppose I'm using a volume to persist my Prometheus data, I wonder if I can have more than one instance of it running to have high availability. I believe only one instance of Prometheus must be in ...
0
votes
1answer
36 views

Unable to write to `stderr` or `stdout` from Kubernetes pod to pod logs

I'm trying to debug why my application logs aren't being picked up by Promtail for ingestion into Loki. In order to exclude the complexities of my PHP application logging being the culprit, I'm ...
0
votes
2answers
32 views

Postgres mount volume error in k8s

I'm trying to deploy Postgres with a PersistentVolumeClaim in GKE. As per the description here (look at PGDATA), it is recommended to create a subdirectory if mounting an external volume. So, this is ...
0
votes
1answer
25 views

Missing metrics for “kubelet_volume_*” in Prometheus

I setup latest https://github.com/coreos/kube-prometheus/ in an AWS EKS cluster in which I'm using the Amazon EBS CSI driver for persistent volume claims, but I don't see any "kubelet_volume_*" ...
0
votes
0answers
46 views

How to configure K8s cluster to utilize spare CPU capacity for ML training jobs (or other low-priority CPU-intensive work)

I'd like to use spare CPU capacity in our Kubernetes cluster for low-priority jobs -- specifically, ML training using Tensorflow in this case -- without depriving higher-priority services on our ...
0
votes
1answer
30 views

date and time in pods in kubernetes hosted in own datacenter

I am having issue with date and time in kubernetes cluster. My host time is sync using the ntp. Though i have synced it after configuring the cluster. Now all the pods created within my cluster will ...
0
votes
0answers
40 views

Helm install is --values values.yaml explicitly required?

Using Helm version 2, I was under the assumption that explicitly setting --values values.yaml in helm --name elasticsearch install ./ is not required (i.e. defaults to --values values.yaml). However I ...
0
votes
0answers
27 views

Why does my pod never start?

I create a kubernetes cluster, as root, like so: # kubeadm init Then, as a regular user, I execute this: $ kubectl apply -f https://raw.githubusercontent.com/Mirantis/virtlet/master/examples/cirros-...
0
votes
1answer
20 views

istio service mesh for east-west traffic management in kubernetes cluster

I am having the confusion regarding the some of use-case in our environment. First one is we will be having api gateway of our own for north/south traffic which our api gateway will be listening to ...
0
votes
1answer
40 views

GKE cluster access permission

I have two clusters belongs same project in google kubernetes engine. How can I allow some my partner to access one cluster, and deny them to access another cluster? Thank you!
0
votes
1answer
67 views

no kubelet kubeadm kubectl packages

I am going through the kebernetes install docs (https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/) and I am at the point where I am suppose to install the kubelet, ...
0
votes
1answer
50 views

Kubernetes Pod OOMKilled Issue

The scenario is we run some web sites based on an nginx image in kubernetes cluster. When we had our cluster setup with nodes of 2cores and 4GB RAM each. The pods had the following configurations, cpu:...
0
votes
0answers
22 views

Optimisation mongodb database

At the moment I have a mongo database with three instances one master and two slaves. At the moment the database is on kubernetes hosted by aws. The maximum cpu cores is 4 and from time to time when ...
0
votes
0answers
32 views

NodeJS terminates TLS connection immediately

I intercepted this failing TLS handshake with this stacktrace in code: FetchError: request to https://api.laptop.test/graphql failed, reason: Client network socket disconnected before secure TLS ...
1
vote
1answer
50 views

What am I doing wrong with private GKEs peering and Cloud NAT?

I am trying to mount the following platform on Google Cloud: 2 private (native) GKE clusters, in 2 different VPCs and to give them access to the internet, each vpc has a Cloud Nat configurated. What ...
0
votes
0answers
39 views

Recurring pod crashes in microk8s gitlab deployment

I've deployed a Gitlab 12.10 instance on microk8s 1.18 on my Ubuntu 19.10 server. I've noticed repeatedly that some of the pods go into status CrashBackoffLoop or Init:CrashBackoffLoop with error ...
0
votes
1answer
123 views

How can i delete a helm installed package?

I'm using Helm 3 to install kubernetes packages. Now I need to remove/clean up what was installed, I tried with unintall but it seems it’s looking for a release (not sure what it does mean) not a ...
1
vote
1answer
64 views

Need help understanding label overwrite behavior in kubernetes

I am learning kubernetes by walking through a kubernetes tutorial. While working through the exercises in module 4, I observed an odd behavior from kubernetes when overwriting a label. I could use ...
1
vote
1answer
47 views

How to rewrite url to backend while preserving browser url in nginx ingress?

I'm trying to rewrite the path to the service while preserving the browser url with nginx ingress on kubernetes. What I need is this: http://example.com/path => http://service http://example.com/...
0
votes
1answer
16 views

set local_lock when mounting volume via NFS on Kubernetes

If I have a volume that mounts via nfs, provisioned with the nfs client provisioner from kubernetes incubator repo, how can I mount the volume with local_lock=posix instead of local_lock=none? When I ...
0
votes
0answers
22 views

.site domains are extended in kubernetes with the system domain

I would like to use the Heimdall application as a start page for my Kubernetes cluster. The application loads configuration data from "https://apps.heimdall.site/list". This domain is extended within ...
0
votes
1answer
35 views

How to setup a common storage for kubernetes

i have a container a with only files required for my app which is on other container b and container c. I want the files in container a to be accessible by container b and container c. Its kind of ...
0
votes
0answers
26 views

How to configure k8s nginx external auth and exclude health check path?

We started using oauth2-proxy as external authentication for some of our cluster infrastructure components. Our cluster is using the ingress-nginx controller and the Ingress resources are configured ...
0
votes
0answers
29 views

Prevent a user to spawn pod in restricted namespace on kubernetes

How to prevent a user to spawn pods in namespace with serviceaccounts that have high privileges but allow them to create namespace ? For example, I have a cluster with velero in a velero namespace. I ...
0
votes
1answer
45 views

Kubernetes rewrite/redirect path

I have 2 services which are using same image but configuration for those services are different. I want that whenever i request for /get_traits_similarity it redirects to /get_similarity inside of ...
2
votes
1answer
20 views

nginx use-proxy-protocol with Kubernetes cluster

I have a Kubernetes cluster with an external load balancer on a self hosted server running NGINX. I tried to activate the proxy_protocol in order to get the real_ip of clients but NGINX logs are ...
0
votes
1answer
33 views

Network issues kubernetes cluster

I have a Kubernetes cluster of one master and three nodes inside a VPN, it shows ready status. It was built using kubeadm and flannel. The VPN network has the range 192.168.1.0/16. $ kubectl get ...
0
votes
0answers
17 views

Understanding angular frontend and elixir backend relationship

I am running a kubernetes cluster on an openstack cloud and have a pod each for my angular frontend and my phoenix/elixir backend. When the user first calls the frontend through an ingress exposed ...
0
votes
0answers
23 views

Make ambassador edge stack intercept CORS preflight requests

Been struggling to make ambassador edge stack deployment to intercept pre flight requests on our kubernetes cluster. What we want to achieve is OPTIONS request -> Ambassador -> Reply to this OPTIONS ...
0
votes
1answer
41 views

Kubernetes Few worker nodes vs many worker nodes

We use RKE for setting up the cluster with 4 master node (VM, 8 core CPUcurrentlysourcesstagingahorriblea workers and 16G ram) and 5 worker node(bare-metal, HPE G10, 88 core CPU, 256G ram) -...
0
votes
0answers
18 views

How to handle regrex in pathprefix for traefik 2

apiVersion: traefik.containo.us/v1alpha1 kind: Middleware metadata: name: middleware-stripprefix-test namespace: test spec: stripPrefix: prefixes: - user/api-resources - user/...
2
votes
1answer
64 views

AWS Cloud Provider Integration with Kubernetes - Nodes stuck with “uninitialized: true” taint after bootstrapping

Summary I am attempting to bootstrap a Kubernetes cluster on AWS using Kubeadm. Please before you suggest them, I am not interested in using EKS or another bootstrapping solution like Kops, Kubespray,...
1
vote
0answers
21 views

Mounting EKS EFS with CSI Times Out before Pod Comes Up

I am using EKS with Kubernetes version 1.15 and when I create a Storageclass, Persistent-Volume, Persistent-Volume-Claim, and Deployment the pod fails with: Warning FailedAttachVolume 71s (x2 over ...
0
votes
1answer
28 views

OpenShift rsync error

I am developing a python3 script which replicates data from PersistentVolumeClaims mounted in a pod, via rsync. This script is executed in a pod, therefore, the rsync connection is from a pod to ...
0
votes
1answer
18 views

Kubernetes - Ingress vs Nginx with Loadbalancer

AFAIK an Ingress is just an abstraction layer to a LoadBalancer service targeting Nginx (or others) Are there features only an ingress can provide? Are there any drawbacks of using LoadBalancer + ...
0
votes
0answers
32 views

Jenkins: Kubernetes plugin configuration for EKS cluster

Jenkins version : 2.204.4 (hosted Jenkins in IBM server) Kubernetes plugin version: 1.24.1 Tested process 1: I am trying to configure Kubernetes plugin with the EKS cluster, but could not get any ...
1
vote
0answers
38 views

kube-state-metrics doesn't show hardware utilization

I installed this yamls https://github.com/kubernetes/kube-state-metrics/tree/master/examples/standard I can see CPU per pod utilization only from system pods such as: calico-node, coredns, ...
-3
votes
1answer
25 views

AWS kubernetes pricing clarification

I have setup a 5 node kubernetes cluster in AWS using KOPS. I have installed an application on the same. I use the application only for 7 to 8 hours a day and few days in a month. Is there any ...
0
votes
1answer
36 views

Is port channeling/LACP needed with kubernetes?

I have a 6 server setup. Each server has 4 NICs with port channeling setup to my switch for redundancy and speed. My question is simply: Can kubernetes handle this without the port channeling? Or ...
0
votes
2answers
83 views

How to serve user uploaded files in Django / nginx in Kubernetes on GCP (Google Cloud Platform)

I'm trying to convert a django(with gnunicorn)/nginx/postgres docker-compose environment (using docker-compose) to kubernetes on GCP. I've got everything running smoothly except for serving MEDIA ...
0
votes
0answers
23 views

How to declaratively deploy a default template to an Elasticsearch Operator (ECK) cluster on GKE?

I'm deploying two Elasticsearch 6.8.x clusters to Kubernetes on Google Cloud Platform, using Elasticsearch Operator 1.1.0 from Elastic.co. Since I want this to be version controlled and repeatable I'...
0
votes
0answers
34 views

Docker Swarm overlay network: ksoftirqd eating up all the CPU

I have a docker swarm overlay network that connects 6 nodes each running 4 containers with highly frequent communication. I have been trying to identify the bottleneck with my network to realize that ...
2
votes
1answer
62 views

Can't delete dangling k8s load balancer due to http target proxy that doesn't exist

I'm trying to delete the forwarding rule, target proxy, url map and backend services that belong to an extinct k8s ingress. I successfully delete the forwarding rule and target proxy but then when I ...
0
votes
0answers
24 views

How to expose redmine metrics to prometheus?

I have deployed redmine over kubernetes and a monitoring stack consisting prometheus, grafana and alertmanager. I have to perform application monitoring through prometheus for which I need to expose ...
2
votes
1answer
21 views

Why do kubernetes kube-api server need etcd-keyfile and kubelet-client-key

As I understand kube-api server acts as a client when communicating with ETCD and Kubelet. Both ETCD and Kubelet act as servers for kube-api. With secure environment (two way SSL authentication), kube-...
3
votes
2answers
185 views

Kubernetes cluster shared storage and backup solutions

Which shared storage solutions are common for Kubernetes cluster to implement shared storage persistence for containers? NFS on NAS / iSCSI somehow? How do you backup the data on a Kubernetes with ...
0
votes
0answers
22 views

Access/manipulate/restore files in GlusterFS managed via Heketi

I would like to restore a file system backup from a postgres database. With docker-compose I would simply set the command: tail -f /dev/null and use docker cp to put the files in place. Or even ...

1
2 3 4 5
21