Skip to content

Commit bd12187

Browse files
authored
add documentation for minikube deployment using skaffold. (#1762)
* add documentation for minikube deployment using skaffold. * fix to respect markdownlint * Add links to skaffold configurations from api-platform repo
1 parent 3811502 commit bd12187

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

deployment/minikube.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,22 @@ $ helm install my-project helm/api-platform \
5151
Copy and paste the commands displayed in the terminal to enable the port forwarding then go to `http://localhost:8080` to access your application!
5252

5353
Run `minikube dashboard` at any moment to see the state of your deployments.
54+
55+
## Using Skaffold
56+
57+
Skaffold is a tool for Kubernetes development: [https://skaffold.dev/](https://skaffold.dev/).
58+
59+
It will build and deploy automatically your app in Kubernetes and apply every changes. The default configuration use minikube and helm. More configurations are available in Skaffold documentation.
60+
61+
First, install the [skaffold CLI](https://skaffold.dev/docs/install/#standalone-binary).
62+
63+
Then, run minikube:
64+
65+
minikube start
66+
67+
Add Skaffold configuration in the file `./helm/skaffold.yaml`. You can find a [complete configuration file for minikube](https://github.com/api-platform/api-platform/blob/main/helm/skaffold.yaml) with its [Helm values override](https://github.com/api-platform/api-platform/blob/main/helm/skaffold-values.yaml).
68+
69+
Finally, go to the helm folder, and run skaffold in dev mode:
70+
71+
cd ./helm
72+
skaffold dev

0 commit comments

Comments
 (0)