.k8s/
βββ base/
β βββ namespace.yaml
β βββ mysql/
β β βββ statefulset.yaml
β β βββ service.yaml
β βββ facturascripts/
β βββ deployment.yaml
β βββ service.yaml
β βββ pvc.yaml
βββ overlays/
βββ prod/
βββ kustomization.yaml
βββ ingress.yaml
- Download & extract
cd .k8s
- Deploy the production overlay:
kubectl apply -k overlays/prod
- Access the app
- If you use an Ingress controller, browse to
https://facturascripts.localtest.me
- Otherwise use the ClusterIP/NodePort you prefer.
- If you use an Ingress controller, browse to
- Initial database credentials
- Host:
mysql
- User:
root
- Password: set in
secretGenerator
.
- Host:
Customize the MySQL root password or storage sizes by editing the values inside overlays/prod/kustomization.yaml before applying.
.k8s/
βββ base/
β βββ namespace.yaml
β βββ mysql/
β β βββ statefulset.yaml
β β βββ service.yaml
β βββ facturascripts/
β βββ deployment.yaml
β βββ service.yaml
β βββ pvc.yaml
βββ overlays/
βββ prod/
βββ kustomization.yaml
βββ ingress.yaml
- Descarga y extrae
cd .k8s
- Despliega el overlay de producciΓ³n:
kubectl apply -k overlays/prod
- Accede a la aplicaciΓ³n
- Con un Ingress:
https://facturascripts.localtest.me
- Sin Ingress: usa la IP o el puerto que prefieras.
- Con un Ingress:
- Credenciales iniciales de la base de datos
- Host:
mysql
- Usuario:
root
- ContraseΓ±a: definida en
secretGenerator
- Host:
Personaliza la contraseΓ±a root de MySQL o el tamaΓ±o de los volΓΊmenes editando overlays/prod/kustomization.yaml antes de aplicar los manifiestos.