<aside> ⏰ 本文主要介绍如何自定义调度器

</aside>

初始化

$ skaffold init   
? Choose the builder to build image cnych/sample-scheduler  [Use arrows to move, type to filter]
> Docker (Dockerfile)
  None (image not built from these sources)

$ skaffold init
? Choose the builder to build image cnych/sample-scheduler Docker (Dockerfile)
? Choose the builder to build image nginx None (image not built from these sources)
apiVersion: skaffold/v2beta14
kind: Config
metadata:
  name: scheduler-demo
build:
  artifacts:
  - image: cnych/sample-scheduler
    docker:
      dockerfile: Dockerfile
deploy:
  kubectl:
    manifests:
    - deploy/nginx.yaml
    - deploy/sample-scheduler.yaml

? Do you want to write this configuration to skaffold.yaml? Yes
Configuration skaffold.yaml was written
You can now run [skaffold build] to build the artifacts
or [skaffold run] to build and deploy
or [skaffold dev] to enter development mode, with auto-redeploy