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
0answers
12 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
6 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 ...
4
votes
2answers
244 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
21 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
1answer
491 views

What setting to use for jenkins tunnel?

I am trying to run a jenkins system on my macbook for testing Jenkins is running in the mac "Docker Desktop" in Kubernetes, using a helm chart It has a Kubernetes slave set up with the Kubernetes ...
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
0answers
21 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: ...
4
votes
4answers
2k views

How to get kubernetes pod network CIDR

I have a running k8s cluster initialized with kubeadm. On initialization, I did not pass the option --pod-network-cidr How do I get the CIDR of the pod network I tried Looking at the /etc/...
0
votes
2answers
154 views

How to implement DTAP in k8s?

Dev, Tst, Acc, Prd (DTAP) is about isolating multiple environments to ensure that data will not be mixed, e.g. production data in development or lost, e.g. database removal removes all production data....
0
votes
1answer
41 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 ...
1
vote
1answer
23 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
0answers
29 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 ...
5
votes
2answers
15k views

How do I get Kubernetes to work when I get an error “the server could not find the requested resource”?

I cannot create a kubernetes pod. I just deployed Kubernetes to Ubuntu 16.04. I have this as a.yml: apiVersion: v1 kind: ReplicationController metadata: name: nginx spec: replicas: 2 selector:...
0
votes
1answer
46 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 ...
3
votes
2answers
59 views

Automatic Kubernetes deployments per Github pull-request

I'm looking for a tool/service that will achieve a similar result as Heroku Review Apps using Google services. When a new pull-request is created in Github: Create new Cloud Build trigger for it ...
1
vote
1answer
198 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 ...
1
vote
0answers
29 views

kubernetes - load balancing where ressources are available

I would like to know how could I set up a load balancer at the Kubernetes level so my services point to the pods that have more RAM/CPU resources available, and not randomly. It would be co-existing ...
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
1answer
25 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
11 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
44 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
33 views

Easiest way to manage an elasticsearch cluster in GCP?

I'm trying to create my own Elasticsearch cluster to use for security analytics. I'm familiar with the function and setup of a single instance deployment, but I'm having trouble figuring out the ...
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 ...
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 / ...
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
1answer
31 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 ...
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 ...
0
votes
1answer
47 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 ...
0
votes
0answers
30 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
0answers
33 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
0answers
44 views

What are the security loopholes closed by introducing Istio

My application consists of four microservices. (hr, salary, stock and employee). Users of the application access the "hr" service using http. To fulfill this request the hr microservice communicates ...
0
votes
0answers
99 views

How to intercept and redirect network communication inside docker containers?

I am fairly new to Docker-compose and have been tinkering around a bit. in the process, i came across a requirement where i need to close down external internet traffic, and redirect requests to ...
0
votes
1answer
93 views

Kubernetes - Internal only API Endpoints

Hypothetical question. Say we have a Java application running in a Kubernetes pod (single docker container) that has 'public' endpoints and 'internal' endpoints. The /public endpoints should be ...
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
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 ...
3
votes
1answer
82 views

Process auditing in containers

I've read numerous articles on this going back to 2013, but what I wasn't able to ascertain is whether a reliable method has yet been devised for auditing processes inside a container. This question ...
0
votes
1answer
26 views

What options are available to report the build status of Jenkins Multi Pipeline's first branch build on k8s to bitbucket-cloud?

Background The Bitbucket Status Notifier plugin has been configured. The status was reported, but since more and more jobs have been moved to Jenkins-on-steroids that is running on k8s, buildStats ...
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
18 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
338 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
13 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
30 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
143 views

etcd cluster is unavailable or misconfigured (kubernetes multi-master)

I am new to kubernetes and I am working on creating multi-master-kubernetes with 2 masters nodes. Could anyone explain why when I execute the command ETCDCTL_API=2 etcdctl member list, I get: etcd ...
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 ...
1
vote
1answer
1k views

Jenkins Pipeline Kubernetes Agent shared Volumes

I have a Jenkins Pipeline using Kubernetes Agent. I schedule multiple containers in my pod template. I recently wanted to add volumes that would be shared some of the containers and am having ...
1
vote
1answer
79 views

Keeping graphs of terminated Kubernetes pods in Prometheus/Grafana

I love using Prometheus/Grafana to monitor and tune resource usage on my Kubernetes clusters. When pods are terminated, however, the graphs are disposed of it seems. I am looking for a solution to ...