Questions tagged [kubeconfig]

105 questions
1
vote
3 answers

Error `executable aws not found` with kubectl config defined by `aws eks update-kubeconfig`

I defined my KUBECONFIG for the AWS EKS cluster: aws eks update-kubeconfig --region eu-west-1 --name yb-demo but got the following error when using kubectl: ... Use "kubectl --help" for more information about a given command. Use "kubectl…
1
vote
0 answers

Microk8s : Generating Auth Certificates

I'm trying to generate another kubeconfig for a microk8s cluster. For this I chose the certificates approach and I'm using the following script to generate the certificates, create the certificate signing request and populate the kubeconfig…
Andrei Terecoasa
  • 561
  • 2
  • 7
  • 25
1
vote
0 answers

K3S HA installation issue - adding floating ip to cluster

I am trying to create a HA k3s cluster using HAProxy and Keepalived. For new installations ( where --tls-san param is added on first time install ) everything works great. I am encountering an issue when I have an existing cluster, and I try to…
1
vote
1 answer

Load kubect config file using Kubernetes Python client returns error: Invalid kube-config file

I wrote a service to retrieve some information from the Kubernetes cluster. Below is a snippet from the kubernetes_service.py file that works perfectly when I run it on my local machine. from kubernetes.client.rest import ApiException from…
1
vote
0 answers

rancher/k8s cluster not accessible when rancher server down

I set up a two clusters with rancher 2.5.x, one single-node management cluster for running the rancher server and one "production" server which handles the application stacks. This worked all fine, now during updating rancher server to 2.6 something…
Peter
  • 96
  • 1
  • 12
1
vote
1 answer

How to Generate Bearer Token From Kubeconfig File Programmatically On Outside of Kubernetes With Golang

I am trying to create a cli tool for kubernetes. I need to generate Bearer Token for communicating with kubernetes API. How can I generate the token from Kubeconfig File? I do not want to use external library or kubectl. Here is example Kubeconfig…
anilkuscu
  • 83
  • 6
1
vote
1 answer

FATA[0000] invalid configuration: no configuration has been provided

I'm running my minikube cluster in thw windows laptop computer and trying to setup argo workflows and argo-cli, I already installed the argo-workflow but when I try executing argo commands, it gives me an error : FATA[0000] invalid configuration: no…
1
vote
2 answers

Any easy way to keep track/ maintain kubectl config (./kube/config) if you are connecting to multiple clusters

Any suggestions on how track of kubectl configs(~/.kube/config) which allows you to access the kubernetes clusters? I have clusters running on different environments(local/prod) where i connect to the same namespace where project is deployed on and…
DBSand
  • 670
  • 3
  • 10
1
vote
1 answer

How to connect to a minikube cluster from a docker container?

I have a running minikube cluster. I can easily connect to it and apply changes using kubectl. But I want to run kubectl from a docker container. Here is the Dockerfile: FROM alpine:latest RUN apk --no-cache add curl # Install and configure…
HsnVahedi
  • 1,271
  • 3
  • 13
  • 34
1
vote
0 answers

How to constaint kubectl kubeconfig only display work node but the master node is not displayed

When using kubelet kubeconfig, only the worker node is displayed but the master node is not displayed, Like the following output on the aws eks worker node: kubectl get node --kubeconfig /var/lib/kubelet/kubeconfig NAME …
dream
  • 51
  • 1
  • 1
  • 4
1
vote
2 answers

Provide Kubernetes cluster authentication with kubeconfig over https

I have a kubernetes cluster. I created the cluster using the Google Cloud, but not using the GKE, but using GCE. I've created one master node and two worker nodes using VM instances. Kubeadm is used for joining the master and worker nodes along with…
1
vote
1 answer

How to access minikube (installed on a remote VM) from my local machine?

I have a CentOS 7 VM, which has minikube running with --vm-driver=none. On the VM itself, I can run kubectl commands to interact with the minikube cluster. As I am new to k8s, I am not sure how to generate all the necessary values to put in the…
Grimlock
  • 1,033
  • 1
  • 9
  • 23
1
vote
0 answers

Kubectl behind proxy

I have a k8s cluster deployed in a public cloud whose api server is accessible via public IPs. I typically interact with my cluster via kubectl and I have two scenarios for how it is done: From home From the office #1 works fine and causes no…
ssc327
  • 690
  • 1
  • 9
  • 19
1
vote
1 answer

creating a proper kubeconfig file for a 2 node gentoo linux kubernetes cluster

I have two servers at my home with Gentoo Linux ~amd64.I would like to install Kubernetes on them to play with it a bit. Gentoo now packages all the Kubernetes related dependencies under one package called sys-cluster/kubernetes and the latest…
ufk
  • 30,912
  • 70
  • 235
  • 386
1
vote
1 answer

How to operate the k8s cluster in the docker container

How does a docker container running on a docker machine instead of a k8s pod operate the k8s cluster. For example, if i need to do something like this inside a container: kubectl get pods In my dockerfile, I installed kubectl RUN curl -LO…
moluzhui
  • 1,003
  • 14
  • 34