Debug Kubernetes Issues #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v3 | |
| - 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@v5 | |
| with: | |
| kubeconfig: ${{ secrets.KUBECONFIG }} | |
| namespace: ${{ github.event.inputs.namespace || 'troubleshooting' }} | |