Skip to content

Commit

Permalink
WIP: try minikube
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo committed Jan 22, 2025
1 parent ef316cf commit 68f85a5
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 11 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/minikube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Minikube on Windows

on:
push:

jobs:
minikube:
runs-on: windows-latest

steps:
- name: Check out repository
uses: actions/checkout@v3

# - name: Install Chocolatey
# run: |
# Set-ExecutionPolicy Bypass -Scope Process -Force;
# [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
# iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

- name: Install Minikube and kubectl
run: |
choco install minikube kubernetes-cli -y
minikube version
kubectl version --client
- name: Start Minikube
run: |
minikube start --driver=hyperv --hyperv-virtual-switch "Default Switch"
minikube status
- name: Run Kubernetes Commands
run: |
kubectl get nodes
kubectl get pods -A
- name: Stop Minikube
run: |
minikube stop
19 changes: 9 additions & 10 deletions .github/workflows/pit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ on:
push:
jobs:
run:
runs-on: windows-latest
# services:
# docker:
# image: docker:dind
# options: --privileged --shm-size=2g
runs-on: ubuntu-22.04
services:
docker:
image: docker:dind
options: --privileged --shm-size=2g
steps:
- name: Check out branch
uses: actions/checkout@v4
Expand All @@ -55,17 +55,16 @@ jobs:
maven-version: '3.9.0'
- name: Set up Helm
uses: azure/[email protected]
# - name: Create k8s Kind Cluster
# uses: helm/kind-action@v1
# with:
# install_only: false
- name: Set up KinD
uses: helm/kind-action@v1
with:
install_only: false
- name: Run PiT
shell: bash
env:
CC_KEY: ${{ secrets.CC_KEY }}
CC_CERT: ${{ secrets.CC_CERT }}
run: |
choco install kind -y
[ -n "${{ inputs.skipcurrent }}" ] && A="$A --skip-current"
[ -n "${{ inputs.skipdev }}" ] && A="$A --skip-dev"
[ -n "${{ inputs.debug }}" ] && A="$A --debug"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test Kubernetes on Local Kind Cluster
on:
push:
workflow_dispatch:
jobs:
test-k8s:
runs-on: windows-latest
Expand Down

0 comments on commit 68f85a5

Please sign in to comment.