Questions tagged [kubernetes]

For questions about Kubernetes, an open-source system for automating deployment, scaling, and management of containerized applications.

Filter by
Sorted by
Tagged with
0
votes
2answers
29 views

Is a ReplicaSet pulling a fresh image at every spin up?

I inherited an app without a ton of handoff information, and there's a Kubernetes setup with ReplicaSets and KOPS (and based on Docker containers). I am pretty new to Kubernetes Whenever one of the ...
0
votes
0answers
8 views

Gitlab + Kubernetes on GCE + DIND - how to get access to docker subsystem in the cluster?

Preliminaries I am using Gitlab Community Edition 12.0.3, in which I have standard project admin permissions but no more. The installation only has few and slow CI runners, so I went and created a ...
0
votes
0answers
25 views

Permission denied connecting to Docker daemon socket under Jenkins with Kubernetes Plugin

I have a docker image that is built from the ubuntu image and all I add is gradle and openjdk11 My jenkinsfile defines the containerTemplate as this: podTemplate(label: 'java11builder', containers: [...
0
votes
1answer
11 views

Why do many pods fail to communicate with the master

I have lots of unexplained errors in kubernetes. Often I see errors in logs of pods with the following: Get https://10.152.183.1:443/api/v1/namespaces/{REDACTED}: x509: certificate is valid for 192....
0
votes
0answers
24 views

“NetworkPlugin cni failed to set up pod” error when deploying Pod, while Deployment work

For testing purpose, I want to keep things simple and run a Python Docker image on Kubernetes. So I used a Pod as smallest unit, based on the official template from the Kubernetes docs: apiVersion: ...
1
vote
0answers
21 views

“Error: forwarding ports: Upgrade request required” Error in helm of a kubernetes cluster

I have a kubernetes cluster built using kubespray and imported to Rancher. The nodes are configured with CentOS Linux 7 3.10.0-957.12.1.el7.x86_64 Docker version : 18.9.5 Kubelet version : v1.14.1 ...
0
votes
1answer
43 views

kubernetes statefulset - communicate addresses of other pods when pod launches?

Is there some metadata that I can apply, or some DNS that I can query, such that when a pod is started, the addreses of all the other pods in that statefulset will be somehow made available to the ...
0
votes
0answers
30 views

Docker ps shows a container that doesn't exist anymore

When I run docker ps I get a container ID that doesn't exist anymore. docker inspect and exec give me the Error: no such object message, and when I go to /var/lib/docker/containers/ there's no folder ...
0
votes
0answers
18 views

Jenkins: Managing Multiple Environment Configuration and Deployments

I am working on a product where we have 3 dev teams. 1 for UI and 2 for backend. Each team requires a complete env for their own testing. There 10+ backend services and many more other components and ...
0
votes
0answers
30 views

kubernetes service's dns not resolved inside cluster

i have setup a Service on my cluster, but can access it from pods only with the ip:port that are specified in the "Endpoints:" of the service. Instead i would like to use my-service.default.svc....
0
votes
0answers
13 views

Jenkins Kubernetes agent: multiple containers on dynamic agent pod - jnlp connection refused

so, I have a jenkins Master behind an Nginx reverse proxy on a GCP VM machine, and a GKE kubernetes cluster on which I need to have a dynamic slave pods. the pod has to have as an addition to the ...
0
votes
0answers
61 views

kubernetes - custom downscale stabilization delay per Horizontal Pod Autoscaler

I need to be able to set a custom downscale stabilization delay per HPA but i can only find a way to apply this delay to the cluster level with --horizontal-pod-autoscaler-downscale-stabilization "...
1
vote
1answer
24 views

Does K8s ClusterIP service supports custom timeout?

Report from Stack Overflow due to off-topic Base knowlege Since this question deals particularly with various timeouts configuration in Nginx, I thought giving their references here would make it ...
0
votes
1answer
16 views

Deploying a pod per REST request?

Is it possible to deploy 1 pod per each REST request? My process starts up in .004s and is about 1GB in size. After the REST request completes the pod will terminate. Given that I'd like to deploy ...
0
votes
0answers
10 views

Kubeadm ignores podSubnet from configfile

I use Kubernetes 1.14.2 on Centos 7.6 with Weave as Network-Plugin. I created my kubernetes cluster with kubeadm init --config kubeadm-config.yaml with the following config (here a screenshot ...
0
votes
1answer
33 views

Deploying Anchore to Kubernetes Cluster using Helm

Kubernetes version 1.14.2 (Client) 1.14.1 (Server) Anchore Chart anchore-engine.1.0.5 App Version 0.4.0 I'm trying to deploy Anchore via Helm to a Kubernetes cluster, but I'm getting failures in ...
0
votes
0answers
30 views

limit prometheus alert to kubernetes nodes of a specific label

I am working to build an alert rule that is basically "When number of running pods is greater than cluster_pod_capacity - single_node_capacity" sum(kubelet_running_pod_count) > sum(...
1
vote
0answers
80 views

Kubernetes metric or command to show liveness delay time (app startup time)

HTTP Kubernetes liveness and readiness checks are configured as per the documentation. The initialDelaySeconds field tells the kubelet how long it should wait before performing the first liveness / ...
1
vote
1answer
36 views

Interacting with a Trident container (NetApp) via CLI within a Openshift/Kubernetes cluster?

Background We're currently using NetApps Trident PV (Persistent Volume) orchestrator to dynamically create volumes on our NetApp ONTAP clusters for Pods running within our Openshift/Kubernetes ...
0
votes
1answer
50 views

Increase Kubernetes Nginx Ingress limits for large images in Docker registry

When pushing images to a self hosted Docker registry installed using their official helm chart, this works for some images. But for one image, I'm not able to push two layers. Docker retry it several ...
0
votes
0answers
37 views

connect_write timeout - Fluentbit (Processor), Fluentd (Aggregator) and Elasticsearch in Kubernetes

I'm having some troubles with setting up ElasticSearch with Fluentd and Fluentbit for log aggregation. I'm using the following chart: https://github.com/helm/charts/tree/master/stable/elastic-stack ...
1
vote
1answer
17 views

How to have kubernetes (re)build containers on deployment similar to openshifts ImageStream

I am currently investigating how to manage the containers for our new data-processing pipeline. What I would like to do is to be able to have whatever tool I choose rebuild the docker images when I ...
1
vote
1answer
234 views

How to solve 'upstream connect error or disconnect/reset before headers. reset reason: connection termination' in Istio?

I try to setup an aws load balancer (ELB) with SSL follow the instruction at #6566 Certificate was attached on ELB. However, I got the issue "upstream connect error or disconnect/reset before ...
0
votes
0answers
17 views

Construct kube/config for kubectl from ca.crt, namespace, serviceAccount token in the pod

kubectl needs a config file to connect to the api-server. It is typically stored at ~/.kube/config I have a pod in my cluster. It has the kubectl binary # ls -al /usr/local/bin/kubectl -rwxr-xr-x ...
0
votes
0answers
38 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 ...
1
vote
0answers
21 views

Kubernetes scheduler trying to assign pods to node that no longer exists

I had a node get automatically removed from our kubernetes cluster by the autoscaler. However, it appears the scheduler didn't get the memo, and it's still trying to assign pods to the dead node: ...
1
vote
0answers
21 views

Deis Workflow Alternative

We're looking to build an internal Heroku-like PaaS that supports clustering and a DFS. We found Deis Workflow that seems to do exactly what we're looking for, but the project has since been ...
0
votes
0answers
397 views

helm - cannot get resource “namespaces” in API group

I installed Kubernetes, helm on the Ubuntu 16.04.6 Box, I want to deploy kubernetes-dashboard using helm but getting below error while installing it $ helm install stable/kubernetes-dashboard --name ...
0
votes
1answer
14 views

use different kubectl configs in different terminal sessions

If I run kubectl get svc, it seems to be the same across terminal sessions - how can use a local configuration that's only loaded for my current terminal session? If the answer is a local config file ...
0
votes
0answers
16 views

How does Joyent ContainerPilot stand vs Kubernetes?

We are at the point of laying out a major healthcare interoperability project based on docker. Think of this as hundreds of systems (of the same type, but different versions), sending hundreds of ...
0
votes
0answers
5 views

How to add customer headers to Openshift Web Console HTTP responses?

A vulnerability auditing to our IT infrastructure found that responses from Openshift Web Console didn't have Strict-Transport-Security and X-XSS-Protection HTTP headers, and recommended that we ...
0
votes
0answers
31 views

Create a Cronjob in Spinnaker

I created a cronjob using kubectl. I would like to manage this job using Spinnaker, but I can't find my created job. This cronjob looks like this: apiVersion: batch/v1beta1 kind: CronJob metadata: ...
0
votes
1answer
33 views

Kubernetes multi cloud

I'm exploring doing kubernetes on a multicloud setup the configuration I want is a master connected to nodes in multiple cloud platforms. In my limited research I haven't found many tools to make this ...
0
votes
0answers
34 views

How to install Jenkins X platform on Kubernetes

I'm newbie in Kubernetes and I have installed Jenkins X platform on the cluster. I have installed it on kubernetes --on-premise. The instellation get stuck in this step. "waiting up to 0s for the ...
0
votes
1answer
53 views

How to run/deploy devilbox (Docker image) docker-compose on GCP without a Dockerfile?

Devilbox comes with a docker-compose file to run a docker container: https://github.com/cytopia/devilbox However, on the GCP Kubernetes Engine it is only possible to start up a new container via a ...
1
vote
1answer
27 views

Why label k8s deployment?

In the below deployment yml, the deployment itself has a label "app: hello". What would happen if I delete that line (line 6)? I understand the functional need for pods to be labeled, because then ...
0
votes
0answers
19 views

How to shrink k8s node pool (GKE) and underlying stateful set in an orderly way

I have an ElasticSearch cluster running in GKE in a dedicated node pool. I want to shrink the size of the ElasticSearch cluster in an orderly way. The steps I'd like to follow are: Drain specific ...
0
votes
0answers
12 views

Virtual Switching Sanity Check - BGP

I have a home Kubernetes cluster that runs in 4 VMs on top of Proxmox. Proxmox is tagged to VLAN 20, the Kubernetes VMs are tagged to VLAN 40. The Kubernetes VMs are BGP neighbors of my router so ...
0
votes
1answer
27 views

How to choose appropriate number of replica sets for kubernetes

I have just started learning about kubernetes and its concepts, so sorry if this is a lame question, however, I cannot seem to find the answer anywhere. I understand that a node is a VM or a physical ...
0
votes
0answers
22 views

POST larger than 400 Kilobytes payload to a container in Kubernetes fails

I'm using EKS (Kubernetes) in AWS and I have problems with posting a payload at around 400 Kilobytes to any web server that runs in a container in that Kubernetes. I hit some kind of limit but it's ...
0
votes
0answers
80 views

Kubernetes ServiceAccount token rotation

Does Kubernetes automatically rotate the service account token? https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/ I couldn't find much on Google. Thanks
0
votes
0answers
167 views

Create MariaDB/MySQL HA Cluster on Kubernetes using master-master replication

I want to deploy high avaliable web apps that require a MySQL database on a multi note Kubernetes cluster. Having never deployed any SQL cluster, I learned that there are master-master and master-...
3
votes
1answer
168 views

How to use same Helm dependency in many charts?

For example, I have this charts structure: ├── parentChart │   ├── charts │   │   ├── childChart1 │   │   │   ├── charts │   │   │   │   └── postgresql-3.11.6.tgz │   │   │   ├── Chart.yaml │   │   │ ...
0
votes
1answer
92 views

External access to internet from Kubernetes Pods

I'm having troubles with network access from pods. I had installed new Kubernetes cluster with flannel-network plugin, Checking the health of server - good. I tried to check network via busybox: ...
4
votes
2answers
257 views

Automate Helm's tiller installation with Terraform

I need to be able to generate disposable kubernetes environments using terraform. These environments should use helm for application deployment and ideally have tiller installed during the terraform ...
0
votes
0answers
9 views

How to segment Pods in firewall zones in bare metal Kubernetes?

We are introducing a K8 cluster into our existing, segmented environment and are trying to find a way to host Pods in different firewall zones from a central cluster (akin to ESX hosts that get access ...
0
votes
1answer
130 views

error validating data: ValidationError(Deployment): unknown field “spec” in

I know that yml files are temperamental and I still struggle to figure it out. Can anyone help out here to understand what is it about my client-deployment.yml file that makes Kubernetes want to issue ...
0
votes
0answers
120 views

Using application config file kubernetes configmap for mongodb failed when pod is deployed

Using helm to create my own chart to deploy an instance of mongodb on kubernetes cluster, I am using a custom configmap for having my own mongo configuration. My config map is looking like this: {{- ...
4
votes
2answers
423 views

Copy multiple files using * wildcard from kubernetes container

I have several files named out1, out2, ... in my Kubernetes container. I want to copy them to my local computer. I am using: $ kubectl cp pod:/path/out* . But I am getting an error: tar: Removing ...
0
votes
0answers
27 views

How to run mongoconnetor in kubernetes

I run mongo cluster and elasticsearch cluster and want to connect them by mongoconnector or transporter. for mongoconnector i find docker run -d --link=mongo:mongo --link=elasticsearch:...