Score:0

How to use "microk8s kubectl" within a "skaffold.yaml" file?

pl flag

I have a skaffold.yamlfile like below:

apiVersion: skaffold/v2alpha3
kind: Config
deploy:
  mk:
    manifests:
      - ./infra/k8s/*
build:
  local:
    push: false
  artifacts:
    - image: learnertester/auth
      context: auth
      docker:
        dockerfile: Dockerfile
      sync:
        manual:
          - src: 'src/**/*.ts'
            dest: .
    - image: learnertester/ticketing-client

Now, I have installed microk8s on Ubuntu 22.04 and want to use it. I have also defined an alias mk for microk8s kubectl. But when I change the following line:

deploy:
  kubectl:

To:

deploy:
  mk:

I get the below error running skaffold dev:

parsing skaffold config: error parsing skaffold configuration file: unable to parse config: yaml: unmarshal errors:
  line 55: field mk not found in type v2alpha3.DeployConfig

How should I fix that?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.