0
0
Kubernetesdevops~10 mins

FluxCD for continuous delivery in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to install FluxCD CLI.

Kubernetes
curl -s https://fluxcd.io/install.sh | [1]
Drag options to blanks, or click blank then click option'
Ash
Bbash
Cpython
Dzsh
Attempts:
3 left
💡 Hint
Common Mistakes
Using python or zsh which are not suitable for this script.
Not using any interpreter causing command failure.
2fill in blank
medium

Complete the kubectl command to create a namespace named 'flux-system'.

Kubernetes
kubectl create [1] flux-system
Drag options to blanks, or click blank then click option'
Aservice
Bnamespace
Cdeployment
Dpod
Attempts:
3 left
💡 Hint
Common Mistakes
Using pod, deployment, or service which create different resource types.
Misspelling the resource type.
3fill in blank
hard

Fix the error in the Flux bootstrap command to connect to a GitHub repository.

Kubernetes
flux bootstrap github --owner=[1] --repository=demo-repo --branch=main --path=./clusters/my-cluster
Drag options to blanks, or click blank then click option'
Amy-branch
Bmy-path
Cmy-repo
Dmy-org
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing repository name with owner.
Using branch or path as owner.
4fill in blank
hard

Fill both blanks to create a Flux Kustomization that applies manifests from the 'apps' directory every 5 minutes.

Kubernetes
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: apps
  namespace: flux-system
spec:
  interval: [1]
  path: [2]
  prune: true
  sourceRef:
    kind: GitRepository
    name: flux-system
Drag options to blanks, or click blank then click option'
A5m
B10m
C./apps
D./manifests
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong time format or interval value.
Incorrect path to manifests directory.
5fill in blank
hard

Fill all three blanks to define a Flux GitRepository resource connecting to a private repo with SSH authentication.

Kubernetes
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
  name: flux-system
  namespace: flux-system
spec:
  interval: [1]
  url: [2]
  secretRef:
    name: [3]
Drag options to blanks, or click blank then click option'
A1m
Bssh://git@github.com:my-org/private-repo.git
Cflux-system-ssh
Dhttps://github.com/my-org/private-repo.git
Attempts:
3 left
💡 Hint
Common Mistakes
Using HTTPS URL instead of SSH for private repo.
Wrong secret name or missing secretRef.
Incorrect interval format.