skaffold init failing

454 views
Skip to first unread message

Steven Barnes

unread,
Apr 27, 2021, 10:50:21 AM4/27/21
to skaffold-users
Hi,

New to skaffold so I'm sure I'm just doing something wrong here. I thought based on reading the documentation (specifically https://skaffold.dev/docs/pipeline-stages/init/) that all I needed is a Dockerfile to get started.

I have a simple go application with a single Dockerfile (named Dockerfile) in the root.

Here is the problem

> skaffold init               
one or more valid Kubernetes manifests are required to run skaffold

> skaffold init --analyze=true
{"dockerfiles":["Dockerfile"]}

> skaffold init -v Debug      
INFO[0000] Skaffold &{Version:v1.22.0 ConfigVersion:skaffold/v2beta14 GitVersion: GitCommit:4e67ac7be12926c9714c48b4bd2b3562c6e1511b BuildDate:2021-04-15T09:28:36Z GoVersion:go1.16.3 Compiler:gc Platform:darwin/amd64} 
DEBU[0000] Disable housekeeping messages for command explicitly 
DEBU[0000] apiVersion not present in yaml, continuing   
one or more valid Kubernetes manifests are required to run skaffold

So it seems to be detecting the Dockerfile, but then seems to want k8s manifest files on top of that.

I'm confused.

Brian de Alwis

unread,
Apr 28, 2021, 12:22:05 AM4/28/21
to Steven Barnes, skaffold-users
Hi Steve.

Try `skaffold init --generate-manifests`.  Let us know how it works out.

Brian.

--
You received this message because you are subscribed to the Google Groups "skaffold-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skaffold-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skaffold-users/f55b32d5-4e3c-4da3-aef0-9bffaf86c590n%40googlegroups.com.

Steven Barnes

unread,
Apr 28, 2021, 2:03:52 PM4/28/21
to skaffold-users
Thank you Brian. That worked
Reply all
Reply to author
Forward
0 new messages