Questions tagged [kubernetes]

Kubernetes is an open source container cluster manager.

Filter by
Sorted by
Tagged with
0
votes
1answer
8 views

Kubernetes check port opened

My container use tomcat application server and take about less than 10 second to open port 8080 . is there any way on kubernetes LoadBalancer to check port opened before forward requests to that ?
0
votes
2answers
18 views

kubernetes replicaSet shutdown policy

Kubernetes use TERM signal on count down replicaSet . this is so dangerous for my application . I use Tomcat application server and this application server has own shutdown mechanism for terminating ...
1
vote
1answer
31 views

Kubernetes node error sync pod

I installed kubernetes on Ubuntu server 20.04 . Master configured with flannel network without any problem . Initialize command: kubeadm init --pod-network-cidr=10.10.10.0/24 --apiserver-advertise-...
0
votes
1answer
84 views

Ansible with Kubernetes: create k8s secret with ansible

I try: # task - name: Add ldap oauth query password k8s: state: present definition: "{{ lookup('file', 'openshift-config/secrets/ldap-bind-pw.yaml.j2') }}" kubeconfig: "{{ ...
2
votes
1answer
257 views

How to install containerd on Debian?

As the docker daemon gets deprecated in the future Kubernetes version 1.20, I just wanted to start a test installation of a kubernetes cluster with containerd. I am trying to install a new cluster ...
0
votes
0answers
9 views

Distributed Filesystem for container instances like MySQL/Mariadb

I'm looking for a suitable distributed POSIX compatible replicated block filesystem as the persistent volume for DB container instances. My first intent was to use GlusterFS, but according to the ...
0
votes
0answers
12 views

How to clear all the MAILER-DAEMON messages from a kubernetes pod postfix queue

There is a domain foo.com which causing a lot of mailer-daemon mails, so i would like to clear those mails from the kubernets pods postfix mail queue. i have wrote a script, but i'm not sure this is ...
1
vote
1answer
20 views

Traffic redirection question with Iptables

This is my first post! After tracing PREROUTING: kernel: TRACE: nat:PREROUTING:rule:1 IN=enp0s9 OUT= MAC=00:00:00:00:00...... OUT field is empty, what can i do? I would like to access the 200.10.50....
0
votes
1answer
66 views

How can I make the minikube dashboard answer on all ips 0.0.0.0?

minikube has a dashboard that I can view easily with minikube dashboard However, that only works if I run it on my own machine because it only answers on localhost, * Verifying dashboard health ... * ...
0
votes
0answers
351 views

Running 'systemctl daemon-reload' Has No Effect

I have scoured google for why this might be happening, but was not able to find an answer and thought I might get some insight here. I have a systemd service file that was installed via yum /usr/lib/...
0
votes
1answer
35 views

RHEL/CentOS Atomic Host Docker version is old

As you know current CentOS Atomic Host Docker version is 1.13.1 ... Do you recommend using this version in production environment? If not, should i update it or find another Docker Linux host? Note: I ...
0
votes
2answers
471 views

Kubernetes Failed to list *v1.ConfigMap: Get

I have a K8S cluster, 2 servers, 1 master, 1 worker and everything works fine. K8S version: 1.19.2 Calico: curl https://docs.projectcalico.org/manifests/calico.yaml -O // with the modify ...
0
votes
2answers
96 views

using yq to base64 encode k8s secret values

I have a simple secret.yaml file: env: USERNAME: user PASSWORD: pass i'm trying to use yq / jq to encode the values for creating k8s secret, so my final result should be: apiVersion: v1 kind: ...
0
votes
0answers
19 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
1answer
22 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
122 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
16 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
16 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
10 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
1answer
24 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 is no editor tool in the image, and I could not download one from the ...
-1
votes
1answer
502 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
183 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
3k 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
148 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
14 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
344 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
202 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
449 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
175 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
93 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
97 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 ...
-1
votes
1answer
11k 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
137 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. ...
1
vote
0answers
252 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
1answer
150 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
115 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 ...
1
vote
0answers
19 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
103 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
292 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
844 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
227 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
906 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
221 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
79 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
466 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
503 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
2k 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
248 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
464 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
120 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 ...