Questions tagged [kubernetes]

Kubernetes is an open source container cluster manager.

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

Using Kubernetes Container as a Custom NAT in Google cloud platform?

GCP used to have a documentation that explained about using Google Compute instance as a custom NAT Device, it is now deprecated and deleted as per the documentation. Basically it had a list of ...
0
votes
0answers
10 views

kubernetes PersistenceVolume NFS IP change

We are running kubernetes on centos7 on premises from past 3years, Recently our NFS storage device was migrated to different VLAN and there was a change in IP address, now none of pods are functioning ...
0
votes
3answers
69 views

How to convert a kubernetes style time elapsed into seconds so I can do some comparisons

From kubectl get pods -o wide The output looks similar to some-pod-name-with-numbers-123 1/1 Running 0 6d4h 192.168.0.23 node-name-abcdeft-host.domain <none> ...
0
votes
0answers
14 views

RHEL VM network bridge not wokring after desktop is ready

I have this weird problem in my RHEL 8 VM running in oracle Virtualbox. Below is the network settings I defined. Till last night it was perfectly working fine. But after configuring this node as ...
0
votes
1answer
14 views

netfilter fails to properly replace destination IP of UDP response package

We have small kuberentes cluster running (CentOS 7, Kuberenetes 1.13 + Flannel) and after some tweaking TCP configuration (see below), we noticed that DNS was not working properly. I don't think that ...
0
votes
0answers
7 views

is there any good way to backup kubernetes namespcae

I am now using kuberenetes 1.16.0, I find some tools like velero or kube-backup, but velero may need cloud store service and kube-backup back to text or json, is there any good way to backup whole ...
0
votes
0answers
15 views

is there any default editor in ubuntu image

Now the kubernetes dns could not resolve, I want to edit the /etc/resolv.conf to remove the default dns server ip,but there has no editor in image and I could not download tool from internetes,any ...
0
votes
1answer
221 views

Trying to use apt-get in Kubernetes Node

I'm trying to install the nfs-common package via apt-get on a Kubernetes node. To achieve this I created a privileged pod and then accessed it with this command: kubectl exec -ti privileged-pod sh ...
1
vote
0answers
127 views

Not able to setup cluseter in kubernets

I am trying to setup a cluster using kubernetes on centos 7 VM's and stuck on the part to join worker to the cluster. I have managed to setup the master and get the token, i added the token onto the ...
1
vote
2answers
802 views

How to run multiple commands in kubernetes cron job

I am trying to run multiple commands in a K8s cron job. However, only the first jobs output is showing in the logs. I have this: containers: - name: myjob image: ...
0
votes
1answer
56 views

ping can resolve hostname, while dig is unable to resolve the same hostname?

ping can resolve hostname, while dig is unable to resolve the same hostname? I'm experiencing a strange issue, where ping is able to resolve some DNS hostname, while dig cannot. I've tried to dig +...
0
votes
0answers
13 views

How to determine what launched kube-api processes

My system was lagging so I used top to figure out what's running, I see: the things that look a little out of place are these: kube-apiserver kube-controller kube-scheduler is there any way to find ...
1
vote
1answer
127 views

How can I pass environment variables from sshd's environment to new SSH sessions?

How can I pass environment variables from sshd's environment to new SSH sessions? I'm running sshd in Kubernetes pods. Kubernetes sets various variables in the containers environment, including the ...
1
vote
3answers
114 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. ...
0
votes
0answers
26 views

docker networking: proxy not reached

I've deployed a k3d cluster inside an virtual machine. So, here I'm there're two host: virtual machine host, and docker host. My docker containers are: $ docker ps CONTAINER ID IMAGE ...
1
vote
1answer
319 views

unable to recognize file. connection refused

On an Amazon Linux 2 instance, the command line is throwing the following connection refused error every time a command is run that references a file path. The same error is thrown when an https url ...
1
vote
0answers
126 views

Cron jobs not running on Kubernetes + Alpine linux

I am trying to run a cron job on Alpine Linux docker image which is then pushed in Kubernetes container. The Cron job is that I want the container to restart itself after every 15 mins. So my command ...
0
votes
1answer
67 views

How much storage is this fio command utilizing?

I have a fio workload running as a Job. Fio workload: --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: fio-target spec: #storageClassName: ocs-storagecluster-cephfs ...
0
votes
2answers
80 views

Linux process is sending some junk characters to the STDOUT. No Controlling terminal attached to it

I have a containerized unimrcp server and it is running as kubernetes pod. When I go inside container and do ps -ef its output is like this: [root@unimrcp-0 fd]# ps -ef UID PID PPID C STIME ...
0
votes
0answers
45 views

Grafana Dashboard ID 315 issue

I have configured the running application on kubernetes cluster and for monitoring i am using prometheus and grafana. For kubernetes pods monitoring i am trying to use Grafana dashboard: Kubernetes ...
-1
votes
1answer
6k views

error converting YAML to JSON: yaml: line 10: did not find expected key

I have the following yaml file: --- apiVersion: v1 kind: pod metadata: name: Tesing_for_Image_pull -----------> 1 spec: containers: - name: mysql ------------------------&...
1
vote
2answers
85 views

How to Get user input from the stdout of for loop index

Here is the shell script I want to execute. for example, I have 100 kubernetes pods with 100 different vehicles. I want a list to be generated of cars and choose 10 particular cars from the list. ...
0
votes
0answers
27 views

Kubernetes context's awareness in prompt

I don't try to inject some precmd in shell's prompt. I want to source something that will enable later commands in shell prompt to aware that we have kubernetes in its context otherwise disable it. ...
1
vote
0answers
162 views

Issues interacting with Windows Shares without mounting

I am rebuilding a legacy system using Kubernetes, and do in some cases need to read and write files to Windows shares. I have tried working with our internal cloud providers to install various ...
0
votes
0answers
110 views

kubernetes inodes increasing on cluster nodes but are not evicted even with hard limit

I have a multi-node k8s cluster with pods running that increase the inode usage in the overlay folder over time. There are hard eviction limits set but these never trigger to evict any pod from the ...
0
votes
1answer
105 views

Gain shell access to Kubernetes pod

I was doing some testing/evaluation on a Kubernetes Helm chart created by a 3rd party and wanted to gain shell access to pods. This immediately lead to several questions: How do I find which services ...
1
vote
0answers
93 views

Tool to convert multi-document YAML to XML

Are there any command-line tools to convert YAML to XML? I've seen that there are several websites that offer YAML to XML conversions, however none of them seem to support YAML files containing ...
0
votes
0answers
22 views

Can someone explain these mounts on these filesystem on a pod in a k8s cluster?

I have a k8s cluster with some pods and some AWS EC2 volumes mounted on these pods. On a pod I have some dir structure, i.e. I have this Filesystem mounted on these dirs: Filesystem Size Used ...
1
vote
0answers
15 views

Problem to implement route forwarding method

I have developed one application using minikube and one pod. I am using IPVS mode here. The application works when I have used Masq forwarding methods. But it does not work for route forwarding ...
1
vote
1answer
76 views

How to find out the arguments passed into a process and where the arguments are taken from?

I'm trying to configure OpenShift (regardless whatever the application is), it starts the Kubelet with Hyperkube. It has a bunch of arguments passed into it, I can see that with the help of ps -ef | ...
1
vote
1answer
246 views

Multi master setup in kubernetes, weave net is not running properly

We have try to setup multi master in kubernete our network plugin is not properly it’s showing below errors I followed this blog post for setup multi master in kubernetes, Cluster information: ...
5
votes
1answer
709 views

Yum in Amazon Linux 2 still asks for GPG key even after “rpm --import” when adding Kubernetes repo

I'm trying to add a kubernetes repo to my Amazon Linux 2 instance and struggle with automatically adding GPG keys. This is my /etc/yum.repos.d/kubernetes.repo... [kubernetes] name=Kubernetes baseurl=...
0
votes
1answer
168 views

Hosting LXC Linux containers in Azure

We have a number of LXC Linux containers running on a linux host in data center. I was asked to explore feasibility of moving these containers to Azure as part of cloud migration strategy, but I am ...
1
vote
2answers
793 views

Problems mounting GlusterFS when starting up pod (in Kubernetes)

Just to give a bit of background - I have a 3 node GlusterFS cluster running, and I made sure to test it works by mounting a few directories on some servers. I also tested a mount on the Kubernetes ...
0
votes
1answer
161 views

Can I force apt-get install to skip upgrading ca-certificates as the upgrade is failing on Debian GNU/Linux 9?

I am trying to install a package using apt-get on Debian. However, for some reason, it also wants to upgrade ca-certificates. Can I force apt-get install to skip upgrading ca-certificates as the ...
1
vote
0answers
71 views

Is there a way to find out which process is setting a Linux kernel parameter to an invalid value at runtime?

I have set the kernel parameter fs.inotify.max_user_instances to 100000000, but it is automatically getting set to 1256 after a while. Is there some way to figure out which process is setting it to ...
0
votes
1answer
385 views

Difference between running a process as root and running process with all the linux capabilities

I have a docker container which runs perfectly fine in a kubernetes pod when privileged:true is set in the specification. But when I run the same docker container, by giving all the linux capabilities,...
3
votes
0answers
452 views

Failed writes after a while on mounted nfs volume

I have mounted an nfs drive on the machine. I can see it with the following command: $ df -aTh | grep nfs … unrelated volumes … 10.200.30.100:/export/pvc-70..1d nfs4 976M 2.0M 907M 1% /var/lib/...
0
votes
1answer
1k views

iptables priority

After deploying all kubernetes ressources I wanna open port 443. I added it to my whitelist table but it is still closed. Same already happened to me for port 80. After flushing all tables, deleting ...
0
votes
1answer
211 views

Match exact string in column on bash

I have situation below, but I want only that column two is only READY and nothing else. kubectl get nodes | grep "\<Ready\>" 10.5.0.11-c76ed Ready,SchedulingDisabled 10.7.0.13-d5bba ...
0
votes
1answer
389 views

Atomic Fedora failed to parse kernel config

i try to setup kubernetes cluster on atomic fedora. I tried atomic fedora 27, 28 and 29 but I am facing same error on every release. Running kubeadm init ends with following error: failed to parse ...
0
votes
0answers
117 views

Accessing a Kubernetes service using nodePort from external load balancer

When I expose the kubernetes service using nodePort , then I can access the port/service using any workder node IP:PORT , even if the service is just actually running on just one node. What would be ...
1
vote
2answers
3k views

virtualbox - The character device /dev/vboxdrv does not exist

Im trying to install and run minikube, and to do this I need to install virtualbox. Im trying to install virtualbox on Ubuntu 18.04. I already had virtualbox installed, but when I would try to run ...
3
votes
1answer
820 views

kops unable to deploy elb for ingress controller

i am unable to deploy nginx ingress in kops 1.9 in aws with this kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml kubectl apply -f https://raw....
1
vote
1answer
335 views

What does cross-socket traffic mean?

When reading this Kubernetes blog post about Intel's CPU manager it mentions that you can avoid cross-socket traffic by having CPUs allocated on the socket near to the bus which connects to an ...
0
votes
1answer
154 views

jenkins behind nginx in kubernetes

I have a jenkins server behind a Kubernetes (AWS ELB - NGINX proxy ). When I try to trigger a remote job using curl it fails: # curl -X POST -H "$CRUMB" "https://jenkins:add91b3fefefefefef@jenkins....
0
votes
0answers
1k views

How can I put the /user.slice under the /system.slice?

When running a Kubernetes cluster, it is recommended that /user.slice resides under the SystemReserved top level cgroup (i.e. under /system.slice). According to the systemd.slice documentation, a ...
1
vote
3answers
94 views

Mapping a word “foo” to a domain name “foobar.com”

I need to map a word "foo" to a domain name "foobar.com" So it should be able to run ping foo or curl it. alias foo='foobar.com' giving below issue. curl -k foo curl: (6) Could not resolve ...
1
vote
0answers
529 views

Can't use the resolution by name with kube-dns

I'm on a kubernetes cluster with 3 nodes that are all VM and they use to communicate a bridge that is an Only-Host interface: 192.168.99.101 master 192.168.99.102 and .103 the other nodes I have used ...
0
votes
1answer
407 views

Kubernetes tiller pod dying issue

My kubernetes is running on top of AWS, I am using helm for templating, the problem is my tiller pod keeps on dying every few hours when there is even not much load on the cluster. I am getting no ...