@ -1,4 +1,4 @@
## tk
## go tk
Command line utility for assembling Kubernetes CD pipelines
Command line utility for assembling Kubernetes CD pipelines
@ -10,28 +10,28 @@ Command line utility for assembling Kubernetes CD pipelines the GitOps way.
```
```
# Check prerequisites
# Check prerequisites
tk check --pre
go tk check --pre
# Install the latest version of the toolkit
# Install the latest version of the toolkit
tk install --version=master
go tk install --version=master
# Create a source from a public Git repository
# Create a source from a public Git repository
tk create source git webapp-latest \
go tk create source git webapp-latest \
--url=https://github.com/stefanprodan/podinfo \
--url=https://github.com/stefanprodan/podinfo \
--branch=master \
--branch=master \
--interval=3m
--interval=3m
# List GitRepository sources and their status
# List GitRepository sources and their status
tk get sources git
go tk get sources git
# Trigger a GitRepository source reconciliation
# Trigger a GitRepository source reconciliation
tk reconcile source git gitops-system
go tk reconcile source git gitops-system
# Export GitRepository sources in YAML format
# Export GitRepository sources in YAML format
tk export source git --all > sources.yaml
go tk export source git --all > sources.yaml
# Create a Kustomization for deploying a series of microservices
# Create a Kustomization for deploying a series of microservices
tk create kustomization webapp-dev \
go tk create kustomization webapp-dev \
--source=webapp-latest \
--source=webapp-latest \
--path="./deploy/webapp/" \
--path="./deploy/webapp/" \
--prune=true \
--prune=true \
@ -42,32 +42,32 @@ Command line utility for assembling Kubernetes CD pipelines the GitOps way.
--health-check-timeout=2m
--health-check-timeout=2m
# Trigger a git sync of the Kustomization's source and apply changes
# Trigger a git sync of the Kustomization's source and apply changes
tk reconcile kustomization webapp-dev --with-source
go tk reconcile kustomization webapp-dev --with-source
# Suspend a Kustomization reconciliation
# Suspend a Kustomization reconciliation
tk suspend kustomization webapp-dev
go tk suspend kustomization webapp-dev
# Export Kustomizations in YAML format
# Export Kustomizations in YAML format
tk export kustomization --all > kustomizations.yaml
go tk export kustomization --all > kustomizations.yaml
# Resume a Kustomization reconciliation
# Resume a Kustomization reconciliation
tk resume kustomization webapp-dev
go tk resume kustomization webapp-dev
# Delete a Kustomization
# Delete a Kustomization
tk delete kustomization webapp-dev
go tk delete kustomization webapp-dev
# Delete a GitRepository source
# Delete a GitRepository source
tk delete source git webapp-latest
go tk delete source git webapp-latest
# Uninstall the toolkit and delete CRDs
# Uninstall the toolkit and delete CRDs
tk uninstall --crds
go tk uninstall --crds
```
```
### Options
### Options
```
```
-h, --help help for tk
-h, --help help for go tk
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
--namespace string the namespace scope for this operation (default "gitops-system")
--namespace string the namespace scope for this operation (default "gitops-system")
--timeout duration timeout for this operation (default 5m0s)
--timeout duration timeout for this operation (default 5m0s)
@ -76,16 +76,16 @@ Command line utility for assembling Kubernetes CD pipelines the GitOps way.
### SEE ALSO
### SEE ALSO
* [ tk bootstrap]( tk_bootstrap.md) - Bootstrap toolkit components
* [go tk bootstrap](go tk_bootstrap.md) - Bootstrap toolkit components
* [ tk check]( tk_check.md) - Check requirements and installation
* [go tk check](go tk_check.md) - Check requirements and installation
* [ tk completion]( tk_completion.md) - Generates bash completion scripts
* [go tk completion](go tk_completion.md) - Generates bash completion scripts
* [ tk create]( tk_create.md) - Create or update sources and resources
* [go tk create](go tk_create.md) - Create or update sources and resources
* [ tk delete]( tk_delete.md) - Delete sources and resources
* [go tk delete](go tk_delete.md) - Delete sources and resources
* [ tk export]( tk_export.md) - Export resources in YAML format
* [go tk export](go tk_export.md) - Export resources in YAML format
* [ tk get]( tk_get.md) - Get sources and resources
* [go tk get](go tk_get.md) - Get sources and resources
* [ tk install]( tk_install.md) - Install the toolkit components
* [go tk install](go tk_install.md) - Install the toolkit components
* [ tk reconcile]( tk_reconcile.md) - Reconcile sources and resources
* [go tk reconcile](go tk_reconcile.md) - Reconcile sources and resources
* [ tk resume]( tk_resume.md) - Resume suspended resources
* [go tk resume](go tk_resume.md) - Resume suspended resources
* [ tk suspend]( tk_suspend.md) - Suspend resources
* [go tk suspend](go tk_suspend.md) - Suspend resources
* [ tk uninstall]( tk_uninstall.md) - Uninstall the toolkit components
* [go tk uninstall](go tk_uninstall.md) - Uninstall the toolkit components