Welcome to the Linux Foundation Forum!

missing Resource metadata

Posts: 2
edited September 2022 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

root@kind:/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.

Answers

  • Hi @testandbuildteam,

    Sorry for taking long in answering. I checked the Labs and I didn't find associated data to your description. What is the specific section you are working on, please?

    Regards,
    Luis.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training