project: Buttons helmrepository source

Tags kubernetes fluxcd
Hard Prerequisites
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content.
  • K8S: Manual App Deployment – Project Overview
  • Soft Prerequisites
  • K8S: Root kustomization apps
  • We want to pull from our own helmrepository source so let’s add that to our sources.

    # infrastructure/sources/buttons.yaml
    ---
    apiVersion: source.toolkit.fluxcd.io/v1beta2
    kind: HelmRepository
    metadata:
      name: buttons
      namespace: flux-system
    spec:
      interval: 5m0s
      url: oci://<myUrl.com>/application # Remember to update to your Harbor url
      type: "oci"
      secretRef:
        name: oci-creds
    ---
    apiVersion: v1
    kind: Secret
    metadata:
      name: oci-creds
      namespace: flux-system
    stringData:
      username: admin
      password: harbor12345
    

    Remember to add buttons.yaml to your infrastructure/sources/kustomization.yaml file

    Yes I know plain text password in the GitHub but we aren’t doing Mozilla SOPS encryption or Hashicorp Vault in this course.

    Make sure your helmrepository shows

    kubectl -n flux-system get helmrepository


    RAW CONTENT URL