-
Notifications
You must be signed in to change notification settings - Fork 24
40 lines (33 loc) · 1.11 KB
/
testing-action.yml
File metadata and controls
40 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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@v7
with:
kubeconfig: ${{ secrets.KUBECONFIG }}
namespace: ${{ github.event.inputs.namespace || 'default' }}
- name: Apply Deployment and ConfigMap to Kubernetes
run: |
ls
pwd