Skip to content

Commit

Permalink
Set sensible interval values
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Jul 10, 2023
1 parent 9070436 commit a782408
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
6 changes: 4 additions & 2 deletions content/en/flux/faq.md
Expand Up @@ -493,7 +493,8 @@ metadata:
name: apps
namespace: flux-system
spec:
interval: 1m0s
interval: 30m
retryInterval: 2m
sourceRef:
kind: GitRepository
name: flux-system
Expand Down Expand Up @@ -542,7 +543,8 @@ metadata:
name: apps
namespace: flux-system
spec:
interval: 1m0s
interval: 30m
retryInterval: 2m
sourceRef:
kind: GitRepository
name: flux-system
Expand Down
14 changes: 10 additions & 4 deletions content/en/flux/get-started.md
Expand Up @@ -122,7 +122,7 @@ podinfo is a tiny web application made with Go.
flux create source git podinfo \
--url=https://github.com/stefanprodan/podinfo \
--branch=master \
--interval=30s \
--interval=1m \
--export > ./clusters/my-cluster/podinfo-source.yaml
```

Expand All @@ -135,7 +135,7 @@ podinfo is a tiny web application made with Go.
name: podinfo
namespace: flux-system
spec:
interval: 30s
interval: 1m
ref:
branch: master
url: https://github.com/stefanprodan/podinfo
Expand All @@ -161,7 +161,10 @@ directory located in the podinfo repository.
--source=podinfo \
--path="./kustomize" \
--prune=true \
--interval=5m \
--wait=true \
--interval=30m \
--retry-interval=2m \
--health-check-timeout=3m \
--export > ./clusters/my-cluster/podinfo-kustomization.yaml
```

Expand All @@ -174,13 +177,16 @@ directory located in the podinfo repository.
name: podinfo
namespace: flux-system
spec:
interval: 5m0s
interval: 30m0s
path: ./kustomize
prune: true
retryInterval: 2m0s
sourceRef:
kind: GitRepository
name: podinfo
targetNamespace: default
timeout: 3m0s
wait: true
```

2. Commit and push the `Kustomization` manifest to the repository:
Expand Down
7 changes: 4 additions & 3 deletions content/en/flux/guides/image-update.md
Expand Up @@ -161,7 +161,7 @@ Create an `ImageRepository` to tell Flux which container registry to scan for ne
```sh
flux create image repository podinfo \
--image=ghcr.io/stefanprodan/podinfo \
--interval=1m \
--interval=5m \
--export > ./clusters/my-cluster/podinfo-registry.yaml
```

Expand All @@ -175,7 +175,7 @@ metadata:
namespace: flux-system
spec:
image: ghcr.io/stefanprodan/podinfo
interval: 1m0s
interval: 5m
```

For private images, you can create a Kubernetes secret
Expand Down Expand Up @@ -305,6 +305,7 @@ Create an `ImageUpdateAutomation` to tell Flux which Git repository to write ima

```sh
flux create image update flux-system \
--interval=30m \
--git-repo-ref=flux-system \
--git-repo-path="./clusters/my-cluster" \
--checkout-branch=main \
Expand All @@ -324,7 +325,7 @@ metadata:
name: flux-system
namespace: flux-system
spec:
interval: 1m0s
interval: 30m
sourceRef:
kind: GitRepository
name: flux-system
Expand Down
4 changes: 2 additions & 2 deletions content/en/flux/migration/flux-v1-automation-migration.md
Expand Up @@ -287,7 +287,7 @@ $ FLUXBOT_EMAIL=fluxbot@example.com # supply your own host or address here
$ flux create image update my-app-auto \
--author-name FluxBot --author-email "$FLUXBOT_EMAIL" \
--git-repo-ref $GIT_NAME --branch main \
--interval 5m \
--interval 30m \
--export > ./$AUTO_PATH/my-app-auto.yaml
$ cat my-app-auto.yaml
---
Expand All @@ -297,7 +297,7 @@ metadata:
name: my-app-auto
namespace: flux-system
spec:
interval: 5m0s
interval: 30m
sourceRef:
kind: GitRepository
name: flux-system
Expand Down

0 comments on commit a782408

Please sign in to comment.