k3ctl

command module
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 10 Imported by: 0

README

k3ctl management k3s kubernetes clusters

Download and install

curl -sfL https://raw.githubusercontent.com/grengojbo/k3ctl/main/install.sh | sh -
export AWS_ACCESS_KEY_ID=<YOUR_ACCESS_KEY_ID>
export AWS_SECRET_ACCESS_KEY=<YOUR_SECRET_ACCESS_KEY>
export ARM_CLIENT_ID="WWWWWWWW-WWWW-WWWW-WWWW-WWWWWWWWWWWW" && \
export ARM_CLIENT_SECRET="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" && \
export ARM_TENANT_ID="YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY" && \
export ARM_SUBSCRIPTION_ID="ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ"
export HCLOUD_TOKEN=XXXXXXXXXXXXXX

или .env

DB_PASSWORD=XXX

Example create cluster

./k3ctl cluster create sample
./k3ctl apply -c iwisops

For developers

если bastion.Name == "local" то выполняем команду локально

Для работы через бастион необходимо указать

  bastions:
    - name: mybastion
      user: noname
      address: 192.168.0.2
      # sshPort: 2222
      # sshAuthorizedKey: ~/keys/my_rsa
  nodes:
    - name: k3-master
      user: nonameTwo
      bastion: mybastion

Неизменять текущий контест

./k3ctl kubeconfig get sample --kubeconfig-switch-context=false

Удаление ноды из кластера

./k3ctl node delete <node name> -c <cluster name> 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the k3s v1alpha1 API group +kubebuilder:object:generate=true +groupName=k3s.bbox.kiev.ua
Package v1alpha1 contains API Schema definitions for the k3s v1alpha1 API group +kubebuilder:object:generate=true +groupName=k3s.bbox.kiev.ua
cmd
pkg
k3s

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL