Questions tagged [kubernetes]

For questions about Kubernetes, an open-source system for automating deployment, scaling, and management of containerized applications.

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

Deploying a statefulSet with static volume provisioning but controller insists to use dynamic

I am trying to deploy a statefulSet that will use static volume provisioning (claim existing PVs) based on their label. However, it seems that the persistentvolume-controller is trying to provision ...
2
votes
1answer
38 views

How can I best deliver read only data assets to a Kubernetes application?

I'm migrating an HPC app to Kubernetes, and am trying to determine the best way to provide read only data assets as a configuration managed snapshot. Previously, my team had delivered our ...
1
vote
1answer
31 views

kubectl create deployment not has the option containerPort

When I execute kubectl create deployment nginx --image nginx --dry-run=client -o yaml it does not have options --port or --containerPort. My yaml is: apiVersion: apps/v1 kind: Deployment metadata: ...
1
vote
1answer
30 views

Managed MySQL cluster - similar solution for a private cloud

Is it possible to build a similar solution to managed MySQL cluster on a private cloud (VMware vSphere / Hyper V). Even with Kubernetes. A solution which supports auto-scaling, auto-upgrade, multi-...
1
vote
2answers
45 views

Whats the point of circleci orbs?

I'm looking at: CircleCI Orb for kubernetes Whats the point of this? Whats the benefit of an orb which is a CircleCI specific feature rather than say a bash function/script (which is more ...
2
votes
1answer
258 views

GitLab CI/CD page listing many gitlab runners that no longer exist

I am running GitLab Runner using a Helm chart as described on the GitLab Runner Helm Chart page. Everything seems to be working, but after about two months of running I see on my GitLab group that ...
2
votes
1answer
168 views

Angular config maps in kubernetes

How can I integrate a config map into my angular application in kubernetes? Any useful blogs or videos implementing this would be helpful. I found a few, but they didn't work for me.
1
vote
0answers
247 views

How can I ensure Helm doesn't install a dependency twice?

If I have a chart, say ChartA, that has a dependency on ChartB, I want to only install ChartB if it hasn't been installed already. Why? Let's say I run 2 copies of ChartA, and they both need a ...
1
vote
0answers
43 views

Can't set up basic k3s cluster on raspberry pi setup

I apologize in advance if this is trivial as I am an undergrad and quite new to kubernetes, raspberry pis, and networking in general. I only included the fact I am working on Raspberry Pi for ...
1
vote
1answer
117 views

Running two containers in a kubernetes job each with their own initContainers

In this SO article I understand that I can run a sequence of initContainers before running the containers defined in spec.template.spec.containers. https://stackoverflow.com/questions/40713573/how-...
2
votes
2answers
25 views

Run more pods than node's CPU with k8s

Let's suppose i have 5 k8s nodes with 2 cpu on each node. This mean i have 10 cpus. Now let's suppose i want to deploy a very small and basic application with 20 replicas. Is there a limitation on ...
1
vote
1answer
92 views

Terraform and Kubernetes' StorageClass with node affinity

Im able to make a number of kubernetes constructs in terraform and even have done so for my ephemeral stateful data that requires low latency disk performance. I can terraform up a ...
1
vote
0answers
30 views

Kubernetes pod eviction and logging

EDIT: I found this Github issue and I'm waiting for their response: https://github.com/kubernetes/kubernetes/issues/26923#issuecomment-608581984. I have been tasked with improving our cluster-level ...
0
votes
1answer
40 views

How to tell kubectl to use different api groups

I am trying to list down resources which is in different api group. I am running the below command [jk@ome-esrs-adapter-master csadmin]# kubectl get issuers -n default Error from server (NotFound): ...
1
vote
1answer
33 views

Is there a way through which I can control type of load balancer like round robin , least-connections etc using helm charts?

I am researching different types of loadbalancing methods available through kubernetes .I want to implement & see before deciding on one .I'm stuck at how to actually define typeof-loadbalancer.If ...
1
vote
0answers
20 views

How to enable anonymous authentication for kube-apiserver using kops on AWS C2?

I want to enable anonymous authentication using kops, but it's default settings provides the --anonymous-auth=false options to kube-apiserver: /usr/local/bin/kube-apiserver --allow-privileged=true --...
0
votes
1answer
33 views

How to get server url from kub dashboard?

I have access to kubernetes dashboard on aws with token. And now I want to connect with kubectl, how to get server url for kubectl config?
2
votes
1answer
30 views

How to deploy a Kubernetes service using NodePort on AWS?

I have created a cluster on AWS EC2 using kops consisting of a master node and two worker nodes, all with public IPv4 assigned. Now, I want to create a deployment with a service using NodePort to ...
1
vote
1answer
13 views

Istio: envoy proxy to https container in same pod

I've got a container that runs a https service on port 9999. The service is as follows: apiVersion: v1 kind: Service metadata: labels: role: pingfederate2 name: pingfederate2 spec: ports: ...
1
vote
1answer
26 views

Common config in Kubernetes ConfigMap

Kubernetes already provides a way to manage configuration with ConfigMap. However, I have a question/problem here. If I have multiple applications with different needs deployed in Kubernetes, all ...
0
votes
1answer
25 views

Should my zombie backend container be restarted when database is down?

I have a situation where I have a Postgres and a Node server which connects to it. I am using Kubernetes to deploy them. If my Postgres container fails and stops working then its livenessProbe will ...
2
votes
0answers
124 views

Where does PGBouncer sit on a Kubernetes Cluster

I'm wanting to deploy some sort of connection pooling within my applications across multiple nodes. Python naturally provides some pooling with the SQLAlchemy implementation; but obviously this ...
1
vote
1answer
54 views

Auto tune kubernetes requests/limits?

I know of ways to set up monitoring (e.g. prometheus/alert-manger) to notify me if kubernetes pod requests/limits are too far off actual container usage. Are there any systems built to help you ...
2
votes
2answers
500 views

What is the difference between a node and a machine on OpenShift?

OpenShift 4.2 documentation defines: Machines A fundamental unit that describes the host for a Node. A machine has a providerSpec, which describes the types of compute nodes that are offered ...
0
votes
1answer
92 views

Accessing k8s outside of VM

I am running k8s cluster for evaluation purposes inside some vagrant box. I have external kubectl access. I was able to get PostgreSQL helm template running on the cluster. But now let say I want to ...
1
vote
1answer
80 views

Is Google Kubernetes (GKE) worth it for a program that runs once a week?

My team is on the process of migrating all our cloud applications from AWS to GCP, and we were considering using GKE for our main program, until we got the news that Google will now charge an hourly ...
1
vote
2answers
321 views

az aks browse doesn't open browser automatically on WSL and only showing JSON instead of the dashboard

az aks browse works fine on my Mac Mini, but I'm trying to work with it in WSL2 Ubuntu 18.04 with Azure CLI on a Windows 10 machine. $ az version This command is in preview. It ...
0
votes
1answer
503 views

Prometheus-operator - detection of expiring certs failing

I had a situation yesterday where my K8S master api cert has expired and I had Prometheus-operator active in the past weeks, but neither the 24 hours, neither the 7 days alert has triggered. I went to ...
4
votes
1answer
43 views

Conversion tool for converting kubernetes yaml files from 1.15 to 1.17?

we are on kubernetes 1.15.* and our yaml files are incompatible with the latest 1.17 installation. Is there an easy way of converting our yaml files with a tool?
4
votes
1answer
55 views

How To Determine Min/Max Resources For Kubernetes Pods?

Say I have 2 nodes for a kubernetes cluster. Both has 2 CPU → 4 Total 2G RAM → 4 Total I have 4 pods to shcedule-- no replicas yet, 1 major pod that'll use 80% of resources, other use 5% each. What ...
-1
votes
1answer
930 views

upstream connect error or disconnect/reset before headers. reset reason: connection failure

I am deploying a virtual service and gateway but when I run it on browser get the below error: upstream connect error or disconnect/reset before headers. reset reason: connection failure I deployed ...
1
vote
1answer
102 views

How to avoid OOMKilled with azcopy on k8s

When running azcopy copy with huge repos, or when running azcopy bench, the pods are killed with the error OOMKilled. (azcopy v10) The pod has to following resource limitations: limits: { cpu: 1, ...
2
votes
0answers
44 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
1
vote
1answer
80 views

How to copy files from a different linux server folder to Kubernetes pod

I have multiple files in a different linux server folder and I want to create a cron job and run daily in kubernetes that should copy the files to a pod network folder. I am researching a lot on ...
1
vote
0answers
26 views

Backup kubernetes cluster + EBS PVs / restore to new account?

We are migrating multiple EKS kubernetes clusters to new AWS accounts, and each of them has AWS EBS persistent volumes encrypted with the default account key. Within an account we were planning on ...
0
votes
1answer
82 views

StatefulSet or Deployment for Jira on Kubernetes

We are looking into moving our Jira instance on a Kubernetes cluster and one of the concerns that were recently risen is whether we should go with a StatefulSet or a Deployment. So, are there any ...
0
votes
1answer
69 views

Kubernetes: CPU Limits at (200%)?

So, let's say there's a cluster node, with 4 CPU cores. It's running two pods. Each pod sets the CPU requirement at: 500m, but the CPU limit at 4000m. running kubectl describe node <noode> ...
2
votes
2answers
156 views

Does Kubernetes internal networking keep traffic to co-located Pods where possible?

In Kubernetes, if I run a Service Foo on every Node, and also Service Bar on every Node, i.e. with DaemonSets. If a Pod from Service Foo needs to make a request to Service Bar, does Kubernetes ...
1
vote
1answer
1k views

kubeadm init fails when using cri-o

I've been following this doc to deploy kubernetes https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/ After launching the "kubeadm init" command and during its ...
2
votes
2answers
3k views

Error from server (Forbidden): error when retrieving current configuration of: Resource: “apps/v1, Resource=deployments”,

I integrate the existing kubernetes cluster to the gitlab instance (omnibus). I get the below error in the deployment stage of CI/CD pipeline: Error from server (Forbidden): error when retrieving ...
0
votes
1answer
51 views

Using a ubuntu base image vs an application specific image (node, python, etc)

What are the benefits of using an application specific Docker image vs a generic OS? I'll use an angular app here as a contextual example, but this should apply to other apps as well. Example 1 | Use ...
2
votes
2answers
222 views

How to introduce(join) new worker node to an existing k8s cluster with selective scheduling only

Given a working Kubernetes cluster consisting of a master and some workers. We need to add a node to run a very specific pod and be part of the cluster for networking reasons. Then being largely ...
2
votes
2answers
589 views

How do I expire users credentials for Kubernetes in Azure?

I am looking for information on how to forcefully expire users credentials in Azure Kubernetes Service (AKS). The reason is to better understand Security models and protecting Kubernetes deployments ...
3
votes
1answer
173 views

kubernetes: how to set “top node” and “top pod” permissions?

Hoping for some pointers, I have a question: what role/permissions do I need to bind to a user that has ClusterRole=view in order to let that user use top node and top pod commands in kubectl? My ...
0
votes
1answer
47 views

Bare-Metal Kubernetes storage in enterprise

Problem in a nutshell What kind of storage for dynamic provisioning in a bare-metal kubernetes should i use. Our configuration Each of our kubernetes nodes (worker and master) are running on VMs. ...
1
vote
4answers
176 views

Why will my container run in Docker, but will not run in Kubernetes?

Background I have a container that I have defined with an CMD and an ENTRYPOINT in Docker. When I run the following command my container runs with no issues whatsoever. docker run --rm -ti custom-...
1
vote
2answers
960 views

Can an in-memory filesystem be created from inside a docker container with no special permissions?

I'd like to create an in-memory filesystem within a docker container running on a cluster where I can't assign the container any special permissions (e.g. the container can't have CAP_SYS_ADMIN ...
1
vote
1answer
282 views

How to exclude a node in kubernets using podAntiAffinity?

I'm trying to exclude a set of nodes when I submit a job in kubernetes. The set of nodes do not (yet) have a label to differentiate them, so all I can exclude them on is hostname (for now). All the ...
0
votes
1answer
2k views

Can't get either Postgres permissions or PVC working in AKS

These are pretty much the steps I have followed in order. Basically what is outlined in the documentation: https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv azure-storage-claim.yaml ...
1
vote
1answer
331 views

How to pass parameters to a container orchestrated by Kubernetes similar to running the container at the command line using the docker run command?

Background I have a docker container that I run in the following fashion: docker run --rm my-custom-container:latest --username me --password yes --url "https://my.url" The container does what ...

1 2 3
4
5
10