Skaffold NestJS Angular example with local remote and kaniko configurations
git clone https://github.com/svtslv/skaffold-nestjs-angular
cd skaffold-nestjs-angular/skaffold-kubernetes
kubectl create ns skaffold-nestjs-angular-namespace
Update deploy.kubeContext
-> skaffold-kubernetes/skaffold-(local|remote|kaniko).yaml
Local docker and local kubernetes
skaffold dev -f skaffold-local.yaml --port-forward
Open http://localhost:3000
and http://localhost:4200
change the code and enjoy.
Local docker and remote kubernetes
skaffold dev \
-f skaffold-remote.yaml \
--port-forward \
--default-repo=registry.gitlab.com/USERNAME/PROJECT
Remote builder and remote kubernetes
- Update
AUTH_SECRET_KEY
->skaffold-kubernetes/_secret-example.yaml
- Update
build.cluster.dockerConfig.path
->skaffold-kubernetes/skaffold-kaniko.yaml
skaffold dev \
-f skaffold-kaniko.yaml \
--port-forward \
--default-repo=registry.gitlab.com/USERNAME/PROJECT
echo -n 'username:password' | base64
MIT