kubectl run: command not foundAccessing Kubernetes API on Google Container Enginekubectl run does not create replicacontrollerCreate kubernetes pod with volume using kubectl runHow to get the clients external ip, im using Gcloud/kubernetesKubernetes Java API for Kubectl copy commandRun kubectl inside a clusterMongoDB Replica establishment running on two different kubernetes cluster on different physical hostHow kubectl port-forward works?Doesn't Kubernetes honor HPA configuration when we execute “kubectl scale deploy”?“No resources found” from kubectl get for remote cluster

dos2unix is unable to convert typescript file to unix format

I have a domain, static IP address and many devices I'd like to access outside my house. How do I route them?

Impact of throwing away fruit waste on a peak > 3200 m above a glacier

Why can't a country print its own money to spend it only abroad?

Alternative methods for solving a system of one linear one non linear simultaneous equations

How can I deal with someone that wants to kill something that isn't supposed to be killed?

Is it possible to eat quietly in Minecraft?

My current job follows "worst practices". How can I talk about my experience in an interview without giving off red flags?

Is it OK to accept a job opportunity while planning on not taking it?

Is the apartment I want to rent a scam?

Why did computer video outputs go from digital to analog, then back to digital?

How to write a sincerely religious protagonist without preaching or affirming or judging their worldview?

The seven story archetypes. Are they truly all of them?

How to ask my manager for a part-time?

Why are MEMS in QFN packages?

What happens if an IRB mistakenly approves unethical research?

how to add 1 milliseconds on a datetime string?

Why is a dedicated QA team member necessary?

How can I tell if there was a power cut when I was out?

What is "ass door"?

How to Trust a Self-Signed Certificate

If a check is written for bill, but account number is not mentioned on memo line, is it still processed?

What is an Eternal Word™?

Historicity doubted by Romans



kubectl run: command not found


Accessing Kubernetes API on Google Container Enginekubectl run does not create replicacontrollerCreate kubernetes pod with volume using kubectl runHow to get the clients external ip, im using Gcloud/kubernetesKubernetes Java API for Kubectl copy commandRun kubectl inside a clusterMongoDB Replica establishment running on two different kubernetes cluster on different physical hostHow kubectl port-forward works?Doesn't Kubernetes honor HPA configuration when we execute “kubectl scale deploy”?“No resources found” from kubectl get for remote cluster






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I was running kubectl command to deploy my application in the gcloud. But suddenly the kubectl command stopped working. kubectl command is working fine but for everything else it say command not found.



kubectl create
bash: kubectl create: command not found



kubectl run
bash: kubectl run: command not found



SBGML02586:~ mku01$ kubectl
kubectl controls the Kubernetes cluster manager.

Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/

Basic Commands (Beginner):
create Create a resource from a file or from stdin.
expose Take a replication controller, service, deployment or pod and
expose it as a new Kubernetes Service
run Run a particular image on the cluster
set Set specific features on objects......









share|improve this question



















  • 1





    What do you get if you run echo $PATH

    – cookiedough
    Mar 26 at 15:22











  • it is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

    – krmanish007
    Mar 26 at 15:24











  • @user1529891 you can see the edited question, kubectl is installed correctly.

    – krmanish007
    Mar 26 at 15:29











  • which kubectl /usr/local/bin/kubectl

    – krmanish007
    Mar 26 at 16:05






  • 2





    Can you run strace -f kubectl run or something like that (and add output to the question)? It really looks like your shell might not be handling spaces and somehow it thinks the whole kubectl run file is a program name.

    – AhmetB - Google
    Mar 26 at 18:28

















1















I was running kubectl command to deploy my application in the gcloud. But suddenly the kubectl command stopped working. kubectl command is working fine but for everything else it say command not found.



kubectl create
bash: kubectl create: command not found



kubectl run
bash: kubectl run: command not found



SBGML02586:~ mku01$ kubectl
kubectl controls the Kubernetes cluster manager.

Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/

Basic Commands (Beginner):
create Create a resource from a file or from stdin.
expose Take a replication controller, service, deployment or pod and
expose it as a new Kubernetes Service
run Run a particular image on the cluster
set Set specific features on objects......









share|improve this question



















  • 1





    What do you get if you run echo $PATH

    – cookiedough
    Mar 26 at 15:22











  • it is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

    – krmanish007
    Mar 26 at 15:24











  • @user1529891 you can see the edited question, kubectl is installed correctly.

    – krmanish007
    Mar 26 at 15:29











  • which kubectl /usr/local/bin/kubectl

    – krmanish007
    Mar 26 at 16:05






  • 2





    Can you run strace -f kubectl run or something like that (and add output to the question)? It really looks like your shell might not be handling spaces and somehow it thinks the whole kubectl run file is a program name.

    – AhmetB - Google
    Mar 26 at 18:28













1












1








1








I was running kubectl command to deploy my application in the gcloud. But suddenly the kubectl command stopped working. kubectl command is working fine but for everything else it say command not found.



kubectl create
bash: kubectl create: command not found



kubectl run
bash: kubectl run: command not found



SBGML02586:~ mku01$ kubectl
kubectl controls the Kubernetes cluster manager.

Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/

Basic Commands (Beginner):
create Create a resource from a file or from stdin.
expose Take a replication controller, service, deployment or pod and
expose it as a new Kubernetes Service
run Run a particular image on the cluster
set Set specific features on objects......









share|improve this question
















I was running kubectl command to deploy my application in the gcloud. But suddenly the kubectl command stopped working. kubectl command is working fine but for everything else it say command not found.



kubectl create
bash: kubectl create: command not found



kubectl run
bash: kubectl run: command not found



SBGML02586:~ mku01$ kubectl
kubectl controls the Kubernetes cluster manager.

Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/

Basic Commands (Beginner):
create Create a resource from a file or from stdin.
expose Take a replication controller, service, deployment or pod and
expose it as a new Kubernetes Service
run Run a particular image on the cluster
set Set specific features on objects......






kubernetes gcloud kubectl






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 15:28







krmanish007

















asked Mar 26 at 15:19









krmanish007krmanish007

2,8145 gold badges31 silver badges60 bronze badges




2,8145 gold badges31 silver badges60 bronze badges







  • 1





    What do you get if you run echo $PATH

    – cookiedough
    Mar 26 at 15:22











  • it is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

    – krmanish007
    Mar 26 at 15:24











  • @user1529891 you can see the edited question, kubectl is installed correctly.

    – krmanish007
    Mar 26 at 15:29











  • which kubectl /usr/local/bin/kubectl

    – krmanish007
    Mar 26 at 16:05






  • 2





    Can you run strace -f kubectl run or something like that (and add output to the question)? It really looks like your shell might not be handling spaces and somehow it thinks the whole kubectl run file is a program name.

    – AhmetB - Google
    Mar 26 at 18:28












  • 1





    What do you get if you run echo $PATH

    – cookiedough
    Mar 26 at 15:22











  • it is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

    – krmanish007
    Mar 26 at 15:24











  • @user1529891 you can see the edited question, kubectl is installed correctly.

    – krmanish007
    Mar 26 at 15:29











  • which kubectl /usr/local/bin/kubectl

    – krmanish007
    Mar 26 at 16:05






  • 2





    Can you run strace -f kubectl run or something like that (and add output to the question)? It really looks like your shell might not be handling spaces and somehow it thinks the whole kubectl run file is a program name.

    – AhmetB - Google
    Mar 26 at 18:28







1




1





What do you get if you run echo $PATH

– cookiedough
Mar 26 at 15:22





What do you get if you run echo $PATH

– cookiedough
Mar 26 at 15:22













it is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

– krmanish007
Mar 26 at 15:24





it is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

– krmanish007
Mar 26 at 15:24













@user1529891 you can see the edited question, kubectl is installed correctly.

– krmanish007
Mar 26 at 15:29





@user1529891 you can see the edited question, kubectl is installed correctly.

– krmanish007
Mar 26 at 15:29













which kubectl /usr/local/bin/kubectl

– krmanish007
Mar 26 at 16:05





which kubectl /usr/local/bin/kubectl

– krmanish007
Mar 26 at 16:05




2




2





Can you run strace -f kubectl run or something like that (and add output to the question)? It really looks like your shell might not be handling spaces and somehow it thinks the whole kubectl run file is a program name.

– AhmetB - Google
Mar 26 at 18:28





Can you run strace -f kubectl run or something like that (and add output to the question)? It really looks like your shell might not be handling spaces and somehow it thinks the whole kubectl run file is a program name.

– AhmetB - Google
Mar 26 at 18:28












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55360666%2fkubectl-run-command-not-found%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55360666%2fkubectl-run-command-not-found%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript