Skip to content

Debug Kubernetes Issues #21

Debug Kubernetes Issues

Debug Kubernetes Issues #21

name: Debug Kubernetes Issues
on:
workflow_dispatch:
inputs:
namespace:
description: "Namespace to deploy to"
required: false
default: "troubleshooting"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client
- name: Configure Kubernetes cluster
run: |
mkdir -p ~/.kube
echo "${{ secrets.KUBECONFIG }}" > ~/.kube/config
chmod 600 ~/.kube/config
- name: Run Kubernetes Troubleshooting Action
uses: becloudready/k8s-interview-action@v6
with:
kubeconfig: ${{ secrets.KUBECONFIG }}
namespace: ${{ github.event.inputs.namespace || 'default' }}