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
3 answers

Kubernetes AutoScaler Not Scaling, HPA shows target

I'm pretty new to kubernetes, not so much with docker. I've been working through the example but I am stuck with the autoscaler, (which doesn't seem to scale). I am working through the example here…
Matt The Ninja
  • 2,641
  • 4
  • 28
  • 58
13
votes
1 answer

Why ingress "servicePort" can be "port" and "targetPort" of service?

Today I confronted with a misunderstanding about servicePort. I expected that service can be linked with ingress specifying only servicePort: 80, but both servicePort: 80 and servicePort: 8080 works. Can someone help me to understand why both ports…
visortelle
  • 1,013
  • 1
  • 10
  • 15
13
votes
4 answers

Is there a way to not use GKE's standard load balancer?

I'm trying to use Kubernetes to make configurations and deployments explicitly defined and I also like Kubernetes' pod scheduling mechanisms. There are (for now) just 2 apps running on 2 replicas on 3 nodes. But Google's Kubernetes Engine's load…
interlude
  • 843
  • 8
  • 29
13
votes
4 answers

How to auto deploy Docker containers from Amazon ECR to Kubernetes using Jenkins

This is our environment: I have a Kubernetes cluster running on Amazon. Jenkins CI/CD running on Amazon that connects to a private GitLab and builds our services as Docker images. Amazon ECR that stores our Docker images. My questions: How can I…
MasoudSat
  • 130
  • 1
  • 1
  • 6
13
votes
2 answers

How can you reuse dynamically provisioned PersistentVolumes with Helm on GKE?

I am trying to deploy a helm chart which uses PersistentVolumeClaim and StorageClass to dynamically provision the required sotrage. This works as expected, but I can't find any configuration which allows a workflow like helm delete xxx # Make some…
user3125280
  • 2,779
  • 1
  • 14
  • 23
13
votes
1 answer

Kubernetes docker volume mounting option

I have a docker image with the option for property file like, CMD java -jar /opt/test/test-service.war --spring.config.location=file:/conf/application.properties I use the -v volume mount in my docker run command as follows. -v…
user1578872
  • 7,808
  • 29
  • 108
  • 206
13
votes
1 answer

How do I resolve /kubepods/besteffort/pod to a pod name?

I'm looking at Prometheus metrics in a Grafana dashboard, and I'm confused by a few panels that display metrics based on an ID that is unfamiliar to me. I assume that /kubepods/burstable/pod99b2fe2a-104d-11e8-baa7-06145aa73a4c points to a single…
erstaples
  • 1,986
  • 16
  • 31
13
votes
1 answer

Understanding kubeadm init command for flannel

To install kubernetes using flannel, one initially needs to run: kubeadm init --pod-network-cidr 10.244.0.0/16 Questions are: What is the purpose of "pod-network-cidr"? What's the meaning of such IP "10.244.0.0/16"? How flannel uses this…
testTester
  • 2,371
  • 3
  • 18
  • 22
13
votes
2 answers

Dockerfile is not a valid repository/tag: invalid reference format

I am receiving the "is not a valid repository/tag: invalid reference format" error when building an image on a jenkins agent. This error is generally known to occur when docker versions < 17.05 attempt to build a modern multi-stage dockerfile. The…
Peter Kneale
  • 1,854
  • 5
  • 19
  • 31
13
votes
2 answers

How to access MySql hosted with Nginx Ingress+Kubernetes from client

I am new to Kubernetes and Nginx Ingress tools and now i am trying to host MySql service using VHost in Nginx Ingress on AWS. I have created a file something like : apiVersion: v1 kind: Service metadata: name: mysql labels: app: mysql spec: …
Vivek Kumar
  • 515
  • 2
  • 6
  • 9
13
votes
6 answers

http -> https redirect in Google Kubernetes Engine

I'm looking to redirect all traffic from http://example.com -> https://example.com like how nearly all websites do. I've looked at this link with no success: Kubernetes HTTPS Ingress in Google Container Engine And have tried the following…
13
votes
1 answer

Kubernetes Minikube Docker trying and failing to pull image

I have a docker image called docker-hello-world - all it does is print Hello World to the log using the JRE. When tested it works fine. Then, I import an image into Kubernetes Docker and run – still no issues. docker images -a REPOSITORY …
Joel Werginz
  • 131
  • 1
  • 1
  • 5
13
votes
3 answers

Grafana HTTP Error Bad Gateway and Templating init failed errors

Use helm installed Prometheus and Grafana on minikube at local. $ helm install stable/prometheus $ helm install stable/grafana Prometheus server, alertmanager grafana can run after set port-forward: $ export POD_NAME=$(kubectl get pods --namespace…
online
  • 4,919
  • 10
  • 32
  • 47
13
votes
6 answers

How to change the cluster.local default domain on kubernetes 1.9 deployed with kubeadm?

I would like to resolve the kube-dns names from outside of the Kubernetes cluster by adding a stub zone to my DNS servers. This requires changing the cluster.local domain to something that fits into my DNS namespace. The cluster DNS is working fine…
Marcus
  • 159
  • 1
  • 1
  • 7
13
votes
1 answer

Kubernetes/kops: error attaching EBS volume to instance. You are not authorized to perform this operation. Error 403

I tested kubernetes deployment with EBS volume mounting on AWS cluster provisioned by kops. This is deployment yml file: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: helloworld-deployment-volume spec: replicas: 1 template: …
1 2 3
99
100