Updating PCF Ops Center Configuration

This section describes the procedure involved in updating the PCF Ops Center configuration after restoring it. To update the PCF Ops Center configuration:

  1. Log in to the master node as an ubuntu user.

  2. Run the following command to log in to the PCF Ops Center CLI.

    Example:
    ubuntu@popcf-mas01:~$ ssh -p <port_number> admin@$(kubectl get svc -n $(kubectl get namespaces | grep -oP 'pcf-(\d+|\w+)') | grep <port_number> | awk '{ print $3 }')
    admin@<admin_ip_address> password: PCF-OPS-PASSWORD
    Welcome to the pcf CLI on popcf01
    admin connected from <admin_ip_address> using ssh on ops-center-pcf-01-ops-center-68dd9f588-htjdf
    
  3. Paste the contents of the exported PCF configuration file (the pcfops.txt file mentioned in this example) in the PCF Ops Center.

    Example:
    product pcf# config
    Entering configuration mode terminal
    product pcf(config)# <PASTE CONTENTS OF pcfops.txt AND RETURN TO ‘config’ mode. Don’t Paste Default Configuration>
    product pcf(config)#
    
    Important

    Fix any sections in the configuration file that did not import properly.

  4. Ensure that the helm URLs are inline with the updated PCF image.

    Example:

    product pcf(config)# helm repository base-repos
    product pcf(config-repository-base-repos)# url <url>
    product pcf(config-repository-base-repos)# exit
    product pcf(config)# k8s registry <registry_url>
    product pcf(config)# commit
    Commit complete.
    product pcf(config)#