mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/kube-vip/kube-vip.git
synced 2026-09-20 08:03:47 +08:00
Adds skaffold for development
Signed-off-by: Dan Finneran <dan@thebsdbox.co.uk>
This commit is contained in:
11
README.md
11
README.md
@@ -66,6 +66,17 @@ Thanks for taking the time to join our community and start contributing! We welc
|
||||
|
||||
:warning: This project has issue compiling on MacOS, please compile it on linux distribution
|
||||
|
||||
Additionally it is now relatively easy and quick to develop with [skaffold](https://skaffold.dev/), and the `skaffold.yaml` exists within the root folder of the gir repository.
|
||||
|
||||
### Set up a kind development environment
|
||||
|
||||
1. `kind create cluster --config ./testing/kind.yaml`
|
||||
2. `kubectl apply -f https://kube-vip.io/manifests/rbac.yaml`
|
||||
3. Create a load balancer range `configMap` from the kind cluster
|
||||
4. Apply the CCM manifest
|
||||
5. Start skaffold with `skaffold dev`
|
||||
6. Start developing and see changes applied in real-time.
|
||||
|
||||
## Star History
|
||||
|
||||
[](https://star-history.com/#kube-vip/kube-vip&Date)
|
||||
|
||||
14
skaffold.yaml
Normal file
14
skaffold.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: skaffold/v4beta13
|
||||
kind: Config
|
||||
metadata:
|
||||
name: kube-vip
|
||||
build:
|
||||
local:
|
||||
useBuildkit: true
|
||||
artifacts:
|
||||
- image: ghcr.io/kube-vip/kube-vip
|
||||
docker:
|
||||
dockerfile: Dockerfile
|
||||
manifests:
|
||||
rawYaml:
|
||||
- testing/kind/kube-vip-egress.yaml
|
||||
Reference in New Issue
Block a user