Skip to main content

Azure/k8s-set-context

Description:

This action sets the Kubernetes context for kubectl, allowing you to specify which cluster and user to interact with during your GitHub pipeline.

Usage:

uses: Azure/k8s-set-context@v1
with:
kubeconfig: '${{ secrets.KUBECONFIG }}'

Inputs:

  • kubeconfig (required): The Kubernetes configuration file (usually stored in secrets) that contains details about your cluster, user, and context.

Example:

steps:
- name: Set Kubernetes context
uses: Azure/k8s-set-context@v1
with:
kubeconfig: '${{ secrets.KUBECONFIG }}'
GitHub Repository