WIP: try minikube #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: switch to Windows | |
shell: pwsh | |
run: | | |
Get-VMSwitch | |
New-VMSwitch -SwitchName "MinikubeSwitch" -SwitchType External | |
- name: Start Minikube | |
run: | | |
minikube start | |
# minikube start | |
# | |
minikube status | |
- name: Run Kubernetes Commands | |
run: | | |
kubectl get nodes | |
kubectl get pods -A | |
- name: Stop Minikube | |
run: | | |
minikube stop |