1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Fix cluster path in examples

Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
Philip Laine
2021-01-12 22:15:45 +01:00
parent 67643e7487
commit 505701e1c6

View File

@@ -159,7 +159,7 @@ comes from but rather the kustomization source ref. This mean that commit status
if the manifests comes from a repository which the API token is not allowed to write to. if the manifests comes from a repository which the API token is not allowed to write to.
Copy the manifest content in the "[kustomize](https://github.com/stefanprodan/podinfo/tree/master/kustomize)" directory Copy the manifest content in the "[kustomize](https://github.com/stefanprodan/podinfo/tree/master/kustomize)" directory
into the directory "staging-cluster/flux-system/podinfo" in your fleet-infra repository. Make sure that you also add the into the directory "./clusters/my-cluster/podinfo" in your fleet-infra repository. Make sure that you also add the
namespace podinfo. namespace podinfo.
```yaml ```yaml
apiVersion: v1 apiVersion: v1
@@ -178,7 +178,7 @@ metadata:
spec: spec:
interval: 5m interval: 5m
targetNamespace: podinfo targetNamespace: podinfo
path: ./staging-cluster/podinfo path: ./clusters/my-cluster/podinfo
prune: true prune: true
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
@@ -224,19 +224,20 @@ spec:
By now the fleet-infra repository should have a similar directory structure. By now the fleet-infra repository should have a similar directory structure.
``` ```
fleet-infra fleet-infra
└── staging-cluster/ └── clusters/
── flux-system/ ── my-cluster/
├── gotk-components.yaml ├── flux-system/
│ ├── gotk-sync.yaml │ ├── gotk-components.yaml
── kustomization.yaml ── gotk-sync.yaml
├── podinfo/ │ └── kustomization.yaml
├── namespace.yaml ├── podinfo/
│ ├── deployment.yaml │ ├── namespace.yaml
│ ├── hpa.yaml │ ├── deployment.yaml
│ ├── service.yaml │ ├── hpa.yaml
── kustomization.yaml ── service.yaml
├── podinfo-kustomization.yaml │ └── kustomization.yaml
── podinfo-notification.yaml ── podinfo-kustomization.yaml
└── podinfo-notification.yaml
``` ```
If podinfo is deployed and the health checks pass you should get a successful status in If podinfo is deployed and the health checks pass you should get a successful status in