Questions tagged [skaffold]

Questions using this tag should be about the command line tool for Kubernetes applications. Questions about installation and use are on topic. Bug reports and feature requests should be submitted as GitHub issues.

263 questions
1
vote
0 answers

Skaffold rebuilding images instead of using cache (Github Actions)

I am new to skaffold and trying to understand why Skaffold is not building images from '~/.skaffold/cache' and rebuilds new images when running on github actions. When running locally, I can see the Found Locally when Skaffold is checking…
Jeevy
  • 11
  • 2
1
vote
1 answer

How to build docker image for monorepo with nextjs?

I use npm to build in Jenkins and in Skaffold : build: artifacts: - image: containerregistry-ssss.net/container-sandbox/my-docs docker : dockerFile kaniko: buildContext: localDir: {} In docker : the following…
Smart Coder
  • 1,435
  • 19
  • 19
1
vote
1 answer

Skaffold testing during development

I am trying to add testing to a Node.js service. # package.json "scripts": { "start": "node src/server.js", "dev": "nodemon src/server.js", "test": "jest", "test-watch": "jest --watchAll" }, The problem is if I use test-watch, it…
BPDev
  • 397
  • 1
  • 9
1
vote
1 answer

How can I pass a gradle property to jib via skaffold

I have a gradle build file with the following jib definition: def baseImage = 'ghcr.io/tobias-neubert/eclipse-temurin:17.0.2_8-jre' jib { from { image = baseImage auth { username = githubUser password = githubPassword } …
Tobias Neubert
  • 141
  • 1
  • 10
1
vote
1 answer

Property googleCloudBuild is not allowed.yaml-schema: skaffold.yaml

I implemented skaffold with google, but at the time of setting the "googleCloudBuild" property it throws this error => The googleCloudBuild property is not allowed. I tried changing the Skaffold version, but it doesn't work. Attached image of the…
1
vote
1 answer

How to use a local cluster by "Skaffold" while using "Kubeadm" for the "Kubernetes"?

I am trying to deploy my NodeJS application on a local Kubernetes cluster, using skaffold but I get the following result: DEBU[0018] Pod "expiration-depl-7989dc5ff4-lkpvw" scheduled but not ready: checking container statuses subtask=-1…
best_of_man
  • 643
  • 2
  • 15
1
vote
0 answers

Skaffold wont deploy Kustomize resources

I'm using Skaffold to deploy an application and the version which I use is v2.0.1. The apiVersion is skaffold/v3 and I'm using the below command to deploy it. The helm resources are deployed but not the Kustomize resources. skaffold run -p…
Container-Man
  • 434
  • 1
  • 6
  • 17
1
vote
1 answer

Use local image in the cluster that skaffold is connected to

Assuming I have the following skaffold.yaml apiVersion: skaffold/v2beta12 kind: Config metadata: name: myapp build: local: push: true artifacts: - image: pkaramol/my-image docker: dockerfile: Dockerfile deploy: helm: …
pkaramol
  • 16,451
  • 43
  • 149
  • 324
1
vote
0 answers

Issue pulling image when using Skaffold

I'm trying to use Skaffold to deploy some services onto my local minikube cluster, however I am running into issues when it comes to pulling the images. I've specified the Dockerfile and would assume that it would check my local registry and upon…
SkinnyBetas
  • 461
  • 1
  • 5
  • 27
1
vote
1 answer

Building a multi module maven project with Skaffold and Jib

Is it possible to build a multi module maven project with skaffold and jib builder? My project structure: my-project-parent-module - my-project-main-module - my-project-lib-module my-project-main-module contains the Main class, and has the jib…
1
vote
1 answer

Google cloud build with pack and secrets manager not accessing environment variables

I'm using a standard gcr.io/k8s-skaffold/pack build function to build my app for google cloud run using google cloud build. In my cloudbuild.yaml I load 2 secrets from google secrets manager and pass it to the build function. The google cloud build…
1
vote
0 answers

skaffold dev error: retrieving image timeout

Running skaffold dev gives this error: listing files: parsing ONBUILD instructions: retrieving image "node:alpine": Get "https://auth.docker.io/token?scope=repository%3Alibrary%2Fnode%3Apull&service=registry.docker.io": dial tcp: i/o timeout I am…
Mrigendra
  • 11
  • 1
1
vote
1 answer

how to get go mod tidy not try to download local packages

I have a go monorepo with a few packages that at one point had an import path like github.com/user/ticketing/tickets/models/connection, but is a private repo and I'd rather not have to depend on the remote repo anyway for deployment on…
reactor
  • 1,722
  • 1
  • 14
  • 34
1
vote
3 answers

Error: error:0308010C:digital envelope routines::unsupported in my pod

I am getting an unfamiliar error that is keeping my k8s cluster from starting when I run skaffold dev. ➜ ticketing git:(master) ✗ kubectl logs client-depl-d86b58456-tv8l2 client@1.0.0 dev next Browserslist: caniuse-lite is outdated. Please run:…
Daniel
  • 14,004
  • 16
  • 96
  • 156
1
vote
0 answers

How to make Cloud Deploy releases idempotent

Currently, every time I deploy a new release using Cloud Deploy, my pods are restarted even if they don't have any changes. After some researching, I realized that pods are recreated because of skaffold.dev/run-id label is updated on every release.…