Setup kubectl and plugins
ActionsTags
(2)This Github action installs kubectl and allows to optionally also install krew to manage kubectl plugins. You can also choose to pre-install a bunch of kubectl plugins by default.
Installs the latest stable release.
steps:
- uses: marcofranssen/setup-kubectl@v2.0.0
id: kubectl
- run: echo ${{ steps.kubectl.output.kubectl-version }}Installs the latest release.
steps:
- uses: marcofranssen/setup-kubectl@v2.0.0
id: kubectl
with:
kubectl-version: latest
- run: echo ${{ steps.kubectl.output.kubectl-version }}Installs the v1.24.5 release.
steps:
- uses: marcofranssen/setup-kubectl@v2.0.0
id: kubectl
with:
kubectl-version: v1.24.5Install krew allong with kubectl.
steps:
- uses: marcofranssen/setup-kubectl@v2.0.0
with:
enable-plugins: true
- run: echo ${{ steps.kubectl.output.krew-version }}
- run: kubectl krew install aws-authInstall krew allong with kubectl and some plugins.
steps:
- uses: marcofranssen/setup-kubectl@v2.0.0
with:
enable-plugins: true
plugins: aws-auth,grep
- run: echo ${{ steps.kubectl.output.krew-version }}
- run: echo ${{ fromJson(steps.kubectl.output.krew-plugins) }}
- run: kubectl aws-auth versionSetup kubectl and plugins is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.