CNFs Artifacts through F5 Artifact Registry

Overview

The Cloud-Native Network Functions (CNFs) helm charts, docker images, and other utilities are now available through F5 Artifact Registry (FAR) at repo.f5.com. FAR is accessible to all, but only users with a valid Service Account Key can download and install the artifacts.

This document details the procedures for downloading a Service Account Key, and using the Service Account Key to download the CNF Manifest file and install Helm charts, docker images, and other utilities into the cluster from FAR (repo.f5.com).

Requirements

A workstation with Helm v3.8.0 or higher installed.

Procedures

1. Download Service Account Key

To download Service Account Key, do the following:

  1. Login to MyF5.

    _images/spk_info.png Note: You must have a MyF5 account to login.

  2. Navigate to Support Resources and click Downloads.

  3. Check the box for the End User License Agreement and Program Terms, then click Next.

  4. Choose BIG-IP_Next from the Select a Product Family Group drop-down.

  5. Select Cloud-Native Network Functions (CNF) from the Product Line drop-down.

  6. Choose the desired version from the Product Version drop-down.

  7. Select the f5-far-auth-key.tgz file from the download file list. Choose a download location from the drop-down menu and click Download.
    The TGZ file contains a Service Account Key. This is Service Account Key in base64 format, used for logging into FAR.

2. Download Manifest File

Download manifest.yaml file for the current release or the specific release you are looking for.

To download Manifest file, do the following:

  1. Perform Helm Login to download Manifest file from FAR:

    cat <service_account_key_base64 file> | helm registry login -u _json_key_base64 --password-stdin https://repo.f5.com
    

    In this example, cne_pull-base64.json is the Service Account Key.

    cat cne_pull_64.json | helm registry login -u _json_key_base64 --password-stdin https://repo.f5.com
    
  2. Perform Helm Pull to pull the Manifest file from FAR:

    helm pull oci://repo.f5.com/<path of Manifest file> --version <version of Manifest file>  
    

    In this example, release/f5-cne-manifest is the path for pulling manifest.yaml file and its version is 2.0.0-3.233.0-0.3.99.

    helm pull oci://repo.f5.com/release/f5-cne-manifest --version 2.0.0-3.233.0-0.3.99
    

    The f5-cne-manifest-2.0.0-3.233.0-0.3.99.tgz file is now pulled.

  3. Run list command to see newly downloaded Manifest tar file:

    ls   
    

    The file list shows the service_account_key_base64 file and Manifest file named f5-cne-manifest-2.0.0-3.233.0-0.3.99.tgz:

  4. Extract the Manifest file:

    tar xvf f5-cne-manifest-2.0.0-3.233.0-0.3.99.tgz   
    
  5. Run list command on the f5-cne-manifest-2.0.0-3.233.0-0.3.99 directory. It shall list cne-manifest-2.0.0-3.233.0-0.3.99.yaml file:

    ls f5-cne-manifest-2.0.0-3.233.0-0.3.99 
    

    The file list shows a cne-manifest-2.0.0-3.233.0-0.3.99.yaml file:

    The cne-manifest-2.0.0-3.233.0-0.3.99.yaml file: Contains names and version numbers of all cnf Helm charts and docker images.

    Example of cne-manifest-2.0.0-3.233.0-0.3.99.yaml file:

    f5_helm_repo: oci://repo.f5.com
    f5_docker_repo: repo.f5.com
    releases:
      - version: 2.0.0-3.233.0+0.3.99
        helm_charts:
          - name: charts/cwc
            version: 0.41.34-10.0.18
          - name: utils/f5-cert-gen
            version: 0.9.3
          - name: charts/f5-cert-manager
            version: 0.23.28-0.0.11
          - name: charts/f5-crdconversion
            version: 0.16.15-0.0.12
          - name: charts/f5-dssm
           version: 1.0.15-0.1.5
          - name: charts/f5-cnf-crds-n6lan
            version: 8.5.2-0.1.12
          - name: charts/f5-spk-crds-common
            version: 8.5.2-0.1.12
          - name: charts/f5-spk-crds-deprecated
            version: 8.5.2-0.1.12
          - name: charts/f5-spk-crds-service-proxy
            version: 8.5.2-0.1.12      
          - name: charts/f5-toda-fluentd
            version: 1.31.12-10.0.12
          - name: charts/f5ingress
           version: v0.761.1-0.0.216
          - name: charts/rabbitmq
            version: 0.5.10-10.0.14
          - name: charts/csrc
            version: 0.7.3-0.0.4
          - name: charts/coremond
            version: 0.7.27-10.0.11
          - name: charts/f5-toda-observer
            version: v4.56.4-0.0.11
          - name: utils/log-doc-f5ingress
            version: 0.761.1+0.0.216
          - name: utils/dnat-util
            version: v0.5.4 
        docker_images:
          - name: images/cert-manager-cainjector
            version: v2.3.0
          - name: images/cert-manager-controller
            version: v2.3.0
          - name: images/cert-manager-startupapicheck
            version: v2.3.0
          - name: images/cert-manager-webhook
            version: v2.3.0
          - name: images/crd-conversion
            version: v1.62.8-0.0.2
          - name: images/crdupdater
            version: v0.4.26-0.0.3
          - name: images/f5-blobd
            version: v1.10.0-10.0.5
          - name: images/f5-cert-client
            version: v3.0.17-0.0.5
          - name: images/f5-csm-qkview
            version: v0.10.23-0.0.2
          - name: images/f5-debug-sidecar
            version: v8.57.0-0.2.19
          - name: images/f5-downloader
            version: v0.8.1-0.0.10
          - name: images/f5-dssm-store
            version: v5.0.7-10.0.2
          - name: images/f5-dssm-upgrader
            version: v2.0.9-10.0.3
          - name: images/f5-fluentbit
            version: v1.0.5-0.0.3
          - name: images/f5-fluentd
            version: v2.0.6-10.0.2
          - name: images/f5-l4p-engine
            version: v1.120.3-10.0.2
          - name: images/f5-license-helper
            version: v0.12.5-0.0.5
          - name: images/f5-nsec-ips-daemon
            version: v3.4.8-0.0.6
          - name: images/f5-toda-tmstatsd
            version: v1.11.12-10.0.1
          - name: images/f5dr-img
            version: v3.2.1-0.0.6
          - name: images/f5dr-img-init
            version: v3.2.1-0.0.6
          - name: images/f5ing-tmm-pod-manager
            version: v1.0.8-0.1.6
          - name: images/f5ingress
            version: v0.761.1-0.0.216
          - name: images/init-certmgr
            version: v0.23.28-0.0.11
          - name: images/opentelemetry-collector-contrib
            version: 0.123.0
          - name: images/rabbit
            version: v0.5.9-0.0.1
          - name: images/spk-cwc
            version: v0.34.14-10.0.8
          - name: images/tmm-img
            version: v10.14.2-0.1.25
          - name: images/tmrouted-img
            version: v2.1.7-0.1.1
          - name: images/spk-csrc
            version: v0.5.11-0.0.1
          - name: images/f5-dwbld
            version: v1.33.0-0.0.20
          - name: images/f5-coremond
            version: v0.7.27-10.0.11
          - name: images/f5-toda-observer
            version: v4.56.4-0.0.11
          - name: images/f5-version-validator
            version: v1.0.5-10.0.7
          - name: images/f5-bdosd
            version: v0.35.0-0.0.6
          - name: images/dnsx-img
            version: v0.10.11-0.0.5
    

3. Install Helm charts

Following are the two different procedures described to install the Helm charts. Perform the steps mentioned in either Procedure 1 or Procedure 2 to complete the installation.

_images/spk_info.png Note: Perform any one of the following procedures.

Procedure 1: Download CNF Helm charts, Docker Images and other Utilities

Do the following steps to download CNF Helm charts, Docker Images and other Utilities:

  1. Perform Helm Login to download Helm charts from FAR:

    cat <service_account_key_base64 file> | helm registry login -u _json_key_base64 --password-stdin https://repo.f5.com
    

    In this example, cne_pull-base64.json is the Service Account Key.

    cat cne_pull_64.json | helm registry login -u _json_key_base64 --password-stdin https://repo.f5.com
    
  2. Perform Helm Pull to pull the Helm charts from FAR:

    helm pull oci://repo.f5.com/<path of Helm chart> --version <version of Helm chart>  
    

    In this example, charts/f5ingress is the path for pulling f5ingress Helm chart and its version is v0.761.1+0.0.216 as retrieved from the manifest.yaml file.

    helm pull oci://repo.f5.com/charts/f5ingress --version v0.761.1+0.0.216
    
  3. Perform Utilities Pull to pull the other utilities from FAR:

    helm pull oci://repo.f5.com/<path of Utilities> --version <version of Utility> 
    

    In this example, utils/log-doc-f5ingress is the path for pulling log-doc-f5ingress utility and its version is 0.761.1+0.0.216 as retrieved from the manifest.yaml file.

    helm pull oci://repo.f5.com/utils/log-doc-f5ingress --version 0.761.1+0.0.216
    
  4. Perform Docker Login to download docker images from FAR:

    cat <service_account_key_base64 file> | docker login -u _json_key_base64 --password-stdin <URL of F5 Artifact Registry>
    

    In this example, cne_pull_64.json is the same Service Account Key.

    cat cne_pull_64.json | docker login -u _json_key_base64 --password-stdin https://repo.f5.com
    
  5. Perform Docker Pull to pull the docker images from FAR:

    docker pull repo.f5.com/<path of Docker Image>:<version of Docker Image> 
    

    In this example, images/rabbit is the path for pulling rabbit docker image and its version is 0.5.9-0.0.1 as retrieved from the manifest.yaml file.

    docker pull repo.f5.com/images/rabbit:v0.5.9-0.0.1
    

Procedure 2: Installing helm chart via imagePullSecrets

The imagePullSecrets feature is used to securely install helm chart from a FAR directly into a cluster by using the Service Account Key from the TGZ file as authentication credentials.

Use the following steps to install helm chart directly from FAR into a cluster:

  1. Perform Helm Login, as shown in Step 1 of Procedure 1: Download cnf Helm charts, Docker Images and other Utilities section.

  2. Perform Docker Login to download docker images as shown in step 4 of Procedure 1: Download cnf Helm charts, Docker Images and other Utilities section.

  3. Copy and paste the below bash script into a .sh file and run.

    _images/spk_info.png Note: The bash script here is using cne_pull_64.json as a Service Account Key. This script is written for Linux. Remove -w 0 as arguments to base64 from the script when using on Mac.

      #!/bin/bash
    
      # Read the content of pipeline.json into the SERVICE_ACCOUNT_KEY variable
      SERVICE_ACCOUNT_KEY=$(cat cne_pull_64.json)
    
      # Create the SERVICE_ACCOUNT_K8S_SECRET variable by appending "_json_key_base64:" to the base64 encoded SERVICE_ACCOUNT_KEY
      SERVICE_ACCOUNT_K8S_SECRET=$(echo "_json_key_base64:${SERVICE_ACCOUNT_KEY}" | base64 -w 0)
    
      # Create the secret.yaml file with the provided content
      cat << EOF > far-secret.yaml
      ---
      apiVersion: v1
      kind: Secret
      metadata:
        name: far-secret
      data:
        .dockerconfigjson: $(echo "{\"auths\": {\
      \"repo.f5.com\":\
      {\"auth\": \"$SERVICE_ACCOUNT_K8S_SECRET\"}}}" | base64 -w 0)
      type: kubernetes.io/dockerconfigjson
      EOF
    

    The far-secret.yaml secret file will be generated according to the secret name provided in the bash script.

  4. Apply far-secret.yaml secret file to the namespace where you want to install the helm chart:

    kubectl create -f far-secret.yaml -n <namespace>  
    

    In this example the far-secret.yaml secret is install to the demo-ns Project.

    kubectl create -f far-secret.yaml -n demo-ns  
    
  5. To install the helm charts from FAR, set the imageCredentials and image.repository parameters in the helm values files as shown in the following examples:

    a. Fluentd:

    Configure the fluentd-values.yaml file with imageCredentials and image.repository parameters. For complete yaml file, see Fluendlogging.

     ```bash 
     imageCredentials:
       name: far-secret    
    
     image:
       repository: repo.f5.com/images
     ```
    

    b. CWC:

    Configure the cwc-values.yaml file with imageCredentials and image.repository parameters. For complete yaml file, see CNFs CWC.

    cwc:
      image:
        repository: "local.registry.com"
        name: spk-cwc
      imageCredentials:
        name: far-secret
    orch:
      image:
        repository: "local.registry.com"
        name: f5-csm-qkview
    fluentbit_sidecar:
      image:
        repository: "local.registry.com"
        name: fluentbit  
    

    c. RabbitMQ:

    Configure the rabbitmq-values.yaml file with imageCredentials and image.repository parameters. For complete yaml file, see CNFs CWC.

    image:
      repository: "local.registry.com"
    imageCredentials:
        name: far-secret
    

    d. CRD Conversion:

    Configure the crd-conversion-values.yaml file with imageCredentials and image.repository parameters. For complete yaml file, see CRD Conversion Webhook.

    crdconversion:
      enabled: true
      debug: false
      image:
        repository: 
        pullPolicy: 
      imageCredentials:
        name: far-secret
    

    e. F5 Ingress:

    Configure the f5ingress-values.yaml file with imageCredentials and image.repository parameters. For complete yaml file, see BIG-IP Controller.

    controller:  
      image:
          repository: 
          pullPolicy: 
    imageCredentials:
      name: far-secret
    global:
      serviceAccount:
      imageCredentials:
        name: far-secret
    

    f. dSSM:

    Configure the dssm-values.yaml file with imageCredentials and image.repository parameters. For complete yaml file, see dSSM Database.

    fluentbit_sidecar:
        enabled: true
        image:
          repository: 
          pullPolicy: 
    imagePullSecrets:
      - name: far-secret
    

    f. Cert Manager:

    Configure the cert-manager-values.yaml file with imageCredentials and image.repository parameters. For complete yaml file, see Cert Manager.

    global:
       imagePullSecrets:
        - name: far-secret 
    image:
      repository: 
      pullPolicy: 
    

    Note: Attribute imageCredentials name varies for different helm charts. To know the exact name defined for this field, please refer the document of that particular helm chart.

  6. Install the helm chart:

    helm install <release name> oci://repo.f5.com/<path of helm chart> --version <version number> -f <values>.yaml
    

    In this example, charts/f5-toda-fluentd is the path for installing f5-toda-fluentd helm chart its version is 1.31.12-10.0.12, values file is fluentd_values.yaml (Created in Step 3).

    helm install f5-fluentd oci://repo.f5.com/charts/f5-toda-fluentd --version 1.31.12-10.0.12 -f fluentd_values.yaml
    
  7. Verify the status of the helm chart:

    kubectl get pods -n demo-ns   
    

    In this example, the f5-toda-fluentd is Running.

    NAME                               READY   STATUS   RESTARTS   AGE  
    f5-toda-fluentd-6fcdb48d8b-4dkcc   1/1     Running         0    9s
    

Feedback

Provide feedback to improve this document by emailing cnfdocs@f5.com.