Questions tagged [kubeconfig]
105 questions
10
votes
1 answer
kubectl : --dry-run is deprecated and can be replaced with --dry-run=client
I have aws-eks cluster and below is my command to replace existing the configuration.
kubectl create configmap flink-config --from-file=./config -o yaml --dry-run | kubectl replace -
but when I run this command. it gives an error like
W1009…

NIrav Modi
- 6,038
- 8
- 32
- 47
8
votes
3 answers
How to properly access multiple kubernetes cluster using kubectl
I have two clusters and the config files are stored in .kube. I am exporting KUBECONFIG as below
export KUBECONFIG=/home/vagrant/.kube/config-cluster1:/home/vagrant/.kube/config-cluster2
checking the contexts
kubectl config get-contexts
CURRENT …

Shash
- 4,160
- 8
- 43
- 67
7
votes
4 answers
kubelet and apriserver stopped with minikube
I am completely new in Kubernetes.I was trying to play with minikube in my local machine. I have installed kubectl and minikube locally. When I run
minikube start --vm-driver=virtualbox # and then
minikube status
my output is
E0512…

Sazzad
- 773
- 11
- 22
6
votes
1 answer
Finding the kubeconfig file being used
I understand kubectl gets the kubeconfig file in the order
command line option --kubeconfig
environment variable KUBECONFIG=
default path ~/.kube/config
But is there a way to get the kubeconfig path/file details from the kubectl which one being…

Logu
- 904
- 9
- 15
6
votes
1 answer
Enable IPVS Mode in Kube Proxy on a ready Kubernetes Local Cluster
I want to enable the Kube-proxy mode to IPVS in the existing cluster. currently, it is running on IPtables. how can I change it to IPVS without affecting the existing workload?
I have already installed all the required modules to enable it. Also, my…

Pert8S
- 582
- 3
- 6
- 21
5
votes
1 answer
How to enable TLS verification for C# Kubernetes client without a kubeconfig file?
I want C# code to connect to a K8s cluster and for now just list the namespaces. The following C# code I tried works, and connects to a Kubernetes cluster, but it only works when "SkipTlsVerify = true".
When I set SkipTlsVerify to false I get the…

Nick Bonilla
- 181
- 6
5
votes
2 answers
Disabling subcharts in custom helm chart
I've created a custom helm chart with elastic-stack as a subchart with following configurations.
# requirements.yaml
dependencies:
- name: elastic-stack
version: 1.5.0
repository: '@stable'
# values.yaml
elastic-stack:
kibana:
# at…

cebor
- 6,546
- 4
- 24
- 31
4
votes
1 answer
Merging kubeconfig JSON and YAML
I have two kubeconfigs file, the first one is following which I use to communicate with the cluster and the second one is for Aquasec which is in JSON format. How can I merge these two?
apiVersion: v1
clusters:
- cluster:
…
user11931805
4
votes
3 answers
Generating a kubeconfig for access to an Amazon EKS cluster
Given a scenario where I have two Kubernetes clusters, one hosted on AWS EKS and the other on another cloud provider, I would like to manage the EKS cluster from the other cloud provider. What's the easiest way to authenticate such that I can do…

Jay K.
- 546
- 2
- 10
- 17
4
votes
1 answer
gcloud does not add access token for connecting to GKE cluster
I created a GKE cluster and to connect to it with kubectl ran the command that appears when clicked on Connect button against my cluster.
gcloud container clusters get-credentials cluster-name --zone us-central1-a --project project-id
In…

cogitoergosum
- 2,309
- 4
- 38
- 62
3
votes
1 answer
where I can find kubeadm-config.yaml on my kubernetes cluster
There is a k8s single master node, I need to back it up and restore it
I googled this topic and found a solution -
https://elastisys.com/2018/12/10/backup-kubernetes-how-and-why/
Everything looked easy; so,I followed the instruction and got a copy…

Kundan Kumar
- 159
- 2
- 8
3
votes
3 answers
New Kubernetes service account appears to have cluster admin permissions
I'm experiencing a strange behavior from newly created Kubernetes service accounts. It appears that their tokens provide limitless access permissions in our cluster.
If I create a new namespace, a new service account inside that namespace, and then…

Brannon
- 1,286
- 2
- 21
- 36
3
votes
3 answers
How to safely provide kubeconfig to kubectl
Our users are allowed to access Kubernetes clusters only from the management station, there is no possibility to access the API directly from their laptops/workstations.
Every user posses kubeconfig with relevant secrets belonging to this particular…

Sl4dy
- 123
- 2
- 9
2
votes
1 answer
How to add minikube in my kubeconfig file?
My kubeconfig file only includes docker-desktop, how to add cluster and user definitions of minikube to kubeconfig file to interact with kubectl command so with Monokle itself?

Kanika Gola
- 31
- 1
- 4
2
votes
1 answer
Is "current-context" a mandatory key in a kubeconfig file?
THE PLOT:
I am working on a kubernetes environment where we have PROD and ITG setup. The ITG setup has multi-cluster environment whereas PROD setup is a single-cluster environment.
I am trying to automate some process using Python where I have to…

sxddhxrthx
- 587
- 5
- 13