Lab 6 : Sequencing Application Deployments problem
Hello,
I have a problem in the Lab 6. Continuous Deployment with Flux CD --> Sequencing Application Deployments
After doing the actions: **redis-dev **is not pushed to Kubernetes and i have the issues below.

failed to decode Kubernetes YAML from /tmp/kustomization-1240084352/clusters/dev/redis-kustomization.yaml: missing Resource metadata
I checked several times if I had not made a mistake, I did not find any.
My repository :
https://github.com/ADRH10/instavote
https://github.com/ADRH10/flux-infra
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
$ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.1", GitCommit:"4c9411232e10168d7b050c49a1b59f6df9d7ea4b", GitTreeState:"clean", BuildDate:"2023-04-14T13:21:19Z", GoVersion:"go1.20.3", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.3", GitCommit:"9e644106593f3f4aa98f8a84b23db5fa378900bd", GitTreeState:"clean", BuildDate:"2023-03-30T06:34:50Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"linux/amd64"}
$ flux version
flux: v2.0.0-rc.1
kustomize-controller: v1.0.0-rc.1
source-controller: v1.0.0-rc.1
$ kustomize version
v5.0.1
$ kind version
kind v0.18.0 go1.20.2 linux/amd64
Can you help me plz ?
Adrien,
Comments
-
Hello Adriel, I got success by placing the heath
clusters/dev/vote-dev-kustomization.yamlapiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
annotations:
reconcile.fluxcd.io/requestedAt: "2023-05-20T14:28:33.135788098Z"
name: vote-dev
namespace: flux-system
spec:
healthChecks:
- kind: Deployment
name: vote
namespace: instavote
interval: 1m0s
path: ./deploy/vote
prune: true
sourceRef:
kind: GitRepository
name: instavote
targetNamespace: instavote
timeout: 2m0s0 -
try removing the validation flag
Flag --validation has been deprecated, this arg is no longer used, all resources are validated using server-side apply dry-run
flux create kustomization redis-dev \
--source=instavote \
--path="./deploy/redis" \
--prune=true \
--interval=1m \
--target-namespace=instavote \
--health-check="Deployment/redis.instavote" \
--export > redis-dev-kustomization.yamlflux create kustomization vote-dev \
--source=instavote \
--path="./deploy/vote" \
--prune=true \
--interval=1m \
--target-namespace=instavote \
--health-check="Deployment/vote.instavote" \
--depends-on=redis-dev \
--export > vote-dev-kustomization.yaml0 -
Hi @adrien6910,
I tried the lab and I didn't get the same issue than you. Perhaps it's because I'm trying with the updated version of the PDF labs, and this lab was updated on June 6.
We are checking on this lab anyway.
Regards,
Luis.0 -
Hi,
After passing the CKA and CKAD certifications. I took the training again and reproduced the same problem, I understood why: it was due to the flux bootstrap github ... command being incomplete due to an incomplete 1st copy-paste. After uninstalling flux then reinstalling and using the complete flux bootstrap github ... command, the problem was solved.
Thank you for your help.
Adrien.1 -
Hi @adrien6910, so it wasn't related to the flux installation, but to copy paste operation.
I'm glad it worked!
Regards,
Luis.0 -
@luisviveropena said:
Hi @adrien6910,I tried the lab and I didn't get the same issue than you. Perhaps it's because I'm trying with the updated version of the PDF labs, and this lab was updated on June 6.
We are checking on this lab anyway.
Regards,
Luis.Where can I get the updated version of the pdf files?
Edit: Nevermind, just downloaded again and got the updated version
0 -
Hi @vjunior1981 ,
That's good

Just be sure you cleared the cache in the browser.Please let me know if the lab worked for you.
Regards,
Luis.0
Categories
- All Categories
- 175 LFX Mentorship
- 175 LFX Mentorship: Linux Kernel
- 745 Linux Foundation IT Professional Programs
- 372 Cloud Engineer IT Professional Program
- 168 Advanced Cloud Engineer IT Professional Program
- 73 DevOps IT Professional Program - Discontinued
- 3 DevOps & GitOps IT Professional Program
- 98 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- AI & ML Training
- Blockchain & Decentralized Identity Training
- 1 Cloud & Containers Training
- Cybersecurity Training
- DevOps & Site-Reliability Training
- Linux Kernel Development Training
- Networking Training
- Open Source Best Practice Training
- System Administration Training
- System Engineering Training
- Web & Application Development Training
- 2 LFD103-JP クラス フォーラム
- 4 LFD210-CN Class Forum
- 764 LFD259 Class Forum
- 681 LFS101 Class Forum
- 2 LFS158-JP クラス フォーラム
- 162 LFS207 Class Forum
- 3 LFS207-DE-Klassenforum
- 4 LFS207-JP クラス フォーラム
- 61 LFS241 Class Forum
- 52 LFS242 Class Forum
- 42 LFS243 Class Forum
- 19 LFS244 Class Forum
- 4 LFS250-JP クラス フォーラム
- 166 LFS253 Class Forum
- 1.4K LFS258 Class Forum
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 946 Programming and Development
- 310 Kernel Development
- 618 Software Development
- 978 Software
- 370 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)
