Github Action

Github Action #

本文档介绍了在 Github Action 中使用的步骤。

用法 #

- uses: kubernetes-sigs/kwok@main
  with:
    # Required: The command to install ('kwok' or 'kwokctl')
    command: ''
    # Optional: Specific version of command to install, defaults to latest release
    kwok-version: ''

创建集群 #

- name: Set up kwokctl
  uses: kubernetes-sigs/kwok@main
  with:
    command: kwokctl
- run: kwokctl create cluster
  env:
    KWOK_KUBE_VERSION: v1.28.0

后续步骤 #

现在,您可以在 Kubernetes 集群中使用kwok管理节点和 Pod