36 questions
1 vote
1 answer
563 views
Kubernetes namespace "aks-command"
I recently noticed a new namespace on my AKS cluster called “aks-command”. I have not created this namespace and I suspect that AKS did. To check if this namespace was created by AKS (or by a user), I ...
0 votes
1 answer
602 views
AKS - Kubernetes Hierarchical Namespaces - no endpoints available for service hnc-webhook-service
I want to use Kubernetes Hierarchical Namespaces feature into an Azure Kubernetes Services cluster. I tried to install it by following instructions from here https://github.com/kubernetes-sigs/...
0 votes
1 answer
212 views
Access kubernetes 'namespaces' object from the kubelet
I need to check the namespace of each pod in my cluster for the presence of a particular label. This needs to be done from the kubelet. I am using the kubernetes go-client to send a REST request to ...
4 votes
2 answers
845 views
Sharing CrunchyData Postgres Operator Secrets Between Namespaces
I am using CrunchyData Postgres Operator to manage postgres databases on my Kubernetes cluster. This cluster will host multiple databases used by many projects. I have set up the operator and a ...
2 votes
2 answers
2k views
CKA Network Policy question for ingress traffic
Create an NetworkPolicy named cka-netpol in the namespace netpol. 1] Allow the pods to communicate if they are running on port 8080 within the namespace. 2] Ensure the NetworkPolicy doesn’t allow ...
-2 votes
1 answer
553 views
Setting resource quota on Kubernetes object [closed]
I was exploring the resource quota in kubernetes. My problem statement is there has been a situation where a person accidently wrote a large value for memory limit like 10Gi and that caused a unwanted ...
0 votes
2 answers
1k views
How can I get the names of all namespaces containing the word "nginx" and store those names in an array
Basically I want to automate this task where I have some namespaces in Kubernetes I need to delete and others that I want to leave alone. These namespaces contain the word nginx. So I was thinking in ...
-1 votes
3 answers
1k views
In Minkube mulitple namespaces why NetworkPolicy is not working
I'm using minikube and created the following resources Two namespaces qa and prod Created curlpod in qa namespace, also curlpod and web pod in prod namespace. Curl pods can be used to CURL any URL ...
0 votes
1 answer
379 views
maximum number of namespaces supported by a Kubernetes cluster via k3s?
How many maximum namespaces we can create in Kubernetes cluster via k3s. I see Kubernetes Scalability thresholds here https://github.com/kubernetes/community/blob/master/sig-scalability/configs-and-...
6 votes
1 answer
5k views
Is there a way to cancel namespace termination in kubernetes?
One of my namespace is in Terminating state. While there are many posts that explain how to forcefully delete such namespaces. The ultimate result is that everything in your namespace will be gone. ...
0 votes
0 answers
424 views
Restricting access to namespaces based on labels
I've got a cluster with a number of already existing namespaces, and an automatization process that creates (and manages) new namespaces using Terraform. The service account used for TF got the roles ...
1 vote
1 answer
873 views
Azure AKS: how to avoid resource creation in "default" namespace during cluster creation
I am trying to create a K8s cluster in Azure AKS and when cluster is ready I can see couple of resources are created within the default namespace. Example secret, configmap: As a security ...
2 votes
1 answer
4k views
Unable to delete Kubernetes namespace - removing finalizers fails
I've a namespace I'm unable to delete in my Kubernetes cluster. When I run kubectl get ns traefik -o yaml, I get the following: apiVersion: v1 kind: Namespace metadata: annotations: cattle.io/...
1 vote
1 answer
1k views
Kubernetes Egress call restrict with namespace
I have application running in K3s and want to implement network policy based on namespace only. Let's assume that currently I have three namespace A, B and C. I want to allow egress (external call to ...
1 vote
1 answer
2k views
pod getting terminated because of ownerReferences pointing to resource in different namespace in kubernetes
Starting kubernetes 1.20 there has been a change regarding ownerReferences and how K8s performs GC. Basically if a resource in x namespace spins up a pod/job in a y namespace with child having ...