Rename gotk-system namespace to flux-system
Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
8
.github/workflows/bootstrap.yaml
vendored
8
.github/workflows/bootstrap.yaml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
||||||
- name: uninstall
|
- name: uninstall
|
||||||
run: |
|
run: |
|
||||||
./bin/gotk suspend kustomization gotk-system
|
./bin/gotk suspend kustomization flux-system
|
||||||
./bin/gotk uninstall --resources --crds -s
|
./bin/gotk uninstall --resources --crds -s
|
||||||
- name: bootstrap reinstall
|
- name: bootstrap reinstall
|
||||||
run: |
|
run: |
|
||||||
@@ -73,6 +73,6 @@ jobs:
|
|||||||
- name: Debug failure
|
- name: Debug failure
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
kubectl -n gotk-system get all
|
kubectl -n flux-system get all
|
||||||
kubectl -n gotk-system logs deploy/source-controller
|
kubectl -n flux-system logs deploy/source-controller
|
||||||
kubectl -n gotk-system logs deploy/kustomize-controller
|
kubectl -n flux-system logs deploy/kustomize-controller
|
||||||
|
|||||||
8
.github/workflows/e2e.yaml
vendored
8
.github/workflows/e2e.yaml
vendored
@@ -146,7 +146,7 @@ jobs:
|
|||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
kubectl version --client --short
|
kubectl version --client --short
|
||||||
kubectl -n gotk-system get all
|
kubectl -n flux-system get all
|
||||||
kubectl -n gotk-system get kustomizations -oyaml
|
kubectl -n flux-system get kustomizations -oyaml
|
||||||
kubectl -n gotk-system logs deploy/source-controller
|
kubectl -n flux-system logs deploy/source-controller
|
||||||
kubectl -n gotk-system logs deploy/kustomize-controller
|
kubectl -n flux-system logs deploy/kustomize-controller
|
||||||
|
|||||||
@@ -41,9 +41,9 @@ var createAlertCmd = &cobra.Command{
|
|||||||
Example: ` # Create an Alert for kustomization events
|
Example: ` # Create an Alert for kustomization events
|
||||||
gotk create alert \
|
gotk create alert \
|
||||||
--event-severity info \
|
--event-severity info \
|
||||||
--event-source Kustomization/gotk-system \
|
--event-source Kustomization/flux-system \
|
||||||
--provider-ref slack \
|
--provider-ref slack \
|
||||||
gotk-system
|
flux-system
|
||||||
`,
|
`,
|
||||||
RunE: createAlertCmdRun,
|
RunE: createAlertCmdRun,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ var installCmd = &cobra.Command{
|
|||||||
Short: "Install the toolkit components",
|
Short: "Install the toolkit components",
|
||||||
Long: `The install command deploys the toolkit components in the specified namespace.
|
Long: `The install command deploys the toolkit components in the specified namespace.
|
||||||
If a previous version is installed, then an in-place upgrade will be performed.`,
|
If a previous version is installed, then an in-place upgrade will be performed.`,
|
||||||
Example: ` # Install the latest version in the gotk-system namespace
|
Example: ` # Install the latest version in the flux-system namespace
|
||||||
gotk install --version=latest --namespace=gotk-system
|
gotk install --version=latest --namespace=flux-system
|
||||||
|
|
||||||
# Dry-run install for a specific version and a series of components
|
# Dry-run install for a specific version and a series of components
|
||||||
gotk install --dry-run --version=v0.0.7 --components="source-controller,kustomize-controller"
|
gotk install --dry-run --version=v0.0.7 --components="source-controller,kustomize-controller"
|
||||||
@@ -46,7 +46,7 @@ If a previous version is installed, then an in-place upgrade will be performed.`
|
|||||||
gotk install --dry-run --verbose
|
gotk install --dry-run --verbose
|
||||||
|
|
||||||
# Write install manifests to file
|
# Write install manifests to file
|
||||||
gotk install --export > gotk-system.yaml
|
gotk install --export > flux-system.yaml
|
||||||
`,
|
`,
|
||||||
RunE: installCmdRun,
|
RunE: installCmdRun,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ limitations under the License.
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/fluxcd/toolkit/pkg/manifestgen/install"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@@ -28,6 +27,7 @@ import (
|
|||||||
_ "k8s.io/client-go/plugin/pkg/client/auth"
|
_ "k8s.io/client-go/plugin/pkg/client/auth"
|
||||||
|
|
||||||
gotklog "github.com/fluxcd/toolkit/pkg/log"
|
gotklog "github.com/fluxcd/toolkit/pkg/log"
|
||||||
|
"github.com/fluxcd/toolkit/pkg/manifestgen/install"
|
||||||
)
|
)
|
||||||
|
|
||||||
var VERSION = "0.0.0-dev.0"
|
var VERSION = "0.0.0-dev.0"
|
||||||
@@ -55,7 +55,7 @@ var rootCmd = &cobra.Command{
|
|||||||
gotk get sources git
|
gotk get sources git
|
||||||
|
|
||||||
# Trigger a GitRepository source reconciliation
|
# Trigger a GitRepository source reconciliation
|
||||||
gotk reconcile source git gotk-system
|
gotk reconcile source git flux-system
|
||||||
|
|
||||||
# Export GitRepository sources in YAML format
|
# Export GitRepository sources in YAML format
|
||||||
gotk export source git --all > sources.yaml
|
gotk export source git --all > sources.yaml
|
||||||
|
|||||||
@@ -37,10 +37,10 @@ var uninstallCmd = &cobra.Command{
|
|||||||
Short: "Uninstall the toolkit components",
|
Short: "Uninstall the toolkit components",
|
||||||
Long: "The uninstall command removes the namespace, cluster roles, cluster role bindings and CRDs from the cluster.",
|
Long: "The uninstall command removes the namespace, cluster roles, cluster role bindings and CRDs from the cluster.",
|
||||||
Example: ` # Dry-run uninstall of all components
|
Example: ` # Dry-run uninstall of all components
|
||||||
gotk uninstall --dry-run --namespace=gotk-system
|
gotk uninstall --dry-run --namespace=flux-system
|
||||||
|
|
||||||
# Uninstall all components and delete custom resource definitions
|
# Uninstall all components and delete custom resource definitions
|
||||||
gotk uninstall --resources --crds --namespace=gotk-system
|
gotk uninstall --resources --crds --namespace=flux-system
|
||||||
`,
|
`,
|
||||||
RunE: uninstallCmdRun,
|
RunE: uninstallCmdRun,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Command line utility for assembling Kubernetes CD pipelines the GitOps way.
|
|||||||
gotk get sources git
|
gotk get sources git
|
||||||
|
|
||||||
# Trigger a GitRepository source reconciliation
|
# Trigger a GitRepository source reconciliation
|
||||||
gotk reconcile source git gotk-system
|
gotk reconcile source git flux-system
|
||||||
|
|
||||||
# Export GitRepository sources in YAML format
|
# Export GitRepository sources in YAML format
|
||||||
gotk export source git --all > sources.yaml
|
gotk export source git --all > sources.yaml
|
||||||
@@ -69,7 +69,7 @@ Command line utility for assembling Kubernetes CD pipelines the GitOps way.
|
|||||||
```
|
```
|
||||||
-h, --help help for gotk
|
-h, --help help for gotk
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ The bootstrap sub-commands bootstrap the toolkit components on the targeted Git
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ gotk bootstrap github [flags]
|
|||||||
--image-pull-secret string Kubernetes secret name used for pulling the toolkit images from a private registry
|
--image-pull-secret string Kubernetes secret name used for pulling the toolkit images from a private registry
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--log-level logLevel log level, available options are: (debug, info, error) (default info)
|
--log-level logLevel log level, available options are: (debug, info, error) (default info)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--network-policy deny ingress access to the toolkit controllers from other namespaces using network policies (default true)
|
--network-policy deny ingress access to the toolkit controllers from other namespaces using network policies (default true)
|
||||||
--registry string container registry where the toolkit images are published (default "ghcr.io/fluxcd")
|
--registry string container registry where the toolkit images are published (default "ghcr.io/fluxcd")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ gotk bootstrap gitlab [flags]
|
|||||||
--image-pull-secret string Kubernetes secret name used for pulling the toolkit images from a private registry
|
--image-pull-secret string Kubernetes secret name used for pulling the toolkit images from a private registry
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--log-level logLevel log level, available options are: (debug, info, error) (default info)
|
--log-level logLevel log level, available options are: (debug, info, error) (default info)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--network-policy deny ingress access to the toolkit controllers from other namespaces using network policies (default true)
|
--network-policy deny ingress access to the toolkit controllers from other namespaces using network policies (default true)
|
||||||
--registry string container registry where the toolkit images are published (default "ghcr.io/fluxcd")
|
--registry string container registry where the toolkit images are published (default "ghcr.io/fluxcd")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ gotk check [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ The completion sub-command generates completion scripts for various shells
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ command -v gotk >/dev/null && . <(gotk completion bash)
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ See http://fishshell.com/docs/current/index.html#completion-own for more details
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ gotk completion >> gotk-completions.ps1
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ mv _gotk ~/.zprezto/modules/completion/external/src/ # zprezto
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ The create sub-commands generate sources and resources.
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ gotk create alert-provider [name] [flags]
|
|||||||
--interval duration source sync interval (default 1m0s)
|
--interval duration source sync interval (default 1m0s)
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ gotk create alert [name] [flags]
|
|||||||
# Create an Alert for kustomization events
|
# Create an Alert for kustomization events
|
||||||
gotk create alert \
|
gotk create alert \
|
||||||
--event-severity info \
|
--event-severity info \
|
||||||
--event-source Kustomization/gotk-system \
|
--event-source Kustomization/flux-system \
|
||||||
--provider-ref slack \
|
--provider-ref slack \
|
||||||
gotk-system
|
flux-system
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ gotk create alert [name] [flags]
|
|||||||
--interval duration source sync interval (default 1m0s)
|
--interval duration source sync interval (default 1m0s)
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ gotk create helmrelease [name] [flags]
|
|||||||
--interval duration source sync interval (default 1m0s)
|
--interval duration source sync interval (default 1m0s)
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ gotk create kustomization [name] [flags]
|
|||||||
--interval duration source sync interval (default 1m0s)
|
--interval duration source sync interval (default 1m0s)
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ gotk create receiver [name] [flags]
|
|||||||
--interval duration source sync interval (default 1m0s)
|
--interval duration source sync interval (default 1m0s)
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ The create source sub-commands generate sources.
|
|||||||
--interval duration source sync interval (default 1m0s)
|
--interval duration source sync interval (default 1m0s)
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ gotk create source bucket [name] [flags]
|
|||||||
--interval duration source sync interval (default 1m0s)
|
--interval duration source sync interval (default 1m0s)
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ gotk create source git [name] [flags]
|
|||||||
--interval duration source sync interval (default 1m0s)
|
--interval duration source sync interval (default 1m0s)
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ gotk create source helm [name] [flags]
|
|||||||
--interval duration source sync interval (default 1m0s)
|
--interval duration source sync interval (default 1m0s)
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ The delete sub-commands delete sources and resources.
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk delete alert-provider [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
-s, --silent delete resource without asking for confirmation
|
-s, --silent delete resource without asking for confirmation
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk delete alert [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
-s, --silent delete resource without asking for confirmation
|
-s, --silent delete resource without asking for confirmation
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk delete helmrelease [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
-s, --silent delete resource without asking for confirmation
|
-s, --silent delete resource without asking for confirmation
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk delete kustomization [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
-s, --silent delete resource without asking for confirmation
|
-s, --silent delete resource without asking for confirmation
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk delete receiver [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
-s, --silent delete resource without asking for confirmation
|
-s, --silent delete resource without asking for confirmation
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ The delete source sub-commands delete sources.
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
-s, --silent delete resource without asking for confirmation
|
-s, --silent delete resource without asking for confirmation
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk delete source bucket [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
-s, --silent delete resource without asking for confirmation
|
-s, --silent delete resource without asking for confirmation
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk delete source git [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
-s, --silent delete resource without asking for confirmation
|
-s, --silent delete resource without asking for confirmation
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk delete source helm [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
-s, --silent delete resource without asking for confirmation
|
-s, --silent delete resource without asking for confirmation
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ The export sub-commands export resources in YAML format.
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ gotk export alert-provider [name] [flags]
|
|||||||
```
|
```
|
||||||
--all select all resources
|
--all select all resources
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ gotk export alert [name] [flags]
|
|||||||
```
|
```
|
||||||
--all select all resources
|
--all select all resources
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ gotk export helmrelease [name] [flags]
|
|||||||
```
|
```
|
||||||
--all select all resources
|
--all select all resources
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ gotk export kustomization [name] [flags]
|
|||||||
```
|
```
|
||||||
--all select all resources
|
--all select all resources
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ gotk export receiver [name] [flags]
|
|||||||
```
|
```
|
||||||
--all select all resources
|
--all select all resources
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ The export source sub-commands export sources in YAML format.
|
|||||||
```
|
```
|
||||||
--all select all resources
|
--all select all resources
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ gotk export source bucket [name] [flags]
|
|||||||
```
|
```
|
||||||
--all select all resources
|
--all select all resources
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
--with-credentials include credential secrets
|
--with-credentials include credential secrets
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ gotk export source git [name] [flags]
|
|||||||
```
|
```
|
||||||
--all select all resources
|
--all select all resources
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
--with-credentials include credential secrets
|
--with-credentials include credential secrets
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ gotk export source helm [name] [flags]
|
|||||||
```
|
```
|
||||||
--all select all resources
|
--all select all resources
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
--with-credentials include credential secrets
|
--with-credentials include credential secrets
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ The get sub-commands print the statuses of sources and resources.
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get alert-provider [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get alert-providers [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get alert [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get alerts [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get helmreleases [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get kustomizations [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get receiver [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get receivers [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ The get source sub-commands print the statuses of the sources.
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get sources bucket [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get sources git [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk get sources helm [flags]
|
|||||||
```
|
```
|
||||||
-A, --all-namespaces list the requested object(s) across all namespaces
|
-A, --all-namespaces list the requested object(s) across all namespaces
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ gotk install [flags]
|
|||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
```
|
```
|
||||||
# Install the latest version in the gotk-system namespace
|
# Install the latest version in the flux-system namespace
|
||||||
gotk install --version=latest --namespace=gotk-system
|
gotk install --version=latest --namespace=flux-system
|
||||||
|
|
||||||
# Dry-run install for a specific version and a series of components
|
# Dry-run install for a specific version and a series of components
|
||||||
gotk install --dry-run --version=v0.0.7 --components="source-controller,kustomize-controller"
|
gotk install --dry-run --version=v0.0.7 --components="source-controller,kustomize-controller"
|
||||||
@@ -24,7 +24,7 @@ gotk install [flags]
|
|||||||
gotk install --dry-run --verbose
|
gotk install --dry-run --verbose
|
||||||
|
|
||||||
# Write install manifests to file
|
# Write install manifests to file
|
||||||
gotk install --export > gotk-system.yaml
|
gotk install --export > flux-system.yaml
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ gotk install [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ The reconcile sub-commands trigger a reconciliation of sources and resources.
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk reconcile alert-provider [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk reconcile alert [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ gotk reconcile helmrelease [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ gotk reconcile kustomization [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk reconcile receiver [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ The reconcile source sub-commands trigger a reconciliation of sources.
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk reconcile source bucket [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk reconcile source git [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk reconcile source helm [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ The resume sub-commands resume a suspended resource.
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk resume alert [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk resume helmrelease [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk resume kustomization [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ gotk resume receiver [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ The suspend sub-commands suspend the reconciliation of a resource.
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk suspend alert [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk suspend helmrelease [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk suspend kustomization [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ gotk suspend receiver [name] [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ gotk uninstall [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
# Dry-run uninstall of all components
|
# Dry-run uninstall of all components
|
||||||
gotk uninstall --dry-run --namespace=gotk-system
|
gotk uninstall --dry-run --namespace=flux-system
|
||||||
|
|
||||||
# Uninstall all components and delete custom resource definitions
|
# Uninstall all components and delete custom resource definitions
|
||||||
gotk uninstall --resources --crds --namespace=gotk-system
|
gotk uninstall --resources --crds --namespace=flux-system
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ gotk uninstall [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||||||
-n, --namespace string the namespace scope for this operation (default "gotk-system")
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||||||
--timeout duration timeout for this operation (default 5m0s)
|
--timeout duration timeout for this operation (default 5m0s)
|
||||||
--verbose print generated objects
|
--verbose print generated objects
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ make
|
|||||||
Port forward to source-controller artifacts server:
|
Port forward to source-controller artifacts server:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
kubectl -n gotk-system port-forward svc/source-controller 8181:80
|
kubectl -n flux-system port-forward svc/source-controller 8181:80
|
||||||
```
|
```
|
||||||
|
|
||||||
Export the local address as `SOURCE_HOST`:
|
Export the local address as `SOURCE_HOST`:
|
||||||
@@ -92,7 +92,7 @@ gotk create source git test \
|
|||||||
The source-watcher should log the revision:
|
The source-watcher should log the revision:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
New revision detected {"gitrepository": "gotk-system/test", "revision": "4.0.0/ab953493ee14c3c9800bda0251e0c507f9741408"}
|
New revision detected {"gitrepository": "flux-system/test", "revision": "4.0.0/ab953493ee14c3c9800bda0251e0c507f9741408"}
|
||||||
Extracted tarball into /var/folders/77/3y6x_p2j2g9fspdkzjbm5_s40000gn/T/test292235827: 123 files, 29 dirs (32.603415ms)
|
Extracted tarball into /var/folders/77/3y6x_p2j2g9fspdkzjbm5_s40000gn/T/test292235827: 123 files, 29 dirs (32.603415ms)
|
||||||
Processing files...
|
Processing files...
|
||||||
```
|
```
|
||||||
@@ -108,7 +108,7 @@ gotk create source git test \
|
|||||||
The source-watcher should log the new revision:
|
The source-watcher should log the new revision:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
New revision detected {"gitrepository": "gotk-system/test", "revision": "4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27"}
|
New revision detected {"gitrepository": "flux-system/test", "revision": "4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27"}
|
||||||
```
|
```
|
||||||
|
|
||||||
The source-controller reports the revision under `GitRepository.Status.Artifact.Revision` in the format: `<branch|tag>/<commit>`.
|
The source-controller reports the revision under `GitRepository.Status.Artifact.Revision` in the format: `<branch|tag>/<commit>`.
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ $ gotk bootstrap github --owner=gitopsrun --repository=fleet-infra --path=stagin
|
|||||||
✔ repository cloned
|
✔ repository cloned
|
||||||
✚ generating manifests
|
✚ generating manifests
|
||||||
✔ components manifests pushed
|
✔ components manifests pushed
|
||||||
► installing components in gotk-system namespace
|
► installing components in flux-system namespace
|
||||||
deployment "source-controller" successfully rolled out
|
deployment "source-controller" successfully rolled out
|
||||||
deployment "kustomize-controller" successfully rolled out
|
deployment "kustomize-controller" successfully rolled out
|
||||||
deployment "notification-controller" successfully rolled out
|
deployment "notification-controller" successfully rolled out
|
||||||
@@ -214,10 +214,10 @@ In about 30s the synchronization should start:
|
|||||||
```console
|
```console
|
||||||
$ watch gotk get kustomizations
|
$ watch gotk get kustomizations
|
||||||
NAME REVISION SUSPENDED READY MESSAGE
|
NAME REVISION SUSPENDED READY MESSAGE
|
||||||
gotk-system main/6eea299fe9997c8561b826b67950afaf9a476cf8 False True Applied revision: main/6eea299fe9997c8561b826b67950afaf9a476cf8
|
flux-system main/6eea299fe9997c8561b826b67950afaf9a476cf8 False True Applied revision: main/6eea299fe9997c8561b826b67950afaf9a476cf8
|
||||||
webapp-backend False False dependency 'gotk-system/webapp-common' is not ready
|
webapp-backend False False dependency 'flux-system/webapp-common' is not ready
|
||||||
webapp-common master/7411da595c25183daba255068814b83843fe3395 False True Applied revision: master/7411da595c25183daba255068814b83843fe3395
|
webapp-common master/7411da595c25183daba255068814b83843fe3395 False True Applied revision: master/7411da595c25183daba255068814b83843fe3395
|
||||||
webapp-frontend False False dependency 'gotk-system/webapp-backend' is not ready
|
webapp-frontend False False dependency 'flux-system/webapp-backend' is not ready
|
||||||
```
|
```
|
||||||
|
|
||||||
When the synchronization finishes you can check that the webapp services are running:
|
When the synchronization finishes you can check that the webapp services are running:
|
||||||
@@ -311,22 +311,22 @@ List git sources:
|
|||||||
```console
|
```console
|
||||||
$ gotk get sources git
|
$ gotk get sources git
|
||||||
NAME REVISION READY MESSAGE
|
NAME REVISION READY MESSAGE
|
||||||
gotk-system main/5ae055e24b2c8a78f981708b61507a97a30bd7a6 True Fetched revision: main/113360052b3153e439a0cf8de76b8e3d2a7bdf27
|
flux-system main/5ae055e24b2c8a78f981708b61507a97a30bd7a6 True Fetched revision: main/113360052b3153e439a0cf8de76b8e3d2a7bdf27
|
||||||
webapp 4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27 True Fetched revision: 4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27
|
webapp 4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27 True Fetched revision: 4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27
|
||||||
```
|
```
|
||||||
|
|
||||||
The kubectl equivalent is `kubectl -n gotk-system get gitrepositories`.
|
The kubectl equivalent is `kubectl -n flux-system get gitrepositories`.
|
||||||
|
|
||||||
List kustomization:
|
List kustomization:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gotk get kustomizations
|
$ gotk get kustomizations
|
||||||
NAME REVISION SUSPENDED READY MESSAGE
|
NAME REVISION SUSPENDED READY MESSAGE
|
||||||
gotk-system main/5ae055e24b2c8a78f981708b61507a97a30bd7a6 False True Applied revision: main/5ae055e24b2c8a78f981708b61507a97a30bd7a6
|
flux-system main/5ae055e24b2c8a78f981708b61507a97a30bd7a6 False True Applied revision: main/5ae055e24b2c8a78f981708b61507a97a30bd7a6
|
||||||
webapp 4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27 False True Applied revision: 4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27
|
webapp 4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27 False True Applied revision: 4.0.1/113360052b3153e439a0cf8de76b8e3d2a7bdf27
|
||||||
```
|
```
|
||||||
|
|
||||||
The kubectl equivalent is `kubectl -n gotk-system get kustomizations`.
|
The kubectl equivalent is `kubectl -n flux-system get kustomizations`.
|
||||||
|
|
||||||
If you want to upgrade to the latest 4.x version, you can change the semver expression to:
|
If you want to upgrade to the latest 4.x version, you can change the semver expression to:
|
||||||
|
|
||||||
@@ -343,8 +343,8 @@ git add -A && git commit -m "update prod webapp" && git push
|
|||||||
Trigger a git sync:
|
Trigger a git sync:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gotk reconcile ks gotk-system --with-source
|
$ gotk reconcile ks flux-system --with-source
|
||||||
► annotating source gotk-system
|
► annotating source flux-system
|
||||||
✔ source annotated
|
✔ source annotated
|
||||||
◎ waiting for reconcilitation
|
◎ waiting for reconcilitation
|
||||||
✔ git reconciliation completed
|
✔ git reconciliation completed
|
||||||
@@ -354,13 +354,13 @@ $ gotk reconcile ks gotk-system --with-source
|
|||||||
✔ applied revision main/d751ea264d48bf0db8b588d1d08184834ac8fec9
|
✔ applied revision main/d751ea264d48bf0db8b588d1d08184834ac8fec9
|
||||||
```
|
```
|
||||||
|
|
||||||
The kubectl equivalent is `kubectl -n gotk-system annotate gitrepository/gotk-system fluxcd.io/reconcileAt="$(date +%s)"`.
|
The kubectl equivalent is `kubectl -n flux-system annotate gitrepository/flux-system fluxcd.io/reconcileAt="$(date +%s)"`.
|
||||||
|
|
||||||
Wait for the webapp to be upgraded:
|
Wait for the webapp to be upgraded:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ watch gotk get kustomizations
|
$ watch gotk get kustomizations
|
||||||
NAME REVISION SUSPENDED READY MESSAGE
|
NAME REVISION SUSPENDED READY MESSAGE
|
||||||
gotk-system main/d751ea264d48bf0db8b588d1d08184834ac8fec9 False True Applied revision: main/d751ea264d48bf0db8b588d1d08184834ac8fec9
|
flux-system main/d751ea264d48bf0db8b588d1d08184834ac8fec9 False True Applied revision: main/d751ea264d48bf0db8b588d1d08184834ac8fec9
|
||||||
webapp 4.0.6/26a630c0b4b3452833d96c511d93f6f2d2e90a99 False True Applied revision: 4.0.6/26a630c0b4b3452833d96c511d93f6f2d2e90a99
|
webapp 4.0.6/26a630c0b4b3452833d96c511d93f6f2d2e90a99 False True Applied revision: 4.0.6/26a630c0b4b3452833d96c511d93f6f2d2e90a99
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ first to the source-controller, so that the `HelmRelease` can reference
|
|||||||
to it.
|
to it.
|
||||||
|
|
||||||
A cluster administrator should register trusted sources by creating
|
A cluster administrator should register trusted sources by creating
|
||||||
the resources in the `gotk-system` namespace. By default, the
|
the resources in the `flux-system` namespace. By default, the
|
||||||
source-controller watches for sources only in the `gotk-system`
|
source-controller watches for sources only in the `flux-system`
|
||||||
namespace, this way cluster admins can prevent untrusted sources from
|
namespace, this way cluster admins can prevent untrusted sources from
|
||||||
being registered by users.
|
being registered by users.
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ apiVersion: source.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
metadata:
|
metadata:
|
||||||
name: podinfo
|
name: podinfo
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
url: https://stefanprodan.github.io/podinfo
|
url: https://stefanprodan.github.io/podinfo
|
||||||
@@ -82,7 +82,7 @@ apiVersion: source.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
metadata:
|
metadata:
|
||||||
name: podinfo
|
name: podinfo
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
url: https://github.com/stefanprodan/podinfo
|
url: https://github.com/stefanprodan/podinfo
|
||||||
@@ -184,7 +184,7 @@ spec:
|
|||||||
sourceRef:
|
sourceRef:
|
||||||
kind: <HelmRepository|GitRepository|Bucket>
|
kind: <HelmRepository|GitRepository|Bucket>
|
||||||
name: podinfo
|
name: podinfo
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
interval: 1m
|
interval: 1m
|
||||||
values:
|
values:
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
@@ -265,7 +265,7 @@ broadcast events to the [notification-controller](../components/notification/con
|
|||||||
To receive the events as notifications, a `Provider` needs to be setup
|
To receive the events as notifications, a `Provider` needs to be setup
|
||||||
first as described in the [notifications guide](notifications.md#define-a-provider).
|
first as described in the [notifications guide](notifications.md#define-a-provider).
|
||||||
Once you have set up the `Provider`, create a new `Alert` resource in
|
Once you have set up the `Provider`, create a new `Alert` resource in
|
||||||
the `gotk-system` to start receiving notifications about the Helm
|
the `flux-system` to start receiving notifications about the Helm
|
||||||
release:
|
release:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -274,7 +274,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|||||||
metadata:
|
metadata:
|
||||||
generation: 2
|
generation: 2
|
||||||
name: helm-podinfo
|
name: helm-podinfo
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
providerRef:
|
providerRef:
|
||||||
name: slack
|
name: slack
|
||||||
@@ -304,7 +304,7 @@ First generate a random string and create a secret with a `token` field:
|
|||||||
TOKEN=$(head -c 12 /dev/urandom | shasum | cut -d ' ' -f1)
|
TOKEN=$(head -c 12 /dev/urandom | shasum | cut -d ' ' -f1)
|
||||||
echo $TOKEN
|
echo $TOKEN
|
||||||
|
|
||||||
kubectl -n gotk-system create secret generic webhook-token \
|
kubectl -n flux-system create secret generic webhook-token \
|
||||||
--from-literal=token=$TOKEN
|
--from-literal=token=$TOKEN
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -315,7 +315,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: Receiver
|
kind: Receiver
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-podinfo
|
name: helm-podinfo
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
type: harbor
|
type: harbor
|
||||||
secretRef:
|
secretRef:
|
||||||
@@ -330,7 +330,7 @@ The notification-controller generates a unique URL using the provided token and
|
|||||||
Find the URL with:
|
Find the URL with:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ kubectl -n gotk-system get receiver/helm-podinfo
|
$ kubectl -n flux-system get receiver/helm-podinfo
|
||||||
|
|
||||||
NAME READY STATUS
|
NAME READY STATUS
|
||||||
helm-podinfo True Receiver initialised with URL: /hook/bed6d00b5555b1603e1f59b94d7fdbca58089cb5663633fb83f2815dc626d92b
|
helm-podinfo True Receiver initialised with URL: /hook/bed6d00b5555b1603e1f59b94d7fdbca58089cb5663633fb83f2815dc626d92b
|
||||||
|
|||||||
@@ -75,12 +75,12 @@ cluster e.g. `staging-cluster` and `production-cluster`:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
├── staging-cluster # <- path=staging-cluster
|
├── staging-cluster # <- path=staging-cluster
|
||||||
│ └── gotk-system # <- namespace dir generated by bootstrap
|
│ └── flux-system # <- namespace dir generated by bootstrap
|
||||||
│ ├── toolkit-components.yaml
|
│ ├── toolkit-components.yaml
|
||||||
│ ├── toolkit-kustomization.yaml
|
│ ├── toolkit-kustomization.yaml
|
||||||
│ └── toolkit-source.yaml
|
│ └── toolkit-source.yaml
|
||||||
└── production-cluster # <- path=production-cluster
|
└── production-cluster # <- path=production-cluster
|
||||||
└── gotk-system
|
└── flux-system
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! hint "Change the default branch"
|
!!! hint "Change the default branch"
|
||||||
@@ -205,7 +205,7 @@ cd my-repository
|
|||||||
Create a directory inside the repository:
|
Create a directory inside the repository:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir -p ./my-cluster/gotk-system
|
mkdir -p ./my-cluster/flux-system
|
||||||
```
|
```
|
||||||
|
|
||||||
Generate the toolkit manifests with:
|
Generate the toolkit manifests with:
|
||||||
@@ -213,7 +213,7 @@ Generate the toolkit manifests with:
|
|||||||
```sh
|
```sh
|
||||||
gotk install --version=latest \
|
gotk install --version=latest \
|
||||||
--arch=amd64 \ # on ARM64/AARCH64 clusters use --arch=arm64
|
--arch=amd64 \ # on ARM64/AARCH64 clusters use --arch=arm64
|
||||||
--export > ./my-cluster/gotk-system/toolkit-components.yaml
|
--export > ./my-cluster/flux-system/toolkit-components.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
If your cluster must pull images from a private container registry, first you should pull
|
If your cluster must pull images from a private container registry, first you should pull
|
||||||
@@ -225,12 +225,12 @@ docker tag ghcr.io/fluxcd/source-controller:v0.0.14 registry.internal/fluxcd/sou
|
|||||||
docker push registry.internal/fluxcd/source-controller:v0.0.14
|
docker push registry.internal/fluxcd/source-controller:v0.0.14
|
||||||
```
|
```
|
||||||
|
|
||||||
Create the pull secret in the `gotk-system` namespace:
|
Create the pull secret in the `flux-system` namespace:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
kubectl create ns gotk-system
|
kubectl create ns flux-system
|
||||||
|
|
||||||
kubectl -n gotk-system create secret generic regcred \
|
kubectl -n flux-system create secret generic regcred \
|
||||||
--from-file=.dockerconfigjson=/.docker/config.json \
|
--from-file=.dockerconfigjson=/.docker/config.json \
|
||||||
--type=kubernetes.io/dockerconfigjson
|
--type=kubernetes.io/dockerconfigjson
|
||||||
```
|
```
|
||||||
@@ -241,7 +241,7 @@ Set your registry domain, and the pull secret when generating the manifests:
|
|||||||
gotk install --version=latest \
|
gotk install --version=latest \
|
||||||
--registry=registry.internal/fluxcd \
|
--registry=registry.internal/fluxcd \
|
||||||
--image-pull-secret=regcred \
|
--image-pull-secret=regcred \
|
||||||
--export > ./my-cluster/gotk-system/toolkit-components.yaml
|
--export > ./my-cluster/flux-system/toolkit-components.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Commit and push the manifest to the master branch:
|
Commit and push the manifest to the master branch:
|
||||||
@@ -253,7 +253,7 @@ git add -A && git commit -m "add toolkit manifests" && git push
|
|||||||
Apply the manifests on your cluster:
|
Apply the manifests on your cluster:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
kubectl apply -f ./my-cluster/gotk-system/toolkit-components.yaml
|
kubectl apply -f ./my-cluster/flux-system/toolkit-components.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Verify that the toolkit controllers have started:
|
Verify that the toolkit controllers have started:
|
||||||
@@ -265,7 +265,7 @@ gotk check
|
|||||||
Create a `GitRepository` object on your cluster by specifying the SSH address of your repo:
|
Create a `GitRepository` object on your cluster by specifying the SSH address of your repo:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
gotk create source git gotk-system \
|
gotk create source git flux-system \
|
||||||
--url= ssh://<host>/<org>/my-repository \
|
--url= ssh://<host>/<org>/my-repository \
|
||||||
--ssh-key-algorithm=ecdsa \
|
--ssh-key-algorithm=ecdsa \
|
||||||
--ssh-ecdsa-curve=p521 \
|
--ssh-ecdsa-curve=p521 \
|
||||||
@@ -279,7 +279,7 @@ If you don't specify the SSH algorithm, then gotk will generate an RSA 2048 bits
|
|||||||
If your Git server supports basic auth, you can set the URL to HTTPS and specify the credentials with:
|
If your Git server supports basic auth, you can set the URL to HTTPS and specify the credentials with:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
gotk create source git gotk-system \
|
gotk create source git flux-system \
|
||||||
--url=https://<host>/<org>/my-repository \
|
--url=https://<host>/<org>/my-repository \
|
||||||
--username=my-username \
|
--username=my-username \
|
||||||
--password=my-password \
|
--password=my-password \
|
||||||
@@ -290,8 +290,8 @@ gotk create source git gotk-system \
|
|||||||
Create a `Kustomization` object on your cluster:
|
Create a `Kustomization` object on your cluster:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
gotk create kustomization gotk-system \
|
gotk create kustomization flux-system \
|
||||||
--source=gotk-system \
|
--source=flux-system \
|
||||||
--path="./my-cluster" \
|
--path="./my-cluster" \
|
||||||
--prune=true \
|
--prune=true \
|
||||||
--interval=10m
|
--interval=10m
|
||||||
@@ -300,11 +300,11 @@ gotk create kustomization gotk-system \
|
|||||||
Export both objects, commit and push the manifests to Git:
|
Export both objects, commit and push the manifests to Git:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
gotk export source git gotk-system \
|
gotk export source git flux-system \
|
||||||
> ./my-cluster/gotk-system/toolkit-source.yaml
|
> ./my-cluster/flux-system/toolkit-source.yaml
|
||||||
|
|
||||||
gotk export kustomization gotk-system \
|
gotk export kustomization flux-system \
|
||||||
> ./my-cluster/gotk-system/toolkit-kustomization.yaml
|
> ./my-cluster/flux-system/toolkit-kustomization.yaml
|
||||||
|
|
||||||
git add -A && git commit -m "add toolkit reconciliation" && git push
|
git add -A && git commit -m "add toolkit reconciliation" && git push
|
||||||
```
|
```
|
||||||
@@ -313,7 +313,7 @@ To upgrade the toolkit to a newer version, run the install command and commit th
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
gotk install --version=latest \
|
gotk install --version=latest \
|
||||||
--export > ./my-cluster/gotk-system/toolkit-components.yaml
|
--export > ./my-cluster/flux-system/toolkit-components.yaml
|
||||||
|
|
||||||
git add -A && git commit -m "update toolkit" && git push
|
git add -A && git commit -m "update toolkit" && git push
|
||||||
```
|
```
|
||||||
@@ -367,7 +367,7 @@ gotk create source helm stable \
|
|||||||
gotk create helmrelease sealed-secrets \
|
gotk create helmrelease sealed-secrets \
|
||||||
--interval=1h \
|
--interval=1h \
|
||||||
--release-name=sealed-secrets \
|
--release-name=sealed-secrets \
|
||||||
--target-namespace=gotk-system \
|
--target-namespace=flux-system \
|
||||||
--source=HelmRepository/stable \
|
--source=HelmRepository/stable \
|
||||||
--chart=sealed-secrets \
|
--chart=sealed-secrets \
|
||||||
--chart-version="1.10.x"
|
--chart-version="1.10.x"
|
||||||
|
|||||||
@@ -27,14 +27,14 @@ gotk create kustomization monitoring \
|
|||||||
--prune=true \
|
--prune=true \
|
||||||
--source=monitoring \
|
--source=monitoring \
|
||||||
--path="./manifests/monitoring" \
|
--path="./manifests/monitoring" \
|
||||||
--health-check="Deployment/prometheus.gotk-system" \
|
--health-check="Deployment/prometheus.flux-system" \
|
||||||
--health-check="Deployment/grafana.gotk-system"
|
--health-check="Deployment/grafana.flux-system"
|
||||||
```
|
```
|
||||||
|
|
||||||
You can access Grafana using port forwarding:
|
You can access Grafana using port forwarding:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
kubectl -n gotk-system port-forward svc/grafana 3000:3000
|
kubectl -n flux-system port-forward svc/grafana 3000:3000
|
||||||
```
|
```
|
||||||
|
|
||||||
## Grafana dashboards
|
## Grafana dashboards
|
||||||
|
|||||||
@@ -41,13 +41,13 @@ sec rsa3072 2020-09-06 [SC]
|
|||||||
```
|
```
|
||||||
|
|
||||||
Export the public and private keypair from your local GPG keyring and
|
Export the public and private keypair from your local GPG keyring and
|
||||||
create a Kubernetes secret named `sops-gpg` in the `gotk-system` namespace:
|
create a Kubernetes secret named `sops-gpg` in the `flux-system` namespace:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
gpg --export-secret-keys \
|
gpg --export-secret-keys \
|
||||||
--armor 1F3D1CED2F865F5E59CA564553241F147E7C5FA4 |
|
--armor 1F3D1CED2F865F5E59CA564553241F147E7C5FA4 |
|
||||||
kubectl create secret generic sops-gpg \
|
kubectl create secret generic sops-gpg \
|
||||||
--namespace=gotk-system \
|
--namespace=flux-system \
|
||||||
--from-file=sops.asc=/dev/stdin
|
--from-file=sops.asc=/dev/stdin
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ secrets by iterating over all the private keys until it finds one that works.
|
|||||||
!!! hint KMS
|
!!! hint KMS
|
||||||
When using AWS/GCP KMS or Azure Key Vault, you'll have to bind an IAM Role
|
When using AWS/GCP KMS or Azure Key Vault, you'll have to bind an IAM Role
|
||||||
with read access to the KMS keys to the `default` service account of the
|
with read access to the KMS keys to the `default` service account of the
|
||||||
`gotk-system` namespace for kustomize-controller to be able to fetch
|
`flux-system` namespace for kustomize-controller to be able to fetch
|
||||||
keys from KMS.
|
keys from KMS.
|
||||||
|
|
||||||
## GitOps workflow
|
## GitOps workflow
|
||||||
@@ -119,7 +119,7 @@ apiVersion: source.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
metadata:
|
metadata:
|
||||||
name: my-secrets
|
name: my-secrets
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
url: https://github.com/my-org/my-secrets
|
url: https://github.com/my-org/my-secrets
|
||||||
@@ -132,7 +132,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
metadata:
|
||||||
name: my-secrets
|
name: my-secrets
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 10m0s
|
interval: 10m0s
|
||||||
sourceRef:
|
sourceRef:
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ The notification controller is part of the default toolkit installation.
|
|||||||
First create a secret with your Slack incoming webhook:
|
First create a secret with your Slack incoming webhook:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
kubectl -n gotk-system create secret generic slack-url \
|
kubectl -n flux-system create secret generic slack-url \
|
||||||
--from-literal=address=https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK
|
--from-literal=address=https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: Provider
|
kind: Provider
|
||||||
metadata:
|
metadata:
|
||||||
name: slack
|
name: slack
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
type: slack
|
type: slack
|
||||||
channel: general
|
channel: general
|
||||||
@@ -61,7 +61,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: Alert
|
kind: Alert
|
||||||
metadata:
|
metadata:
|
||||||
name: on-call-webapp
|
name: on-call-webapp
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
providerRef:
|
providerRef:
|
||||||
name: slack
|
name: slack
|
||||||
@@ -78,7 +78,7 @@ Apply the above files or commit them to the `fleet-infra` repository.
|
|||||||
To verify that the alert has been acknowledge by the notification controller do:
|
To verify that the alert has been acknowledge by the notification controller do:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ kubectl -n gotk-system get alerts
|
$ kubectl -n flux-system get alerts
|
||||||
|
|
||||||
NAME READY STATUS AGE
|
NAME READY STATUS AGE
|
||||||
on-call-webapp True Initialized 1m
|
on-call-webapp True Initialized 1m
|
||||||
@@ -141,7 +141,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: Provider
|
kind: Provider
|
||||||
metadata:
|
metadata:
|
||||||
name: podinfo
|
name: podinfo
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
type: github
|
type: github
|
||||||
channel: general
|
channel: general
|
||||||
@@ -153,7 +153,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: Alert
|
kind: Alert
|
||||||
metadata:
|
metadata:
|
||||||
name: podinfo
|
name: podinfo
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
providerRef:
|
providerRef:
|
||||||
name: podinfo
|
name: podinfo
|
||||||
@@ -161,7 +161,7 @@ spec:
|
|||||||
eventSources:
|
eventSources:
|
||||||
- kind: Kustomization
|
- kind: Kustomization
|
||||||
name: podinfo
|
name: podinfo
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
```
|
```
|
||||||
|
|
||||||
The secret referenced in the provider is expected to contain a [personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
|
The secret referenced in the provider is expected to contain a [personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
|
||||||
@@ -171,7 +171,7 @@ apiVersion: v1
|
|||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: github
|
name: github
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
data:
|
data:
|
||||||
token: <token>
|
token: <token>
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ Create a Helm release that installs the latest version of sealed-secrets control
|
|||||||
gotk create helmrelease sealed-secrets \
|
gotk create helmrelease sealed-secrets \
|
||||||
--interval=1h \
|
--interval=1h \
|
||||||
--release-name=sealed-secrets \
|
--release-name=sealed-secrets \
|
||||||
--target-namespace=gotk-system \
|
--target-namespace=flux-system \
|
||||||
--source=HelmRepository/stable \
|
--source=HelmRepository/stable \
|
||||||
--chart=sealed-secrets \
|
--chart=sealed-secrets \
|
||||||
--chart-version="1.10.x"
|
--chart-version="1.10.x"
|
||||||
@@ -59,14 +59,14 @@ With chart version `1.10.x` we configure helm-controller to automatically upgrad
|
|||||||
when a new chart patch version is fetched by source-controller.
|
when a new chart patch version is fetched by source-controller.
|
||||||
|
|
||||||
At startup, the sealed-secrets controller generates a 4096-bit RSA key pair and
|
At startup, the sealed-secrets controller generates a 4096-bit RSA key pair and
|
||||||
persists the private and public keys as Kubernetes secrets in the `gotk-system` namespace.
|
persists the private and public keys as Kubernetes secrets in the `flux-system` namespace.
|
||||||
|
|
||||||
You can retrieve the public key with:
|
You can retrieve the public key with:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
kubeseal --fetch-cert \
|
kubeseal --fetch-cert \
|
||||||
--controller-name=sealed-secrets \
|
--controller-name=sealed-secrets \
|
||||||
--controller-namespace=gotk-system \
|
--controller-namespace=flux-system \
|
||||||
> pub-sealed-secrets.pem
|
> pub-sealed-secrets.pem
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ apiVersion: source.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
metadata:
|
metadata:
|
||||||
name: stable
|
name: stable
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 1h0m0s
|
interval: 1h0m0s
|
||||||
url: https://charts.helm.sh/stable
|
url: https://charts.helm.sh/stable
|
||||||
@@ -133,7 +133,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: sealed-secrets
|
name: sealed-secrets
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
@@ -144,7 +144,7 @@ spec:
|
|||||||
version: "1.10.x"
|
version: "1.10.x"
|
||||||
interval: 1h0m0s
|
interval: 1h0m0s
|
||||||
releaseName: sealed-secrets
|
releaseName: sealed-secrets
|
||||||
targetNamespace: gotk-system
|
targetNamespace: flux-system
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! hint
|
!!! hint
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: receiver
|
name: receiver
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
selector:
|
selector:
|
||||||
@@ -50,7 +50,7 @@ spec:
|
|||||||
Wait for Kubernetes to assign a public address with:
|
Wait for Kubernetes to assign a public address with:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
watch kubectl -n gotk-system get svc/receiver
|
watch kubectl -n flux-system get svc/receiver
|
||||||
```
|
```
|
||||||
|
|
||||||
## Define a Git repository
|
## Define a Git repository
|
||||||
@@ -62,7 +62,7 @@ apiVersion: source.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
metadata:
|
metadata:
|
||||||
name: webapp
|
name: webapp
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 60m
|
interval: 60m
|
||||||
url: https://github.com/<GH-ORG>/<GH-REPO>
|
url: https://github.com/<GH-ORG>/<GH-REPO>
|
||||||
@@ -82,7 +82,7 @@ First generate a random string and create a secret with a `token` field:
|
|||||||
TOKEN=$(head -c 12 /dev/urandom | shasum | cut -d ' ' -f1)
|
TOKEN=$(head -c 12 /dev/urandom | shasum | cut -d ' ' -f1)
|
||||||
echo $TOKEN
|
echo $TOKEN
|
||||||
|
|
||||||
kubectl -n gotk-system create secret generic webhook-token \
|
kubectl -n flux-system create secret generic webhook-token \
|
||||||
--from-literal=token=$TOKEN
|
--from-literal=token=$TOKEN
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ apiVersion: notification.toolkit.fluxcd.io/v1beta1
|
|||||||
kind: Receiver
|
kind: Receiver
|
||||||
metadata:
|
metadata:
|
||||||
name: webapp
|
name: webapp
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
type: github
|
type: github
|
||||||
events:
|
events:
|
||||||
@@ -116,7 +116,7 @@ The notification controller generates a unique URL using the provided token and
|
|||||||
Find the URL with:
|
Find the URL with:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ kubectl -n gotk-system get receiver/webapp
|
$ kubectl -n flux-system get receiver/webapp
|
||||||
|
|
||||||
NAME READY STATUS
|
NAME READY STATUS
|
||||||
webapp True Receiver initialised with URL: /hook/bed6d00b5555b1603e1f59b94d7fdbca58089cb5663633fb83f2815dc626d92b
|
webapp True Receiver initialised with URL: /hook/bed6d00b5555b1603e1f59b94d7fdbca58089cb5663633fb83f2815dc626d92b
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- ../bases/source-controller
|
- ../bases/source-controller
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ kind: LabelTransformer
|
|||||||
metadata:
|
metadata:
|
||||||
name: labels
|
name: labels
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/instance: gotk-system
|
app.kubernetes.io/instance: flux-system
|
||||||
fieldSpecs:
|
fieldSpecs:
|
||||||
- path: metadata/labels
|
- path: metadata/labels
|
||||||
create: true
|
create: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: gotk-system
|
name: flux-system
|
||||||
|
|||||||
@@ -1382,8 +1382,8 @@
|
|||||||
"allValue": null,
|
"allValue": null,
|
||||||
"current": {
|
"current": {
|
||||||
"selected": false,
|
"selected": false,
|
||||||
"text": "gotk-system",
|
"text": "flux-system",
|
||||||
"value": "gotk-system"
|
"value": "flux-system"
|
||||||
},
|
},
|
||||||
"datasource": "${DS_PROMETHEUS}",
|
"datasource": "${DS_PROMETHEUS}",
|
||||||
"definition": "workqueue_work_duration_seconds_count",
|
"definition": "workqueue_work_duration_seconds_count",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: grafana-datasources
|
name: grafana-datasources
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
data:
|
data:
|
||||||
datasources.yaml: |-
|
datasources.yaml: |-
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
resources:
|
resources:
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: grafana-providers
|
name: grafana-providers
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
data:
|
data:
|
||||||
providers.yaml: |+
|
providers.yaml: |+
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: grafana
|
name: grafana
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
labels:
|
labels:
|
||||||
app: grafana
|
app: grafana
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
resources:
|
resources:
|
||||||
- prometheus
|
- prometheus
|
||||||
- grafana
|
- grafana
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
namespace: gotk-system
|
namespace: flux-system
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user