Files
Phraseanet/doc/infra/minikube/minikube.md
Nicolas Maillat 2c20ddf73b PHRAS-3644 fix traefik and 4.1.6-rc2 changelog draft (#4000)
* 4.1.6-rc2 changelog

* 4.1.6-rc2 changelog

* PHRAS-3485 fix traefik under Phrasea

* fixe typo
2022-03-31 17:57:08 +02:00

52 lines
1.0 KiB
Markdown

# Deploy stack to minikube
## Setup
status : Alpha
```bash
minikube start
minikube addons enable ingress
```
Get the minikube IP:
```bash
minikube ip
```
Refer to [sample.yaml](../infra/helm/sample.yaml) to get all domains.
Add these domains to your `/etc/hosts`:
```
# Alchemy Minikube
192.168.49.2 phraseanet-bo.alchemy.kube
# ... add other domains
```
For a quicker setup we will use the nginx configuration explained in [dev-with-nginx](./dev-with-nginx.md)
## Build local image in minikube
If you need to test your fresh image directly into minikube cluster, you need to build them
with the Mminikube Docker daemon:
```bash
eval $(minikube docker-env)
docker-compose build
```
Alternatively you can run a registry in minikube and push your images:
https://minikube.sigs.k8s.io/docs/handbook/pushing/#4-pushing-to-an-in-cluster-using-registry-add
If your minikube server name is not "minikube" define it in MINIKUBE_NAME
```bash
infra/dev/deploy-minikube.sh install
infra/dev/deploy-minikube.sh update
infra/dev/deploy-minikube.sh uninstall
```