Skip to content

WIP: adding testing action for windows + kind #1

WIP: adding testing action for windows + kind

WIP: adding testing action for windows + kind #1

Workflow file for this run

name: Test Kubernetes on Local Kind Cluster
on:
push:
jobs:
test-k8s:
runs-on: windows-latest
steps:
- name: Verify Docker Installation
run: docker --version
- name: Start Docker Service
run: Start-Service docker
- name: Install Kind
run: |
curl -Lo kind.exe https://kind.sigs.k8s.io/dl/v0.20.0/kind-windows-amd64
move kind.exe C:\kind.exe
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/v1.28.0/bin/windows/amd64/kubectl.exe"
move kubectl.exe C:\kubectl.exe
- name: Create Kind Cluster
run: |
C:\kind.exe create cluster --name kind-cluster
- name: Verify Kind Cluster
run: |
C:\kind.exe get clusters
- name: Configure kubectl for Kind
run: |
C:\kind.exe export kubeconfig --name kind-cluster
C:\kubectl.exe cluster-info
- name: Deploy to Kubernetes
run: |
C:\kubectl.exe apply -f deployment.yaml
- name: Verify Deployment
run: |
C:\kubectl.exe get pods