Questions tagged [kube-apiserver]

The main implementation of a Kubernetes API server is kube-apiserver. kube-apiserver is designed to scale horizontally — that is, it scales by deploying more instances. You can run several instances of kube-apiserver and balance traffic between those instances.

The kube-apiserver validates and configures data for the API objects which include pods, services, replicationcontrollers, and others.

The API Server services REST operations and provides the frontend to the cluster's shared state through which all other components interact.

132 questions
36
votes
3 answers

Where is kube-apiserver located

Base question: When I try to use kube-apiserver on my master node, I get command not found error. How I can install/configure kube-apiserver? Any link to example will help. $ kube-apiserver --enable-admission-plugins DefaultStorageClass -bash:…
raj_arni
  • 959
  • 2
  • 15
  • 29
23
votes
4 answers

Check if the feature gate is enabled /disabled in kubernetes

In Kubernetes , is there a particular way I can check if a specific feature-gate is enabled/disabled. Say, I want to check if MountPropagation feature is enabled in my cluster. How do I do that.
ambikanair
  • 4,004
  • 11
  • 43
  • 83
12
votes
4 answers

How can kube-apiserver be restarted?

I restarted my system today. After that my main system and the web browser are not connected to look for a kubernetes GUI. When I ran the command systemctl status kube-apiserver.service, it gives output as shown below: kube-apiserver.service …
Deepak Nayak
  • 157
  • 1
  • 1
  • 7
9
votes
2 answers

Easily detect deprecated resources on Kubernetes

We've just received an e-mail from GCP informing us that our clusters are currently using deprecated Beta APIs and that we need to upgrade to the newest API version. We have 3 clusters running multiple resources in multiple namespaces so it would be…
Mauricio
  • 2,552
  • 2
  • 29
  • 43
8
votes
1 answer

Kubernetes API server --bind-address vs --advertise-address

According to the referrence, two of the options kube-apiserver takes are --bind-address and --advertise-address It appears to me that they conflict each other. What is/are the actual difference(s) between the two? Is --bind-address the address that…
Iresh Dissanayaka
  • 483
  • 1
  • 4
  • 18
8
votes
0 answers

kube-apiserver - invalid bearer token, Token has been invalidated

When I try to start kube-apiserver I get following logs: I1215 14:18:23.130968 1 controller.go:83] Starting OpenAPI controller I1215 14:18:23.131021 1 customresource_discovery_controller.go:208] Starting DiscoveryController I1215…
pixel
  • 24,905
  • 36
  • 149
  • 251
6
votes
1 answer

How Do I Properly Set --kubelet-certificate-authority apiserver parameter?

I am using KubeSpray to provision a two node cluster on AWS. By default, the --kubelet-certificate-authority parameter is not used. However, I would like to set it. I do not know the correct setting for --kubelet-certificate-authority. When I set it…
David Medinets
  • 5,160
  • 3
  • 29
  • 42
5
votes
3 answers

List Kubernetes resources by apiVersion

Is there a easy way to list all kubernetes objects related to an API version? Lets say, API version apps/v1beta1 is getting deprecated and I want to know if I have any objects in my cluster using this version, how can I find such objects?
Harshal Shah
  • 587
  • 4
  • 14
5
votes
1 answer

K8S: convert "kubeadm init" command-line arguments to "--config" YAML

Background I'm attempting to configure a cluster via kubeadm. I normally create the (test) cluster via: sudo kubeadm init --pod-network-cidr 10.244.0.0/16 This parameter appears to eventually find its way into the static pod definition for the…
Hunter
  • 53
  • 1
  • 4
5
votes
1 answer

Enable access to Kubernetes Dashboard without kubectl proxy

If I move a relevant config file and run kubectl proxy it will allow me to access the Kubernetes dashboard through this URL: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/ However if I try to access…
Liz Av
  • 2,864
  • 1
  • 25
  • 35
4
votes
1 answer

How to get the last applied timestamp of a secret in kube api

I want to get the last time a secret was modified via the kube api. I cannot seem to find a way to access this information. I had a look at events but I cannot find any for Secrets. An example would be I create a secret called my-secret, I then…
Westy10101
  • 861
  • 2
  • 12
  • 25
4
votes
0 answers

kubelet error:failed to update node lease

I setup my kubernetes cluster by kubeadm. at the last step. I need join my nodes to the master. So i copy the join command to the node to exec it and whitout err. Then i back to master to exec "kubectl get nodes". there just a master node and…
Esc
  • 521
  • 13
  • 30
4
votes
1 answer

How is 'watch=true' implemented on the kube-apiserver?

When watching kubernetes resources for changes, what exactly is happening under the hood? Does the http suddenly change to a wss connection? To solve a problem of too many requests to the kube-apiserver I am rewriting some code to what I think is…
Moritz Schmitz v. Hülst
  • 3,229
  • 4
  • 36
  • 63
4
votes
2 answers

Kubernetes cluster does not run after reboot

If I use the kubectl command after a reboot, I will receive an error. x.x.x.x: 6443 was refused-did you specify the right host or port? If I check my container with docker ps, kube-apiserver and kube-scheduler are turned on and off. Why is this…
윤태일
  • 537
  • 1
  • 9
  • 21
4
votes
0 answers

How to keep minkube kube-apiserver from using up a tone of %CPU?

After deploying anything to minikube it seems as though the apiserver starts eating up all the CPU and makes the dashboard mostly unusable until the apiserver dies and gets restarted. I've read through a bit of the references found in this post:…
lucidquiet
  • 6,124
  • 7
  • 51
  • 88
1
2 3
8 9