Questions tagged [kubernetes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How do I update a K8S cluster certs?

I installed my own K8S cluster on a couple Linux VMs months (or maybe a year) ago. I went to use the K8S cluster today and got an error Unable to connect to the server: x509: certificate has expired ...
user avatar
  • 285
0 votes
0 answers
6 views

Add a worker node to a master node via ssh

I have two servers connected to the internet. Both can reach each other via ssh. One should be the kubernetes master node and one i'd like to be a worker node. How can i connect the worker node only ...
user avatar
0 votes
0 answers
11 views

Unable to bring kube-api server back to life after kubeadm certificate renewal

I have a self hosted Kubernetes Cluster running on 4 Openstack VMs. There is 1 master and 3 nodes. Kubernetes Version: v1.21 The certificates on the master were outdated. I used kubeadm certs renew ...
user avatar
  • 1
0 votes
1 answer
16 views

How to understand `operating system packet filtering layer`?

When I read this document #kube-proxy: kube-proxy uses the operating system packet filtering layer if there is one and it's available. Otherwise, kube-proxy forwards the traffic itself. so, what's ...
user avatar
  • 427
0 votes
0 answers
10 views

Is it possible to set 2 Teamcity servers on the same MSSQL/HSQLDB server with Kubernetes

I would like to use Kubernetes to install the Teamcity server and set up 2 or more servers on the k8s Pods or Services, is it possible, and how to do it. My testing Q1: to change replicas from 1 to 2 &...
user avatar
  • 686
0 votes
0 answers
2 views

Cancel a pod with error ImageBackoff

I tried to deploy a kubernetes pod and I get a error ImagePullBackOff NAME READY STATUS RESTARTS AGE mrp-7c46596899-cvjnf 1/1 Running 0 33d ...
user avatar
0 votes
1 answer
87 views

How to add additional scrape config for Prometheus on kubernetes?

I have cloned and started the https://computingforgeeks.com/setup-prometheus-and-grafana-on-kubernetes/ kube-prometheus project on my local. I want to add additional scrap config to retrieve custom ...
user avatar
0 votes
0 answers
5 views

Why is pod-config.json needed when POD-ID is already provided in crictl create command?

The help output for crictl create shows that both the POD ID and the pod-config.json file are mandatory arguments to the command. Why is pod-config.json needed when the POD ID is already provided? ...
user avatar
1 vote
0 answers
55 views

Veracrypt exFat inside Kubernetes pod

I have a working solution to run this veracrypt command inside a pod: veracrypt --text --quick --non-interactive --create /media/vera --volume-type normal --size 200M --password 123456 --hash SHA-512 -...
user avatar
  • 11
0 votes
0 answers
13 views

How to run a kubectl exec of a string expression?

I am trying to generalize a specialized script dumping a kubernetes pod's JVM stats. There are multiple known commands I can run, but they are all predefined. As this is a poweruser script, I want to ...
user avatar
  • 101
1 vote
1 answer
56 views

How can I have my service be the first service to begin stopping on system reboot/shutdown?

I am trying to have a custom service shutdown an application on reboot, I can get the service file to work correctly up to a point, that point being that the my custom service needs to be brought down ...
user avatar
0 votes
0 answers
13 views

Ingress not routing traffic to service (Kubernetes/Helm/Ingress/Ngxinx)

The problem I'm currently working on a webAPI which I have an nginx ingress controller controlling traffic to my cluster. I have got it 90% working where the paths for pgweb (http://lnd.local/pgweb) ...
user avatar
0 votes
0 answers
28 views

How can I sync A records from CoreDNS to DNS Name Server?

Can the Nameserver sync record if I create the A record in coreDNS? For instance, In CoreDNS create a record: 10.163.15.2 A example.com with example.com zones -> Can DNS Primary Nameserver sync ...
user avatar
  • 1
0 votes
0 answers
23 views

How to purge a kubernetes persistent disk?

I have an Azure AKS cluster, and deployed... a) a persistentVolumeClaim (PVC) - it uses the default storageClass, so the reclaim policy is 'delete'; b) a deployment containing a pod with a linux ...
user avatar
0 votes
0 answers
22 views

Replicating synchronizing persistent volume data across seperate kubernetes cluster in different sites

I am using open source Kubernetes Can I replicate data between Kubernetes PV in two separate clusters situated in different data centres ?? Application writes files to the PV like xls, csv etc. ...
user avatar
  • 1
0 votes
0 answers
15 views

PerfView on Windows Kubernetes pod

I am trying to run PerfView on a Windows kubernetes pod, with the following command: .\PerfView.exe /DataFile:PerfViewData.etl /BufferSizeMB:256 /StackCompression /TplEvents:Default /NoGui /AcceptEULA ...
user avatar
0 votes
0 answers
15 views

What is the best way to mount a shared CephFS in Kubernetes?

we're running a traditional HPC stack in our lab with: CephFS as a shared filesystem for our "big-data" files. We're using a lot of ACL rules to manage access to our project and raw data ...
user avatar
  • 163
0 votes
0 answers
11 views

Why does tailing logs with kubectl prevent pipe from producing output? [duplicate]

I'm trying to process logs while tailing them. This command works: kubectl logs "$pod" --tail=100 | egrep pattern | cut -d ' ' -f 1 But this command produces no output: kubectl logs "$...
user avatar
0 votes
1 answer
27 views

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 ...
user avatar
  • 165
0 votes
0 answers
163 views

kubernetes cannot run port-forward with wireguard

I got the error message failed to execute portforward in network namespace "...": failed to dial 8080: dial tcp4: lookup localhost: no such host when I try to use port-forward in my k3s+...
user avatar
  • 1
0 votes
0 answers
52 views

Installing Kubernetes (K3s) on my Beaglebone black: how to connect it to kubernetes dashboard on my laptop

I have a container running on my Beaglebone black and i set up a kubernetes dashboard on my laptop. I would like to be able to see the container of my BBB on the kubernetes dashboard. Each command ...
user avatar
  • 101
1 vote
1 answer
41 views

configure kubectl to provision minikube localy instead of Kubernetes cluster in aws (AWS EKS)

I have Minikube installed on my laptop and I have a Kubernetes cluster on AWS EKS After creating a cluster on AWS I received a command to execute so that my kubectl command manages the cluster on AWS. ...
user avatar
  • 165
0 votes
0 answers
17 views

How to check the kubeadm installation default cgroupDriver when install it

When I follow this kubernetes docs: there is statement: # kubeadm-config.yaml kind: ClusterConfiguration apiVersion: kubeadm.k8s.io/v1beta3 kubernetesVersion: v1.21.0 --- kind: KubeletConfiguration ...
user avatar
  • 427
0 votes
0 answers
31 views

How to start/stop a local EKS Anywhere?

I just installed a local kubernetes cluster (EKS Anywhere) as described in Create local cluster for some personal training on my notebook. I used all the given defaults, deployed the test workload, ...
user avatar
  • 1,630
0 votes
1 answer
360 views

How to pass commandline argument to kubectl exec shell when run over ssh

How to pass the command like argument when kubectl is run over ssh? -l argument to ls is passed to pod shell if i run without ssh. I tried to escape, put inside quotes etc, but nothing worked. ssh ...
user avatar
  • 123
0 votes
0 answers
19 views

Pod in Kubernetes unstable - Sometimes available, sometimes not (switching worker nodes all the time)

I try to setup pods in kubernetes but the pods seem highly unstable. But the responses from the pod seem fully random. This is the output of an apache pod running in my k3s cluster (1 master, 3 ...
user avatar
0 votes
0 answers
32 views

Setup Ingress for Demo Application

I'm trying to setup a k3s cluster in Virtualbox VMs using Vagrant for learning purposes. 192.168.30.10 is the IP I assigned to my master node. I deployed a demo application but I don't get a grip on ...
user avatar
0 votes
0 answers
15 views

Kubernetes EndpointSlices via address provisions from worker nodes

I have a kubernetes cluster that is starting out with 3 master nodes and 2 worker nodes. Each of the master nodes have 1 IPv4 address assigned to them, while the workers each have 17 IPv4 addresses ...
user avatar
  • 11
0 votes
0 answers
15 views

AWS | Specify existing role for eks / eksctl

So i'm trying to setup a Kubernetes cluster on AWS, using the eksctl tool. When i create a cluster, it creates a new role, for each role group, which my admin account doesn't have access to. Can i ...
user avatar
0 votes
0 answers
14 views

Automate start/stop Kubernetes nodes depending on load

I would like to be able to start/stop Kubernetes nodes depending on th load and requirements from my applications. My setup would be: 6 raspberry pi 1 POE managed switch I am not sure how I can ...
user avatar
  • 131
0 votes
1 answer
532 views

k3s slave agents don't join kubernetes cluster (in Vagrantbox setup)

I'm trying to setup a k3s cluster in Virtualbox VMs using Vagrant for learning purposes. But my slave agents don't connect to my master node. My VM provider is Virtualbox. I'm following the ...
user avatar
0 votes
0 answers
297 views

Unable to start Minikube

I have installed Minikube and Virtual Box. On running Minikube start, I get the following error: ! StartHost failed, but will try again: Error loading existing host. Please try running [minikube ...
user avatar
0 votes
0 answers
22 views

Using port-forward with WSL2 for port 443

I use WSL2 on Windows 10 with Ubuntu 20.04 and like to use it with kubectl. I need to port-forward to a service in a pod on kubernetes. I am quite confused why it is using the complete wrong address ...
user avatar
  • 496
0 votes
1 answer
2k views

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 ...
user avatar
0 votes
0 answers
314 views

Kubernetes installation using ansible fails for admin.conf not found

I'm trying to setup Kubernetes cluster on Ubuntu-18.04 systems using ansible with below playbooks. kube-dependencies.yml - hosts: all become: yes remote_user: root gather_facts: yes connection:...
user avatar
0 votes
0 answers
91 views

How does Kubernetes work with traditional Kerberos setups?

I'd like to give our users the possibility to use Kubernetes on our cluster. However, all of our data resides on a CephFS mount and the users' home folders are mounted via NFS. How do people solve ...
user avatar
  • 163
0 votes
0 answers
10 views

How to distribute traffic equally in aks?

I have a service created with loadbalancer type for a deployment with 3 replicas. The traffic is not distributed equally, instead all the traffic goes to first pod. How, to equally distribute the ...
user avatar
  • 101
0 votes
1 answer
27 views

Kubernetes - Default Network Policy when creating a new namespace

I'm running canal CNI on a Kubernetes cluster and need to prevent inter-namespace communication. So, every time a new namespace is created, I need to have a default deny network policy created as well....
user avatar
0 votes
1 answer
37 views

Kubeadm - unable to join nodes - request canceled while waiting for connection

Trying to provision k8s cluster on 3 Debian 10 VMs with kubeadm. All vms have 2 network interfaces, eth0 as public interface with static ip, eth1 as local interface with static ips in 192.168.0.0/16: ...
user avatar
0 votes
0 answers
23 views

How to change the IP address when printing the kubectl get --print-join-command

I don't know if this question has been asked before, but I am trying to create a K8s cluster using a Raspberry Pi 4 and 2 machines using Ubuntu-18.04. The machines can only be connected to a specific ...
user avatar
0 votes
0 answers
119 views

Docker for Mac Kubernetes resolve internal domain with nip.io?

today I was reading a blog post and I discovered a service called nip.io It allows to easily resolve local domains. I have Docker for Mac where I run Kubernetes, I am trying to run some services and ...
user avatar
0 votes
1 answer
20 views

What's the difference between Helm list and Kubectl get deployments?

Can someone explain the difference between what you get in the outputs of a helm list and kubectl get deployments command ? I'm running these commands on a sever and some entries appear whether you ...
user avatar
0 votes
1 answer
38 views

How do I have to configure certmanaager when using a gitlab managed cluster?

I use a scaleway kubernetes cluster v1.21.1 managed by gitlab. To do this, I created a Cluster Management Project with the default template. https://docs.gitlab.com/ee/user/clusters/...
user avatar
  • 3
0 votes
1 answer
77 views

I can't initialize a HA Kubernetes Cluster. Can anybody help me?

I'm trying to set up a HA K8s cluster using keepalived + haproxy Here's the configuration I have root@k8sHAproxy1:~# cat /etc/keepalived/keepalived.conf vrrp_script chk_haproxy { script "killall -...
user avatar
0 votes
0 answers
17 views

Expose Services from Cluster to External Network

I have setup a raspberry pi cluster with 4 nodes for Kubernetes as follows: The master node has forward rules to provide internet access to all internal nodes in the cluster network, meaning only the ...
user avatar
  • 101
0 votes
0 answers
29 views

What do you call a namespace that has multiple deployments?

I have a Kubernetes namespace that has multiple applications deployed in it. I'm wondering what to call that. It's not a namespace because it has an entire system deployed (multiple deployments with ...
user avatar
  • 285
0 votes
1 answer
20 views

bypass scheduler in kubernetes

Last night we during the disaster on k8s faced this issue that the scheduler does not respond to our apt request, so is there any way to bypass the k8s scheduler and direct way to deploy on the k8s ...
user avatar
  • 111
0 votes
0 answers
21 views

Processes are not being killed by OOM what causes memory allocation issue on k8s nodes

We have some 8GB CentOS 7 nodes with disabled SWAP and Kubernetes installed on it. Without heavy load system consumes below amount of memory: root ~ # free -m total used ...
user avatar
0 votes
0 answers
24 views

Xorg not starting in GKE with GPU : (EE) no screens found(EE)

I am trying to run Xorg server that use GPU inside Google Kubernetes Engine I followed this guide (https://cloud.google.com/kubernetes-engine/docs/how-to/gpus#ubuntu) to setup a GKE cluster with ...
user avatar
0 votes
0 answers
373 views

mount.nfs: requested NFS version or transport protocol is not supported when attached to aliyun NFS

Now I am in kubernetes to attach my PV in aliyun NFS, after I am started the MySQL pod(which was using the attached volumne), it shows this error: MountVolume.SetUp failed for volume "nfs-hades-...
user avatar
  • 165