Skip to content

Commit 4ee1cb0

Browse files
committed
WIP: try minikube
1 parent ef316cf commit 4ee1cb0

File tree

3 files changed

+50
-11
lines changed

3 files changed

+50
-11
lines changed

.github/workflows/minikube.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Minikube on Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
minikube:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v3
15+
16+
# - name: Install Chocolatey
17+
# run: |
18+
# Set-ExecutionPolicy Bypass -Scope Process -Force;
19+
# [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
20+
# iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
21+
22+
- name: Install Minikube and kubectl
23+
run: |
24+
choco install minikube kubernetes-cli -y
25+
minikube version
26+
kubectl version --client
27+
28+
- name: Start Minikube
29+
run: |
30+
minikube start --driver=hyperv --hyperv-virtual-switch "Default Switch"
31+
minikube status
32+
33+
- name: Run Kubernetes Commands
34+
run: |
35+
kubectl get nodes
36+
kubectl get pods -A
37+
38+
- name: Stop Minikube
39+
run: |
40+
minikube stop

.github/workflows/pit.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ on:
2929
push:
3030
jobs:
3131
run:
32-
runs-on: windows-latest
33-
# services:
34-
# docker:
35-
# image: docker:dind
36-
# options: --privileged --shm-size=2g
32+
runs-on: ubuntu-22.04
33+
services:
34+
docker:
35+
image: docker:dind
36+
options: --privileged --shm-size=2g
3737
steps:
3838
- name: Check out branch
3939
uses: actions/checkout@v4
@@ -55,17 +55,16 @@ jobs:
5555
maven-version: '3.9.0'
5656
- name: Set up Helm
5757
uses: azure/[email protected]
58-
# - name: Create k8s Kind Cluster
59-
# uses: helm/kind-action@v1
60-
# with:
61-
# install_only: false
58+
- name: Set up KinD
59+
uses: helm/kind-action@v1
60+
with:
61+
install_only: false
6262
- name: Run PiT
6363
shell: bash
6464
env:
6565
CC_KEY: ${{ secrets.CC_KEY }}
6666
CC_CERT: ${{ secrets.CC_CERT }}
6767
run: |
68-
choco install kind -y
6968
[ -n "${{ inputs.skipcurrent }}" ] && A="$A --skip-current"
7069
[ -n "${{ inputs.skipdev }}" ] && A="$A --skip-dev"
7170
[ -n "${{ inputs.debug }}" ] && A="$A --debug"

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Test Kubernetes on Local Kind Cluster
22
on:
3-
push:
3+
workflow_dispatch:
44
jobs:
55
test-k8s:
66
runs-on: windows-latest

0 commit comments

Comments
 (0)