From cefd633176992b06750ee1a136762f0374d749a3 Mon Sep 17 00:00:00 2001 From: Agustin Ramiro Diaz Date: Fri, 25 Nov 2022 09:36:27 -0300 Subject: [PATCH] upgrade okteto yaml to v2 Signed-off-by: Agustin Ramiro Diaz --- okteto.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/okteto.yml b/okteto.yml index 75668c6..f335035 100644 --- a/okteto.yml +++ b/okteto.yml @@ -1,14 +1,17 @@ -name: reloader-reloader -image: okteto/golang:1 -command: bash -securityContext: - capabilities: - add: - - SYS_PTRACE -volumes: - - /go/pkg/ - - /root/.cache/go-build/ -sync: - - .:/app -forward: - - 2345:2345 +dev: + reloader-reloader: + image: okteto/golang:1 + command: bash + volumes: + - /go/pkg/ + - /root/.cache/go-build/ + sync: + - .:/app + forward: + - 2345:2345 + workdir: /app + autocreate: true + securityContext: + capabilities: + add: + - SYS_PTRACE