Issue with running skaffold dev on Ubuntu

Viewed 37

Trying to use skaffold to run an app on Ubuntu. The exact same project runs just fine on MacOS but fails to run on Ubuntu 20.04. It's worth mentioning that if I simply run kubectl apply -f... everything works as expected. It's only when using skaffold I get the error message he Deployment "auth-deployment" is invalid: spec.template.spec.containers[0].image: Required value

Here is the the yaml file for the deployment and service:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: auth-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: auth
  template:
    metadata:
      labels:
        app: auth
    spec:
      containers:
        - name: auth
          image: smelkonian/auth
---
apiVersion: v1
kind: Service
metadata:
  name: auth-service
spec:
  selector:
    app: auth
  ports:
    - name: auth
      protocol: TCP
      port: 3000
      targetPort: 3000

And the skaffold.yaml:

apiVersion: skaffold/v2beta29
kind: Config
deploy:
  kubectl:
    manifests:
      - ./k8s/*
build:
  local:
    push: false
  artifacts:
    - image: smelkonian/auth
      context: auth
      docker:
        dockerfile: Dockerfile
      sync:
        manual:
          - src: 'src/**/*.ts'
            dest: .
0 Answers
Related