Questions tagged [kubeconfig]

105 questions
0
votes
2 answers

File not found error when copying kubeconfig file to jenkins context

I am trying to access a k0s cluster with Jenkins in order to deploy from Jenkins pipeline. In order to copy/paste cluster credentials in the kubeconfig file I tried to access with "~/.kube/config" command but there is an error saying "No such file…
Golide
  • 835
  • 3
  • 13
  • 36
0
votes
1 answer

We are in the process of configuring Kubectl to manage our cluster in Azure Kubernetes Service

1.Can we get azure kubectl(exe/bin) as downloadable link instead of installing it using command line 'az aks install-cli' or can I use the kubectl from kuberenetes? 2.Is there any azure-cli command to change the default location of kubeconfig file,…
0
votes
0 answers

Helm add repo fail with connection time out

I installed k3s using the following command. I'm using Vagrant box with opensuse. curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.19.5+k3s1 K3S_KUBECONFIG_MODE="644" sh - It successfully installed. kubectl version Client Version:…
Aye
  • 19
  • 8
0
votes
1 answer

Unable to connect to the server: x509: certificate is valid for control-plane, not my_domain.com

I am trying to give user access to Kubernetes using X.509 Client Certificate I am using(subjectAltName= my_domain.com): openssl req -new -newkey rsa:4096 -nodes -keyout Bob.key -out Bob.csr -subj "/C=DK/ST=Frb/L=Cph/O=engineering/CN=Bob" -addext…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
0
votes
1 answer

Airflow KubernetesExecutor and minikube: Scheduler can't connect to Minikube

I have a MiniKube that is running and I deploy Airflow via docker-compose this way: --- version: '3' x-airflow-common: &airflow-common # In order to add custom dependencies or upgrade provider packages you can use your extended image. #…
val
  • 329
  • 2
  • 16
0
votes
1 answer

How can I disable user access to k8s cluster?

I have a question about giving access to k8s cluster. For example, new member joined our team. He created certificatesigningrequest and I approved it. Then created kubeconfig and give it to him to access our cluster. One day if he leave our team how…
0
votes
1 answer

Dockerfile giving error with distroless image

I am trying to run this Dockerfile with distroless image (gcr.io/distroless/static:nonroot). docker build is happening successfully, but docker run -it image_name is giving me error: 2021-07-13T18:16:11.441Z ERROR …
solveit
  • 869
  • 2
  • 12
  • 32
0
votes
1 answer

How to change server in admin.conf file in kubernetes?

I have a single node c=kubernetes cluster and I'm untainting the master node. I'm using the following command to create my cluster. #Only on the Master Node: On the master node initialize the cluster. sudo kubeadm init…
0
votes
2 answers

Running calicoctl on Windows results in error: Failed to create Calico API client: invalid configuration: no configuration has been provided

I'm using k3d with calico, and trying to use calicoctl to set a network policy. I am able to get this working on Ubuntu, but on Windows it doesn't. To set it up I did the following: # Download Calico YAML # DOWNLOAD:…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
0
votes
1 answer

kubeconfig for GKE suddenly sees the certificate as expired

This unexpectedly happened today after working seamlessly for at least half a year. kubectl calls to all my GKE clusters are returning: Unable to connect to the server: x509: certificate has expired or is not yet valid: current time…
antweiss
  • 2,789
  • 1
  • 13
  • 12
0
votes
2 answers

kubectl not picking up the correct kubeconfig

Please find below the sequence of operations I am performing to authorize and authenticate against kubectl to be able to perform deployments on EKS CLuster SAML Login Downloading correct kubeconfig from Artifactory Using the downloaded kubeconfig #…
learner
  • 2,480
  • 10
  • 50
  • 94
0
votes
1 answer

How to retrieve kubectl config value from Dex server configured with LDAP using curl command?

We have multiple Kubernetes clusters across our company. To get the kubectl config content we use Dex to login and copy/paste the content to our local confi for kubectl. I want to make this automated and so run a bunch of command to get the content…
xbmono
  • 2,084
  • 2
  • 30
  • 50
0
votes
1 answer

Parameters to access multiple clusters

I want to access an external k8s cluster which is running in private cloud. Do you have any idea how can I get these parameters? What should I do in order to generate them? ${CLIENT_CERTIFICATE_DATA} fake-cert-file fake-key-file apiVersion: v1 kind:…
DobreMihaela
  • 174
  • 1
  • 10
0
votes
1 answer

Can new Rancher version be used for local cluster only?

I have been working with kubernetes in a staging environment for a couple of month and want to switch to production, I came across a tool called Rancher almost 2 weeks ago and since then am going through their documents. It was recommended by the…
0
votes
1 answer

How to add kube-config and use go-client in our go program

What the role of kube-Config and how to use this in our go program for simple operations?
Ajeet Rai
  • 91
  • 1
  • 1
  • 3