Questions tagged [kubernetes-apiserver]

201 questions
1
vote
1 answer

kubernetes dashboard reachable with curl but not chrome/firefox via kubectl proxy

I have two clusters that are very different (one kubernetes 1.13 with dashboard 1.0 and created with kops in aws; the other uses kubernetes 1.14 with dashboard 2.0 and created with EKS) same issue for both, and I use kubectl 1.17 to interface with…
1
vote
0 answers

Kubernetes environment variable update policy

I'm writing an application that dynamically deploys kubernetes resources. On each deploy, I set environment variables in the Container within the DeploymentSpec with the golang api (see https://godoc.org/k8s.io/api/core/v1#Container). Is there any…
Jay K.
  • 546
  • 2
  • 10
  • 17
1
vote
2 answers

Access kubernetes API remotely

I have a k8s cluster mounted in a Amazon EC2 instance, and i want configure the CI with GitLab. To do that, GitLab requested me the Kubernetes API URL. I ran kubectl cluster-info to get the requested information and i can see 3 rows: Kubernetes…
ramiromd
  • 2,019
  • 8
  • 33
  • 62
1
vote
1 answer

kubernetes api server not automatically start after master reboots

I have setup a small cluster with kubeadm, it was working fine and 6443 port was up. But after rebooting my system, the cluster is not getting up anymore. What should I do? Here is some information: systemctl status kubelet ● kubelet.service -…
1
vote
1 answer

How does kube apiserver communicates with kubelet and kube-proxy?

I'm interested if I can run k8s with publicly available control plane and worker nodes in network behind firewall (which is edge/iot deployment use-case). The main concern as I believe is communication between apiserver and kubelet/ kube-proxy. Can…
1
vote
1 answer

Kubernetes loses enhanced range of service ports

I am testing an kubernetes minikube/influxdb/grafana stack under macos 10.15.3. I am working on the command line. System environment: MacOS 10.15.3 /bin/bash (darwin19) Minikube 1.7.2, downloaded via curl -Lo minikube…
1
vote
0 answers

Error-Getsockopt: connection refused - Kubernetes apiserver

Am facing an unexpected issue today, earlier today I noticed that "kubectl get pods" was returning an "Unable to connect to the server: EOF". Upon further investigation I found out that Kubernetes apiserver is unable to connect to 127.0.0.1:443. I…
Collins C.
  • 151
  • 1
  • 4
1
vote
0 answers

golang http server tailing logs kubeapi proxy

Maybe anyone faced a similar problem. We have a kubeapi proxy which impersonates users using sso. Kubectl tool works just fine with any commands unless you do tail -f I do see that app data is coming back every 1-5 seconds, but to output it takes ~…
kotyara85
  • 305
  • 3
  • 12
1
vote
0 answers

K8S: Container changes state from Running to Waiting when deleting the pod

What is my goal: I have a research task where I'm using Kubernetes Java client to subscribe to Kubernetes API and receive events about all pods from all namespaces (create, modify, delete). My goal is to make some analysis on the basis of container…
1
vote
1 answer

Why does client.Update(...) ignore non-primitive values?

I'm trying to modify the Spec of non-owned objects as part of the Reconcile of my Custom Resource, but it seems like it ignores any fields that are not primitives. I am using controller-runtime. I figured since it was only working on primitives,…
1
vote
1 answer

Using kubernetes/client-node lib

I have kubernetes cluster on my GCP platform and I want to get Node's list in my cluster by using client-node lib. const cluster = { name: 'my-cluster-1', server: 'https://endpoints.googleapis.com', }; const user = { …
Ted
  • 1,682
  • 3
  • 25
  • 52
1
vote
2 answers

How to use kubeadm-init configuration parameter- "controlPlaneEndpoint"?

I think my focus is on how to use this configuration parameter- "controlPlaneEndpoint". It is currently buggy to use "controlPlaneEndpoint". https://kubernetes.io/docs/setup/independent/high-availability/ I really hope you can be patient to see my…
1
vote
2 answers

how to access namespaces in kubernetes using rest api?

I am unable to get list of namespaces using rest api and rest end point is https://:8001/api/v1/namespaces Using this kubernetes document: I am using postman. I will repeat the steps: Created a user and given cluster admin privileges:…
naveen kumar
  • 307
  • 2
  • 11
1
vote
1 answer

How to pass gRPC unix socket to Kubernetes api-server

I have implemented a KMS Plugin gRPC server. However, my api-server is not able to connect to Unix socket at path "/opt/mysocket.sock". If I bind my socket to "/etc/ssl/certs/" directory. "api-server" is able to access it and interact with my gRPC…
1
vote
1 answer

encoding is not allowed for this codec: *versioning.codec

I have made a kubernetes operator using this framework https://github.com/operator-framework/operator-sdk in which I have a small custom resource definition defined and a clientset generated. I create a client for this custom resource doing: imports…