mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-09-27 11:42:19 +08:00
feat: use kind on macos
This commit is contained in:
44
.github/workflows/test.yml
vendored
44
.github/workflows/test.yml
vendored
@@ -104,16 +104,25 @@ jobs:
|
|||||||
uses: docker/actions-toolkit/.github/actions/macos-setup-qemu@19ca9ade20f5da695f76a10988d6532058575f82
|
uses: docker/actions-toolkit/.github/actions/macos-setup-qemu@19ca9ade20f5da695f76a10988d6532058575f82
|
||||||
|
|
||||||
- name: Set up Docker
|
- name: Set up Docker
|
||||||
uses: crazy-max/ghaction-setup-docker@v3
|
uses: docker/setup-docker-action@v4
|
||||||
|
with:
|
||||||
- name: Install minikube
|
daemon-config: |
|
||||||
|
{
|
||||||
|
"debug": true,
|
||||||
|
"features": {
|
||||||
|
"containerd-snapshotter": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- uses: azure/setup-kubectl@v4
|
||||||
|
- name: Install kind
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
docker version
|
docker version
|
||||||
brew install minikube
|
brew install kind
|
||||||
minikube start --driver=docker
|
kind create cluster
|
||||||
|
kubectl cluster-info
|
||||||
|
kubectl config view --flatten --raw
|
||||||
kubectl get pod -A -o wide
|
kubectl get pod -A -o wide
|
||||||
minikube kubectl -- get pod -A -o wide
|
|
||||||
|
|
||||||
- name: Kubernetes info
|
- name: Kubernetes info
|
||||||
run: |
|
run: |
|
||||||
@@ -123,14 +132,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Install demo bookinfo
|
- name: Install demo bookinfo
|
||||||
run: |
|
run: |
|
||||||
minikube image load --remote ghcr.io/kubenetworks/examples-bookinfo-details-v1:1.16.2
|
|
||||||
minikube image load --remote ghcr.io/kubenetworks/examples-bookinfo-ratings-v1:1.16.2
|
|
||||||
minikube image load --remote ghcr.io/kubenetworks/examples-bookinfo-reviews-v1:1.16.2
|
|
||||||
minikube image load --remote ghcr.io/kubenetworks/examples-bookinfo-productpage-v1:1.16.2
|
|
||||||
minikube image load --remote ghcr.io/kubenetworks/authors:latest
|
|
||||||
minikube image load --remote ghcr.io/kubenetworks/nginx:latest
|
|
||||||
minikube image ls
|
|
||||||
eval $(minikube docker-env)
|
|
||||||
kubectl apply -f https://raw.githubusercontent.com/kubenetworks/kubevpn/master/samples/bookinfo.yaml
|
kubectl apply -f https://raw.githubusercontent.com/kubenetworks/kubevpn/master/samples/bookinfo.yaml
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
@@ -170,9 +171,22 @@ jobs:
|
|||||||
go-version: '1.23'
|
go-version: '1.23'
|
||||||
|
|
||||||
- name: Set up Docker
|
- name: Set up Docker
|
||||||
uses: crazy-max/ghaction-setup-docker@v3
|
uses: docker/setup-docker-action@v4
|
||||||
|
with:
|
||||||
|
daemon-config: |
|
||||||
|
{
|
||||||
|
"debug": true,
|
||||||
|
"features": {
|
||||||
|
"containerd-snapshotter": true
|
||||||
|
}
|
||||||
|
}
|
||||||
- run: |
|
- run: |
|
||||||
docker info --format '{{.OSType}}'
|
docker info --format '{{.OSType}}'
|
||||||
|
choco install kind
|
||||||
|
kind create cluster
|
||||||
|
kubectl cluster-info
|
||||||
|
kubectl config view --flatten --raw
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
choco install minikube
|
choco install minikube
|
||||||
minikube start --driver=docker
|
minikube start --driver=docker
|
||||||
|
Reference in New Issue
Block a user