Forum breadcrumbs – You are here:Tracston Community Forum – DevOps, Micro Services, Cloud, Infrastructure, Development, Monitoring and more…DevOps / Micro Services / Automation: Kubernetes & Helm Chartskubectl set default namespace
You need to log in to create posts and topics.
kubectl set default namespace
moshe@moshe
#1 · 02/10/2021, 12:51 pm
Quote from moshe on 02/10/2021, 12:51 pmProblem
User wants to work in a different namespace then default without specifying -n <<namespace>> for each command
Solution
Patch default namespace to kube/config with the following command
kubectl config set-context –current –namespace=github-actions-runner-operator
Note: commands with full name for example: -namespace should be changed to – – namespace ( double dash )
Problem
User wants to work in a different namespace then default without specifying -n <<namespace>> for each command
Solution
Patch default namespace to kube/config with the following command
kubectl config set-context –current –namespace=github-actions-runner-operator
Note: commands with full name for example: -namespace should be changed to – – namespace ( double dash )
Uploaded files:
Click for thumbs down.0Click for thumbs up.0