Questions tagged [kubectl]

Use this tag if a question is about kubectl

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

Kubectl and jsonpath to print labels

How can you use only kubectl and jsonpath to cleanly output the pod labels with the pod name; ie, remove 'map[', and ']' without having to use grep or other types of commands. Rough attempt. $ ...
0
votes
1answer
10 views

Running Two infinite commands on single pod/image

I have a Dockerfile with a CMD, it calls a .sh file that runs a Django app ( makemigrations, migrate and uwsgi ) And that runs fine in a pod. There's a django admin script that runs infinitely that I'...
0
votes
1answer
17 views

How to get server url from kub dashboard?

I have access to kubernetes dashboard on aws with token. And now I want to connect with kubectl, how to get server url for kubectl config?
0
votes
1answer
31 views

Accessing k8s outside of VM

I am running k8s cluster for evaluation purposes inside some vagrant box. I have external kubectl access. I was able to get PostgreSQL helm template running on the cluster. But now let say I want to ...
1
vote
1answer
60 views

Authentication Error in Kubernetes

I am new to Kubernetes. I am getting below error while creating deployments in Kubernetes. <!-- You are authenticated as: anonymous Groups that you are in: Permission you need to have (but didn'...
1
vote
1answer
20 views

Kops: How to delete the multiple SSHPublicKey

SSHPublicKey admin 2b:xx: SSHPublicKey admin 2c:yy How to remove one ssh key from the cluster ? when tried to delete via normal way, kops delete secret --name cluster-1.dev.transein.com ...
0
votes
0answers
147 views

Error loading config file “/root/.kube/config”: no kind “Pod” is registered for version “v1”

My YAML file is : --- apiVersion: v1 kind: Pod metadata: name: test spec: containers: - name: mysql image: mysql imagePullPolicy: Always command: [...
0
votes
1answer
37 views

error validating data: couldn't find type

I have following yaml file: --- apiVersion: v1 kind: pod metadata: name: Tesing_for_Image_pull.pod spec: containers: - name: mysql image: mysql ...
1
vote
1answer
54 views

Kubelet config file — > clusterDNS

clusterDNS: - "10.32.0.10" The above is a flag passed to the kubelet file, i dont know what it refers to clsuter DNS ? Is it refers to VPC CIDR or any subnet CIDR ?
1
vote
1answer
24 views

Kubernetes api service unit file

i was going through the kubernetes the hard way(kelsey), i see in the API server unit file with a cluster ip range as --service-cluster-ip-range=10.32.0.0/24 \ is it a default ip range ? my VPC ...
2
votes
1answer
28 views

Weavenet for kubernetes is showing 0/2

I'm very new to kubernetes. I thought i would first get a basic by making hands dirty by "the hard way" I followed the Linux academy, but at the networking side using weave net i am now stuck ! ...
0
votes
0answers
8 views

kubernetes How to test if an operator has already been applied

How can I check if an operator has not changed, and then not apply it? usually, I would apply an operator like this kubectl apply -f openebs.yml In an automated script, I would like to test if ...
0
votes
2answers
47 views

Kubernetes - How to show all service accounts

How do I show all service accounts In Kubernetes? I have tried kubectl get --all-namespaces all. It does not show service accounts. How can I use kubectl to list all service accounts?
0
votes
1answer
18 views

use different kubectl configs in different terminal sessions

If I run kubectl get svc, it seems to be the same across terminal sessions - how can use a local configuration that's only loaded for my current terminal session? If the answer is a local config file ...