Welcome to the Linux Foundation Forum!

missing Resource metadata

testandbuildteam
testandbuildteam Posts: 1
edited September 15 in LFS269 Class Forum

Followed Chapter 6 and now stuck on Define sequencing section with below error.

flux-system main/a387fbad5a4a5e35ffb47e78ffb07ecfc1e30351 False False failed to decode Kubernetes YAML from /tmp/kustomization-1445986251/clusters/dev/vote-dev-kustomization.yaml: missing Resource metadata

vote-dev kustomisation file

apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: vote-dev
namespace: flux-system
spec:
dependsOn:
- name: redis-dev
healthChecks:
- kind: Deployment
name: vote
namespace: instavote
interval: 1m0s
path: ./deploy/vote
prune: true
sourceRef:
kind: GitRepository
name: instavote
targetNamespace: instavote
timeout: 2m0s

[email protected]:/home/test/flux-infra/clusters/dev# cat redis-kustomization.yaml

apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: redis-dev
namespace: flux-system
spec:
healthChecks:
- kind: Deployment
name: redis
namespace: instavote
interval: 1m0s
path: ./deploy/redis
prune: true
sourceRef:
kind: GitRepository
name: instavote
targetNamespace: instavote
timeout: 2m0s

Need help as not sure what is the issue.

Categories

Upcoming Training