New answers tagged

0 votes

Is it possible to rerun kubernetes job?

In Kubernetes, Jobs are designed to run to completion, meaning that once a Job completes its specified number of successful completions, it is considered finished. However, if you want to rerun a Job ...
Avik Sardar's user avatar
0 votes

kubeProxy unable to get node ip

We were able to get this working though by changing the config-map in kube-proxy to point to the api server directly and it appears to have worked. Anyone having this issue make sure your kube-proxy ...
user2643892's user avatar
0 votes
Accepted

installed metrics server in kubernetes cluster but getting 'ServiceUnavailable' error for ''kubectl top nodes"

I have got this issue fixed by doing following things; deleted all current metric server components using kubectl delete -f components.yaml downloaded the component.yaml wget https://github.com/...
kaushal47's user avatar
0 votes

Unable to Access ArgoCD Web UI - Connection Issue

kubectl port-forward svc/argocd-server -n argocd 8080:443 --address 0.0.0.0 As mentioned above , Adding --address 0.0.0.0 to the above command made it work for me.
Zia Ansari's user avatar
1 vote
Accepted

How to monitor multiple Kubernetes clusters using single Grafana?

You are correct; you may use Thanos.io for your use case, specifically Thanos Receivers. These are designed to collect metrics through egress-only connections. The general idea is to install the ...
lsalazar's user avatar
0 votes

Setting up a cluster with workload distribution

I want to setup a server cluster which can keep by servers as busy as possible while still giving fair compute time to everyone That's what the Kubernetes scheduler does. I have setup a basic ...
gtirloni's user avatar
  • 5,795
0 votes

Kubernetes API returns 403 Forbidden from inside a pod with seemingly correct ClusterRole bound to pod Service Account

After some debugging I've found that I was passing k8s namespace argument to "get_namespaced_custom_object" function with a trailing slash, yet the error didn't have trailing slash.
Dima Medvedev's user avatar
1 vote
Accepted

Kubernetes namespaces vs Docker namespaces

No, Kubernetes namespaces don't rely on Linux namespaces, they are internal to Kubernetes itself. Linux namespaces are used to isolate each pod. All containers in the pod share the same network, ipc ...
AlexD's user avatar
  • 9,919
0 votes

How to use wget with headers in liveness probe in a yaml file in kubernetes?

Remove the equal sign from the --header= and use --header instead command: - wget - -O- - --header - "DD-APPLICATION-KEY: abcde" - --header ...
iamwillbin's user avatar
0 votes

How can I create configMap from a file in a different Git repository using Kustomize

I think the correct approach for the use case you describe is just to define a base and create a specific overlay that references the remote base and includes the file you need, merging the configs: # ...
dlouzan's user avatar
  • 191
0 votes

The pod's /etc/resolv.conf does not reflect the changes on the host

As described on the docs, you can use flag --resolv-conf to point the configuration to a valid DNS config file. You can follow steps as describon this link to modify your DNS configuration. If think ...
Ron Etch's user avatar
  • 134
0 votes

coreDNS flooded by istio (envoy)

For anybody who is looking for solution - switch from STRICT_DNS resolution type to "None" in ServiceEntry definition. See below issue for more details: https://github.com/istio/istio/issues/...
jado's user avatar
  • 1
0 votes

Setting up a cluster with workload distribution

I guess you may either use some old workstation or (better) pinch out one machine out of your current Kubernetes cluster and convert it into one machine SLURM cluster just to get things up and running....
darked89's user avatar
  • 101
0 votes

How to Install Istio CRDs in Remote Kubernetes Cluster

Yes, you need to install the Istio CRDs in the remote cluster to enable the use of Istio resources such as VirtualService in a remote Kubernetes cluster. Use this command to install CRDs using ...
iamwillbin's user avatar
0 votes

How to use wget with headers in liveness probe in a yaml file in kubernetes?

I suppose this is the simple way to rewrite this: command: - /bin/sh - -c - 'wget -O- ...'
ipastusi's user avatar
  • 209
0 votes
Accepted

Zero-downtime pod eviction for single replica deployment

Unfortunately, achieving zero-downtime restarts for a single-replica deployment evicted due to external factors like autoscalers or node drains is not directly possible within vanilla Kubernetes. ...
iamwillbin's user avatar
0 votes

Setting up a cluster with workload distribution

There's an option to use topologySpreadConstraints wherein you can spread the pods across the cluster among the nodes. This depends as well with the number of replica on your workload/deployments. I ...
Ron Etch's user avatar
  • 134
0 votes
Accepted

How can i get cilium to pass the failing connectivity test

The solution is disable assigning public IP addresses to EKS nodes. You can configure that in the Network Interfaces in the Launch Template that the EC2 instances are using. Set the "Auto-assign ...
eagercoder's user avatar
0 votes

Kubernetes cluster via kubeadm - CoreDNS buffer size too small / Pods network problems

Seems like the latest CoreDNS does not support DNS compression and the response goes over the limit 512 bytes (UDP limit). First ping/wget... the address that does not work. To trace the bag run: ...
James B.'s user avatar
0 votes
Accepted

Copying Kubernetes Secret Between Namespace

The behaviour you are facing is due to metadata.ownerReferences of your original object. As per: kubectl explain secret.metadata.ownerReferences List of objects depended by this object. If ALL ...
ipastusi's user avatar
  • 209
0 votes

Ubuntu 20.04 VMWare EXSI VLAN Remote Connection Lost after Kubeadm install

Are you sure this is reproduceable? Things works fine, you install kubeadm or other k8s related software, then the SSH connection no longer works? output of 'ss -ptuln' will show you if the ssh port ...
ndizz's user avatar
  • 1
1 vote

How to remove kubernetes completely from Ubuntu node

Both the Kubernetes documentation and this page on webhostinggeeks.com describe how to tear down a kubernetes installation. Per the K8S doc: Use kubectl config delete-cluster to delete your local ...
cteljr's user avatar
  • 11
0 votes

How to add a domain to k3s certificate

The error message indicates that the certificate presented by the k3s cluster is not valid for the domain name node1.lan. This is likely because the certificate was generated for a different domain ...
Sai Chandini Routhu's user avatar
0 votes

Kubernetes OOM killer

Usually a OOM killer uses sigkill and not sigterm. Kubernetes uses the Linux kernel OOM killer. So if you want to know more about this, you may read about how the regular OOM killer of Linux works. It'...
paladin's user avatar
  • 216
0 votes

failed to create fsnotify watcher: too many open files

Given the system defaults I had on my system (TrueNAS SCALE), after investigating with ChatGPT, I used this script to increase the values in a consistent way: # System defaults for comparison ...
Razvan Grigore's user avatar
2 votes
Accepted

Create and assign separate subnet to each namespace

Kubernetes itself doesn't offer such a functionality natively to map namespaces to pod CIDR ranges. Network policies define ingress/egress rules for pods and not CIDR ranges for namespaces. The ...
ipastusi's user avatar
  • 209
0 votes

How to keep the .kube/config tidy after deleting a cluster?

A kubectl config file represents a Config kind and comprises 3 main types: clusters, contexts and users`. Be very careful deleting entries; always backup the config before editing Managed Kubernetes ...
DazWilkin's user avatar
  • 101
0 votes

HTTPS 308 permanent redirection k8s ingress nginx

By default the controller redirects HTTP clients to the HTTPS port 443 using a 308 Permanent Redirect response if TLS is enabled for that Ingress. This can be disabled globally using ssl-redirect: &...
Yvette Lau's user avatar

Top 50 recent answers are included