Questions tagged [kubernetes-apiserver]
201 questions
41
votes
11 answers
Kubernetes: expired certificate
Our Kubernetes 1.6 cluster had certificates generated when the cluster was built on April 13th, 2017.
On December 13th, 2017, our cluster was upgraded to version 1.8, and new certificates were generated [apparently, an incomplete set of…

NoobSkywalker
- 646
- 1
- 5
- 10
29
votes
6 answers
Which API Group in k8s
How do I determine which apiGroup any given resource belongs in?
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
namespace: default
name: thing
rules:
- apiGroups: [""]
resources: ["deployments"]
verbs:…

Cole Bittel
- 2,646
- 5
- 18
- 31
19
votes
5 answers
What is the difference between. annotations and labels in in Kubernetes?
I'm trying to wrap my head around the difference between annotations and labels.
My understanding of annotations is that it is metadata that adds key-value pairs that cannot be used by Kubernetes for identifying/filtering the resource.
Labels on the…

Vipin Menon
- 2,892
- 4
- 20
- 35
18
votes
2 answers
Using client-go to `kubectl apply` against the Kubernetes API directly with multiple types in a single YAML file
I'm using https://github.com/kubernetes/client-go and all works well.
I have a manifest (YAML) for the official Kubernetes Dashboard: https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta4/aio/deploy/recommended.yaml
I want to mimic…

Simon
- 865
- 1
- 5
- 15
16
votes
8 answers
how to convert all kubernetes ingress yamls to use API version networking.k8s.io/v1
Kubernetes Ingress API version networking.k8s.io/v1 has lot of changes in fields wrt extensions/v1beta1 like the following:
* `spec.backend` -> `spec.defaultBackend`
* `serviceName` -> `service.name`
* `servicePort` -> `service.port.name` (for…

apoorva kamath
- 816
- 1
- 7
- 19
14
votes
2 answers
How to use Kubernetes fieldSelector to query ownerReferences
Does Kubernetes GET API actually support fieldSelector parameter to query values of array fields?
For example, I have a Pod like:
apiGroup: v1
kind: Pod
metadata:
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
…

ahmet alp balkan
- 42,679
- 38
- 138
- 214
14
votes
2 answers
How to Submit generic "runtime.Object" to Kubernetes API using client-go
I'm using AWS' EKS which is Kubernetes v1.10 and I'm using client-go v7.0.0.
What I'm trying to do is parse a .yml file with multiple Kubernetes resource definitions in a file and submit those resources to the Kubernetes API. I can successfully…

aloisbarreras
- 557
- 6
- 14
10
votes
2 answers
How to start K3s server after running k3s-killall.sh script
I was having K3s cluster with below pods running:
kube-system pod/calico-node-xxxx
kube-system pod/calico-kube-controllers-xxxxxx
kube-system pod/metrics-server-xxxxx
kube-system …

Thor
- 305
- 1
- 2
- 11
10
votes
2 answers
kubectl apply --dry-run behaving weirdly
I am facing a weird behaviour with kubectl and --dry-run.
To simplify let's say that I have the following yaml file:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: nginx
name: nginx
spec:
replicas: 3
selector:
…

GalloCedrone
- 4,869
- 3
- 25
- 41
9
votes
2 answers
Kubernetes eviction manager evicting control plane pods to reclaim ephemeral storage
I am using Kubernetes v1.13.0. My master is also functioning as a worker-node, so it has workload pods running on it, apart from control plane pods.
The kubelet logs on my master show the following lines:
eviction_manager.go:340] eviction manager:…

Nikhil
- 113
- 1
- 1
- 7
9
votes
2 answers
Jenkins forces to increase Max connections to Kubernetes API
Jenkins version : 2.121.3
I am using the k8s plugin in Jenkins which helps me deploy my sequential and parallel jobs on my k8s cluster.
Here is the part of the Jenkinsfile where the job fails
parallel([
build: {
…
user4889345
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
8
votes
1 answer
kube-apiserver not authenticating correctly in multi master cluster
I am attempting to create a HA Kubernetes cluster in Azure using kubeadm as documented here https://kubernetes.io/docs/setup/independent/high-availability/
I have everything working when using only 1 master node but when changing to 3 master nodes…

Mike Norgate
- 2,393
- 3
- 24
- 45
7
votes
1 answer
How to Enable KubeAPI server for HPA Autoscaling Metrics
I am using Kube version v1.13.0. Since Heapster is depreciated from v1.11 I am stuck in enabling the API server for cluster Metrics to implement HPA.
Attached Image for reference
Can someone guide me for step by step enable for the API Metrics…

DeenaDeepak
- 111
- 1
- 1
- 9
6
votes
1 answer
Couldn't understand availableReplicas, readyReplicas, unavailableReplicas in DeploymentStatus
I am creating deployments using Kubernetes API from my server. The deployment pod has two containers - one is the main and the other is a sidecar container that checks the health of the pod and calls the server when it becomes healthy.
I am using…

Shivam Singla
- 2,117
- 1
- 10
- 22