Questions tagged [kubernetes]

KUBERNETES QUESTIONS MUST BE SPECIFICALLY RELATED TO SOFTWARE DEVELOPMENT. Configuration and deployment is off-topic here. A good rule of thumb is, if it happens outside the pod, it's probably off-topic. If it's about code running inside the pod, it's probably OK.

Kubernetes is a system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications. Its APIs are intended to serve as the foundation for an open ecosystem of tools, automation systems, and higher-level API layers. Kubernetes can run on various cloud providers, on premises in VMs, or on bare metal machines.

Getting started

Books

Online Courses

57333 questions
13
votes
1 answer

Kubernetes Ingress Controller without Load Balancer

Is it possible to use the Ingress Controller function in Kubernetes without a load balancer (in Digital Ocean). Is there any other mechanism to allow a domain name to map to a Kubernetes service; for instance if I host two WordPress sites on a…
Rutnet
  • 1,533
  • 5
  • 26
  • 48
13
votes
2 answers

How to order pods based on the nodes in kubernetes

I have a kubernetes cluster working perfectly fine. It has 5 worker nodes. I am using below command to get the status of pods. kubectl get pod -o wide --namespace=machines which shows below results NAME READY STATUS …
S Andrew
  • 5,592
  • 27
  • 115
  • 237
13
votes
2 answers

How to get Kubernetes Ingress Port 80 working on baremetal single node cluster

I have a bare-metal kubernetes (v1.11.0) cluster created with kubeadm and working fine without any issues. Network with calico and made it a single node cluster using kubectl taint nodes command. (single node is a requirement). I need to run…
sithumc
  • 3,254
  • 8
  • 27
  • 46
13
votes
2 answers

Exposing a service in Kubernetes using nginx reverse proxy

I am new to Kubernetes and wanted to understand how I can expose a service running in Kubernetes to the outside world. I have exposed it using a NodePort on the cluster. So, for example: A service exposes port 31234 on the host and I can get to the…
devops84uk
  • 691
  • 2
  • 6
  • 20
13
votes
1 answer

Trying to create a Kubernetes deployment but it shows 0 pods available

I'm new to k8s, so some of my terminology might be off. But basically, I'm trying to deploy a simple web api: one load balancer in front of n pods (where right now, n=1). However, when I try to visit the load balancer's IP address it doesn't show…
Slothario
  • 2,830
  • 3
  • 31
  • 47
13
votes
4 answers

error: the server doesn't have resource type "svc"

Admins-MacBook-Pro:~ Harshin$ kubectl cluster-info Kubernetes master is running at http://localhost:8080 To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. error: the server doesn't have a resource type "services" i am…
Harshin_
  • 431
  • 2
  • 5
  • 6
13
votes
2 answers

spark over kubernetes vs yarn/hadoop ecosystem

I see a lot of traction for spark over kubernetes. Is it better over running spark on Hadoop? Both the approaches runs in distributive approach. Can someone help me understand the difference/comparision between running spark on kubernetes vs Hadoop…
Premchand
  • 709
  • 2
  • 7
  • 13
13
votes
1 answer

Is there a kubernetes cronjob kind which allows multiple schedules for a single container image?

If one has an image with a number of different executables, is it possible to have multiple cron entries with different commands that run at different times in the same kubernetes deployment. e.g. For some single container image named "jolly-roger",…
Rich
  • 3,781
  • 5
  • 34
  • 56
13
votes
2 answers

Kubernetes service - Loadbalancer with HTTPS

I am using Kubernetes with service as ClusterIP and placing ingress in front of the service to expose this to outside the Kubernetes cluster. Running ingress with https and to make it https, I created the secret and using the same in…
user1578872
  • 7,808
  • 29
  • 108
  • 206
13
votes
2 answers

Spark on K8s - getting error: kube mode not support referencing app depenpendcies in local

I am trying to setup a spark cluster on k8s. I've managed to create and setup a cluster with three nodes by following this article: https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ After that when I tried to deploy spark on the…
garfiny
  • 158
  • 9
13
votes
2 answers

Use of Skaffold using Minikube without registry

I came across Skaffold, trying to streamline local Docker image development. We basically want to be able to quickly iterate on an image and deploy it using an existing stable helm chart version. In the documentation it…
mitchkman
  • 6,201
  • 8
  • 39
  • 67
13
votes
4 answers

How to setup up DNS and ingress-controllers for a public facing web app?

I'm trying to understand the concepts of ingress and ingress controllers in kubernetes. But I'm not so sure what the end product should look like. Here is what I don't fully understand: Given I'm having a running Kubernetes cluster somewhere with a…
Jens Kohl
  • 5,899
  • 11
  • 48
  • 77
13
votes
2 answers

Kubernetes Unable to mount volumes for pod

I'm trying to setup a volume to use with Mongo on k8s. I use kubectl create -f pv.yaml to create the volume. pv.yaml: kind: PersistentVolume apiVersion: v1 metadata: name: pvvolume labels: type: local spec: storageClassName: standard …
Philip Kirkbride
  • 21,381
  • 38
  • 125
  • 225
13
votes
3 answers

Kubernetes fails to run a docker image build locally

I am trying to run a docker image that I have build locally with Kubernetes. Here is my command line: kubectl run myImage --image=myImage --port 3030 --image-pull-policy=IfNotPresent I have seen many peoples saying that we need to add the…
Ludo
  • 5,060
  • 15
  • 53
  • 85
13
votes
4 answers

Cannot create cluster role in GKE even though I am owner and admin

After creating a new GKE cluster, creating a cluster role failed with the following error: Error from server (Forbidden): error when creating "./role.yaml": clusterroles.rbac.authorization.k8s.io "secret-reader" is forbidden: attempt to grant extra…