これは未公開の文書です SUSE® Virtual Clusters v1.2.0 (Dev).

K3k CLIコマンド

k3kcli

K3K用のCLIです。

オプション

      --debug               Turn on debug logs
  -h, --help                help for k3kcli
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli クラスタ

K3kクラスタコマンド。

オプション

  -h, --help   help for cluster

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli クラスタ作成

新しいクラスタを作成します。

k3kcli cluster create [flags]

k3kcli cluster create [command options] NAME

オプション

      --agent-args strings            agents extra arguments
      --agent-envs strings            agents extra Envs
      --agents int                    number of agents
      --annotations stringArray       Annotations to add to the cluster object (e.g. key=value)
      --cluster-cidr string           cluster CIDR
      --custom-certs string           The path for custom certificate directory
  -h, --help                          help for create
      --kubeconfig-server string      override the kubeconfig server host
      --labels stringArray            Labels to add to the cluster object (e.g. key=value)
      --mirror-host-nodes             Mirror Host Cluster Nodes
      --mode string                   k3k mode type (shared, virtual) (default "shared")
  -n, --namespace string              namespace of the k3k cluster
      --persistence-type string       persistence mode for the nodes (dynamic, ephemeral) (default "dynamic")
      --policy string                 The policy to create the cluster in
      --server-args strings           servers extra arguments
      --server-envs strings           servers extra Envs
      --servers int                   number of servers (default 1)
      --service-cidr string           service CIDR
      --storage-class-name string     storage class name for dynamic persistence type
      --storage-request-size string   storage size for dynamic persistence type
      --timeout duration              The timeout for waiting for the cluster to become ready (e.g., 10s, 5m, 1h). (default 3m0s)
      --token string                  token of the cluster
      --version string                k3s version

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli クラスタ削除

既存のクラスタを削除します。

k3kcli cluster delete [flags]

k3kcli cluster delete [command options] NAME

オプション

  -h, --help               help for delete
      --keep-data          keeps persistence volumes created for the cluster after deletion
  -n, --namespace string   namespace of the k3k cluster

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli クラスタ一覧

すべての既存のクラスタを一覧表示します。

k3kcli cluster list [flags]

k3kcli cluster list [command options]

オプション

  -h, --help               help for list
  -n, --namespace string   namespace of the k3k cluster

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli クラスタ更新

既存のクラスタを更新します。

k3kcli cluster update [flags]

k3kcli cluster update [command options] NAME

オプション

      --agents int32              number of agents
      --annotations stringArray   Annotations to add to the cluster object (e.g. key=value)
  -h, --help                      help for update
      --labels stringArray        Labels to add to the cluster object (e.g. key=value)
  -n, --namespace string          namespace of the k3k cluster
  -y, --no-confirm                Skip interactive approval before applying update
      --servers int32             number of servers (default 1)
      --version string            k3s version

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli kubeconfig

クラスタのkubeconfigを管理します。

オプション

  -h, --help   help for kubeconfig

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli kubeconfig 生成

クラスタのkubeconfigを生成します。

k3kcli kubeconfig generate [flags]

オプション

      --altNames strings           altNames of the generated certificates for the kubeconfig
      --cn string                  Common name (CN) of the generated certificates for the kubeconfig (default "system:admin")
      --config-name string         the name of the generated kubeconfig file
      --expiration-days int        Expiration date of the certificates used for the kubeconfig (default 365)
  -h, --help                       help for generate
      --kubeconfig-server string   override the kubeconfig server host
      --name string                cluster name
  -n, --namespace string           namespace of the k3k cluster
      --org strings                Organization name (ORG) of the generated certificates for the kubeconfig

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli ポリシー

K3kポリシーコマンド。

オプション

  -h, --help   help for policy

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli ポリシー作成

新しいポリシーを作成します。

k3kcli policy create [flags]

k3kcli policy create [command options] NAME

オプション

      --annotations stringArray   Annotations to add to the policy object (e.g. key=value)
  -h, --help                      help for create
      --labels stringArray        Labels to add to the policy object (e.g. key=value)
      --mode string               The allowed mode type of the policy (default "shared")
      --namespace strings         The namespaces where to bind the policy
      --overwrite                 Overwrite namespace binding of existing policy

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli ポリシー削除

既存のポリシーを削除します。

k3kcli policy delete [flags]

k3kcli policy delete [command options] NAME

オプション

  -h, --help   help for delete

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)

k3kcli ポリシー一覧

すべての既存のポリシーを一覧表示します。

k3kcli policy list [flags]

k3kcli policy list [command options]

オプション

  -h, --help   help for list

親コマンドから継承されたオプション

      --debug               Turn on debug logs
      --kubeconfig string   kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)