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
1
vote
0answers
66 views

How to setup external service (keycloak) to protect an app in kubernetes?

I have a java application protected by keycloak (that's an standalone application for session control which runs on port 9080). Keycloak is available to world because during auth process, my app ...
0
votes
1answer
142 views

Consul Helm chart: Connect Injector service not working

Below is my config that I am applying over the latest version of the chart (0.4.0). The consul client daemonset pods come up and successfully register with the cluster. The connect injector webhook ...
1
vote
0answers
141 views

running httpd and nginx in the same pod kubernetes

I am not able to run both apache (httpd) and nginx in the same pod. Indeed both containers are running on port 80. # kubectl logs -f multi-container -c apache (98)Address in use: AH00072: make_sock: ...
1
vote
1answer
20 views

What does mapping in yml file means?

I am not sure what mapping in YAMl file means, can someone advise what does mapping in YAML file means?
7
votes
1answer
79 views

Access service in remote Kubernetes cluster using ingress

I'm attempting to access a service in an existing kubernetes cluster deployed in a remote machine. I've configured the cluster to be accessible through kubectl from my local mac. $ kubectl cluster-...
0
votes
2answers
75 views

How do I deploy an applications to Kubernetes with Minikube?

I would like to do something like this, but all Kubernetes quickstart demos are just for deploying a simple applications and not multiple. How would I create a yaml file that can deploy multiple ...
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
43 views

How do you deploy Kubernetes to AWS with conjure-up (and not EKS)?

I am using Ubuntu 18.04 in AWS. I am trying to deploy a Kubernetes cluster with "conjure-up kubernetes". This has worked in the past to create EC-2 instances with Kubernetes. After I run the above ...
0
votes
0answers
242 views

Permission issue with Persistent volume in postgres in Kubernetes

I know this question has been asked repeatedly but not fully answered. I have a postgres running in as root user in a container which is using the persistent volume. But it seems like there is ...
1
vote
1answer
479 views

how to stop and start kubernetes cluster

I have launched kubernetes cluster using kubeadm with 1 master and 2 worker node. Is there any safe way to stop and start the entire cluster without disturbing deployments. If I restart the master ...
1
vote
1answer
192 views

AWS EKS CronJob resource not found

I have an Amazon EKS Kubernetes cluster and have the need to run a CronJob on it. However, when I published the manifest to k8s, the object is there, I can list it, get it, but I cannot describe it ...
1
vote
1answer
36 views

Proper way to showcase multi-container web app to customers

I have a web app consisting of multiple services (authentication service, database, main web app..), and each of these services can run in container. Currently, when a customer ask for a demo, I am ...
0
votes
0answers
45 views

K8s pod hangs when starts with volume

I am learning how to use volume with pods in K8s. I tried the exact example here. This is the snippet apiVersion: v1 kind: Pod metadata: name: test-pd spec: containers: - image: k8s.gcr.io/...
0
votes
0answers
31 views

skaffold: does not update image tags if tags are specified already (for local development)

In all our Kubernetes deployment manifests, I specify the image and the tag (such as image_name:v0.1.2). This is great for production, as I know exactly which version is running, and can revert to ...
1
vote
1answer
143 views

How to specify a filter for Kubectl -o flag=custom-column

I want to use kubectl get -o=custom-columns to extract information with specific columns. The cropped yaml response is like this { "apiVersion": "v1", "items": [ { "...
-3
votes
1answer
84 views

Access database deployed in kubernetes [closed]

I have created created a kubernetes cluster with 1 master and 2 nodes in our data centre and deployed a postgres database in it. I would like to access database with with Pgadmin
1
vote
1answer
733 views

Keep getting permissions error gcloud.container.clusters.get-credentials

I am trying to integrate CircleCi with gcloud Kubernetes engine. I created a service account with Kubernetes Engine Developer and Storage Admin roles. Created CircleCi yaml file and configured CI. ...
0
votes
0answers
45 views

Kubernetes cluster on top of etcd cluster

I have a K8s-cluster of five bare-metal machines running CoreOS. As the reboot strategy on update, I'd like to use the etcd-lock (https://coreos.com/os/docs/latest/update-strategies.html), as I have ...
1
vote
0answers
18 views

Deprecation errors using run to test an nginx container in Kubernetes v1.3.6

I'm getting deprecation errors while trying to run a couple of nginx pods bash-4.4$ kubectl run nginx --image=nginx --port=80 --replicas=3 WARNING: New generator "deployment/apps.v1beta1" specified, ...
2
votes
0answers
176 views

Kubernetes auto scaling in cloud environment

Anyone knows if there is a solution to provision (non-managed) autoscaling Kubernetes clusters in the cloud? I am looking for a generic solution that will work in any public cloud and in private data ...
1
vote
1answer
105 views

Tfs octopus migration to k8s and docker

My current client uses .net and .net core, tfs and deploys via octopus. They want to use helm, k8s and docker. With all of the environments, env variables are already in octopus. I am thinking to ...
0
votes
0answers
220 views

How to clean up disk space for Azure Kubernetes Node?

I followed this tutorial to create a Kubernetes cluster on Azure to run build agents: http://www.chrisjohnson.io/2018/07/07/using-azure-kubernetes-service-aks-for-your-vsts-build-agents/ To recap ...
0
votes
2answers
44 views

Pod & pod's health

Few questions here: What does the concept of object Pod satisfy? A paused container containing the namespace for the actual app area (s) will be added later and use that namespace. So what activities ...
0
votes
0answers
168 views

How to annotate ingresses for traefik to generate Let's Encrypt certificates?

I am using traefik as an ingress-controller and want to serve other ingresses via auto-generated Let's Encrypt certificates and enforce SSL. I set up traefik with it s official helm chart like this: ...
0
votes
2answers
51 views

nodes in a kubernetes cluster in azure unable to communicate with one another

I'll start off by saying I'm not really an infrastructure person, but am being required to maintain it until we hire someone more suited to it, so apologies if I have any terminology wrong. We have a ...
0
votes
1answer
15 views

Route webhook to all replicas

Normally a request gets routed to one of the replicas. However, if each instance need to take some action when a webhook request comes in, how can I route the request to all replicas? Obviously only ...
0
votes
2answers
44 views

Change variable inside of project. Jenkins, docker, kubernetes

Because I am new in the DevOps, I don't know where I need to apply the changes to correctly run the project. The structure: Git → Jenkins → Docker build -> Kubernetes (deploy) Is it better to make ...
0
votes
0answers
107 views

Jenkins Kubernetes Rancher, how to do a CI with these tools

I'm new with Rancher and Kubernetes and I have some know how of Jenkins. The point is that I don't know how to do a continuous integration of my apps with Rancher and Kubernetes. Is good to use ...
1
vote
1answer
156 views

Amazon EKS: using spot instances for worker nodes

When using AWS EKS, is it possible to set up the worker nodes on spot instances? how? Anything I special I should pay attention to, in such a setup?
0
votes
0answers
50 views

How important is it to configure a CA for a Kubernetes cluster?

Our IT department have setup a Kubernetes cluster for our development work using kops, and we've run kube-bench on it to see what security issues need to be addressed. Currently there's a lot of ...
0
votes
1answer
97 views

What are some good Kubernetes training courses? [closed]

I'm looking for Kubernetes training online or in person. What are some good training courses to take?
3
votes
1answer
787 views

Kubernetes - unable to login to Dashboard

I have installed Kubernetes using AWS Minikube scripts - https://github.com/scholzj/aws-minikube After installation I am trying to run kubectl proxy But I am getting this https:kubernetes-...
2
votes
1answer
83 views

Autoscaling with Kubernetes daemonset

I have a Kubernetes cluster running on Google Compute Engine. My program uses stateful connections, so I do not want my pods being moved between nodes. Because of this, I am running my workload as ...
0
votes
0answers
101 views

Can ping service by its DNS x.x.svc.cluster.local but failed pinging by IP

From inside the pod: dig postgres.default.svc.cluster.local ;; QUESTION SECTION: ;postgres.default.svc.cluster.local. IN A ;; ANSWER SECTION: postgres.default.svc.cluster.local. 5 IN A 10.10....
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
453 views

Multiple Ingress controllers in Kubernetes

We currently have at our company a Kubernetes cluster with an ingress controller that manages the traffic of the services and their endpoints. We want to change our URL gradually, first add the new ...
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
0answers
115 views

how to setup authentication for kubernetes dashboard ?

how to setup authentication(username/Password) for kubernetes dashboard ? I have checked Securing the Kubernetes and Authentication using a token Token based Authentication can be done but can we ...
2
votes
2answers
68 views

How to install a private managed Kubernetes on-premise?

Where do you start in case you need something like a managed Kubernetes solution to setup a multi-tenant orchestration solution on-premises? Any entity with its own container infrastructure has an ...
0
votes
0answers
49 views

How to safely change the config and restart a persistent ELK cluster with helm - GlusterFS Heketi

I am using this helm chart to manage my ELK stack on Kubernetes. https://github.com/clockworksoul/helm-elasticsearch I want to upgrade the config and keep my data intact. We use glusterfs and it is ...
1
vote
1answer
643 views

Stolon vs CrunchyData for HA Postgresql

I'm using helm charts with kubernetes and I'm trying to deploy High Availability Postgresql database and found this article mentioning three project that provide HA Postgresql: 1- Stolon 2- ...
3
votes
1answer
79 views

Control order of container termination in a single pod in Kubernetes

I have two containers inside one pod. One is my application container and the second is a CloudSQL proxy container. Basically my application container is dependent on this CloudSQL container. The ...
0
votes
1answer
106 views

Using Google IAM for GKE service web access

I am hosting an application on GKE and would like to be able to let users from my organization access this application from the web. I would like them to be able to log-in using their Google Account ...
2
votes
2answers
96 views

Kubernetes Deployments & Rollbacks

At the moment I'm performing Kubernetes deployments by applying deployment.yaml then updating the container/pod image versions with kubectl set-image as outlined in the docs. I'm doing this using ...
0
votes
0answers
62 views

How to detect exception occured in a Pod in Kubernetes?

I have a multinode kubernetes cluster. Multiple services are deployed as Pods. They communicate over each other via rabbitmq which also exists as Pod in the Cluster. Problem Scenario: Many time ...
0
votes
0answers
76 views

How to do Rancher 2.0 Node Scheduling Priority Settings?

Does anyone have experience with Rancher 2.0 priority scheduling? I would like to make sure certain containers are running over others. If I add scheduler, priority and priority class name, nothing ...
1
vote
1answer
2k 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 ...
5
votes
3answers
89 views

What is the recommended way to monitor differences between multiple Kubernetes namespaces/clusters?

Given a Kubernetes cluster with two namespaces; what is the recommended way to monitor and sync differences in configmaps, deployments, ingresses etc. between the namespaces?
2
votes
1answer
24 views

How to update pods if version hasn't changed?

During development we are continually building a Docker image with the same version (say 0.0.1-development) as there is no need to bump for each minor change. We do eventually bump when additional ...
3
votes
0answers
685 views

Kubernets docker registry behind nginx-ingress

I try to setup docker-registry in Kubernetes cluster behind the nginx-ingress controller. The issue is, when I try to push the image into private registry, it tells me: Get https://registry.local/...