Skip to content

Commit 68f85a5

Browse files
committed
WIP: try minikube
1 parent ef316cf commit 68f85a5

File tree

3 files changed

+48
-11
lines changed

3 files changed

+48
-11
lines changed

.github/workflows/minikube.yml

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