Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More shortcuts #151

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

More shortcuts #151

wants to merge 1 commit into from

Conversation

kverma12
Copy link

adding more short cuts..
Adding 1.19 above version shortcuts

Copy link
Owner

@dgkanatsios dgkanatsios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR, some comments + clarification questions!

@@ -18,6 +18,7 @@ kubernetes.io > Documentation > Tasks > Access Applications in a Cluster > [Use

```bash
kubectl create namespace mynamespace
kubectl create ns mynamespace
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since it's the same command as the one in the previous line, can you add it with an explanatory comment?

@@ -35,6 +36,11 @@ Easily generate YAML with:
kubectl run nginx --image=nginx --restart=Never --dry-run=client -n mynamespace -o yaml > pod.yaml
```

Above version 1.19, no need of --restart=Never. Use the following:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you mean, "version 1.19 and later"?

@@ -35,6 +36,11 @@ Easily generate YAML with:
kubectl run nginx --image=nginx --restart=Never --dry-run=client -n mynamespace -o yaml > pod.yaml
```

Above version 1.19, no need of --restart=Never. Use the following:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also explain why --restart=Never is not needed?

@@ -60,6 +66,7 @@ status: {}

```bash
kubectl create -f pod.yaml -n mynamespace
kubectl apply if pod.yaml -n mynamespace
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean apply -f?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants