We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here, you put this answer:
kubectl run nginx --image=nginx:1.7.8 --replicas=2 --port=80
Since kubeclt run is now deprecated with deployments, this is the alternative:
kubeclt run
kubectl create deployment nginx --image=nginx:1.7.8 --dry-run -o yaml | sed 's/replicas: 1/replicas: 2/g' | sed 's/image: nginx:1.7.8/image: nginx:1.7.8\n ports:\n - containerPort: 80/g' | kubectl apply -f -
Unfortunately, kubectl create does not support --replicas nor --port. That's why the alternative was too long 😁
kubectl create
--replicas
--port
I will open PR or anyone can open it. Thanks!
The text was updated successfully, but these errors were encountered:
feedback based on #16
b2784f8
Pushed with info about deprecation and a couple of alternative solutions, including yours. Thank you!
Sorry, something went wrong.
No branches or pull requests
Here, you put this answer:
Since
kubeclt run
is now deprecated with deployments, this is the alternative:Unfortunately,
kubectl create
does not support--replicas
nor--port
. That's why the alternative was too long 😁I will open PR or anyone can open it.
Thanks!
The text was updated successfully, but these errors were encountered: