I’m running Okteto self-hosted in EKS on AWS. I have a fairly simple application with a simple Nginx container hosting a static site. Deploying it to Okteto works fine, and the site loads correctly. Similarly, running okteto up
to start a dev container, and then running the appropriate command within the dev container to start the web server (/docker-entrypoint.sh nginx -g "daemon off;"
) also works correctly, and the site loads properly.
However, when I make changes to files locally, they aren’t reflected in the container, and I don’t see any log messages about files being changed.
My manifest is fairly simple:
build:
xapiens-public-site:
context: src
dockerfile: Dockerfile
args:
DEV_ENVIRONMENT: true
DST_TIMEZONE: America/New_York
BASE_IMAGE_REGISTRY: ${OKTETO_BUILD_XAPIENS_PUBLIC_SITE_REGISTRY}
BASE_IMAGE_REPOSITORY: ${OKTETO_BUILD_XAPIENS_PUBLIC_SITE_REPOSITORY}
BASE_IMAGE_DIGEST: ${OKTETO_BUILD_XAPIENS_PUBLIC_SITE_TAG}
deploy:
- helm dependency update "helm"
- >-
helm upgrade --install "xapiens-public-site" "helm"
--set global.okteto.enabled=true
--set global.okteto.private=true
--set ingressRoute.enabled=false
--set ingress.enabled=true
--set global.environment="development"
--set global.instance="${OKTETO_NAMESPACE}"
--set image.registry="${OKTETO_BUILD_XAPIENS_PUBLIC_SITE_REGISTRY}"
--set image.repository="${OKTETO_BUILD_XAPIENS_PUBLIC_SITE_REPOSITORY}"
--set image.tag="${OKTETO_BUILD_XAPIENS_PUBLIC_SITE_TAG}"
--set config.hostname="public-site-${OKTETO_NAMESPACE}.dev.xapiens.net"
dev:
xapiens-public-site:
command: [ "bash" ]
sync:
- "./src/wwwroot:/app/wwwroot"
My .stignore
is very simple:
.git
When I log into the local Syncthing interface and open up the “recent changes” window, it DOES show the files were changed:
I’m not able to log into the remote Syncthing interface – the provided username and password don’t seem to be accepted by that one.
What would my next steps be to track down the issue? Thanks!