Apply a custom YAML for a small common services environment

The common services small sizing profile is not adequate as a minimum for common services when Cloud Pak for Multicloud Management is installed.

A customized YAML file that defines a new set of defaults is available to replace the common services small profile.

Before you begin

Ensure the common services operator is installed.

Run the following command to show the current values for your common services. You can also use this to verify your changes after you update the common services specification.

oc get commonservice -n ibm-common-services -o yaml

Procedure

  1. Create a YAML file based on the following YAML sample, this procedure refers to this files as <new_YAML_file>

  2. Run the following command to update the current common services specification with the specification in <new_YAML_file>.

    oc edit CommonService common-service -n ibm-common-services
    

    or

    Run the following command

    oc apply -f <new_yaml_file>
    

<new_YAML_file>

apiVersion: operator.ibm.com/v3
kind: CommonService
metadata:
  name: common-service
  namespace: ibm-common-services
spec:
  services:
  - name: ibm-cert-manager-operator
    spec:
      certManager:
        certManagerCAInjector:
          resources:
            limits:
              cpu: 500m
              memory: 525Mi
            requests:
              cpu: 100m
              memory: 315Mi
        certManagerController:
          resources:
            limits:
              cpu: 500m
              memory: 525Mi
            requests:
              cpu: 100m
              memory: 315Mi
        certManagerWebhook:
          resources:
            limits:
              cpu: 500m
              memory: 525Mi
            requests:
              cpu: 100m
              memory: 315Mi
        configMapWatcher:
          resources:
            limits:
              cpu: 500m
              memory: 525Mi
            requests:
              cpu: 100m
              memory: 315Mi
  - name: ibm-mongodb-operator
    spec:
      mongoDB:
        replicas: 3
        resources:
          limits:
            cpu: 2000m
            memory: 5368Mi
          requests:
            cpu: 1500m
            memory: 5368Mi
  - name: ibm-iam-operator
    spec:
      authentication:
        replicas: 1
        auditService:
          resources:
            limits:
              cpu: 100m
              memory: 134Mi
            requests:
              cpu: 10m
              memory: 104Mi
        authService:
          resources:
            limits:
              cpu: 1000m
              memory: 1073Mi
            requests:
              cpu: 100m
              memory: 367Mi
        clientRegistration:
          resources:
            limits:
              cpu: 1000m
              memory: 1073Mi
            requests:
              cpu: 100m
              memory: 134Mi
        identityManager:
          resources:
            limits:
              cpu: 1000m
              memory: 1073Mi
            requests:
              cpu: 50m
              memory: 157Mi
        identityProvider:
          resources:
            limits:
              cpu: 1000m
              memory: 1073Mi
            requests:
              cpu: 50m
              memory: 157Mi
      oidcclientwatcher:
        replicas: 1
        resources:
          limits:
            cpu: 200m
            memory: 268Mi
          requests:
            cpu: 10m
            memory: 17Mi
      pap:
        auditService:
          resources:
            limits:
              cpu: 200m
              memory: 209Mi
            requests:
              cpu: 20m
              memory: 20Mi
        papService:
          resources:
            limits:
              cpu: 1000m
              memory: 1073Mi
            requests:
              cpu: 50m
              memory: 209Mi
        replicas: 1
      policycontroller:
        replicas: 1
        resources:
          limits:
            cpu: 200m
            memory: 402Mi
          requests:
            cpu: 100m
            memory: 134Mi
      policydecision:
        auditService:
          resources:
            limits:
              cpu: 200m
              memory: 268Mi
            requests:
              cpu: 10m
              memory: 104Mi
        resources:
          limits:
            cpu: 200m
            memory: 268Mi
          requests:
            cpu: 20m
            memory: 104Mi
        replicas: 1
      secretwatcher:
        resources:
          limits:
            cpu: 200m
            memory: 536Mi
          requests:
            cpu: 50m
            memory: 67Mi
        replicas: 1
      securityonboarding:
        replicas: 1
        resources:
          limits:
            cpu: 200m
            memory: 536Mi
          requests:
            cpu: 20m
            memory: 67Mi
        iamOnboarding:
          resources:
            limits:
              cpu: 200m
              memory: 1073Mi
            requests:
              cpu: 20m
              memory: 67Mi
  - name: ibm-management-ingress-operator
    spec:
      managementIngress:
        replicas: 1
        resources:
          requests:
            cpu: 50m
            memory: 314Mi
          limits:
            cpu: 200m
            memory: 536Mi
  - name: ibm-ingress-nginx-operator
    spec:
      nginxIngress:
        ingress:
          replicas: 1
          resources:
            requests:
              cpu: 50m
              memory: 157Mi
            limits:
              cpu: 200m
              memory: 536Mi
        defaultBackend:
          replicas: 1
          resources:
            requests:
              cpu: 20m
              memory: 67Mi
            limits:
              cpu: 50m
              memory: 134Mi
        kubectl:
          resources:
            requests:
              memory: 150Mi
              cpu: 30m
            limits:
              memory: 256Mi
              cpu: 100m
  - name: ibm-metering-operator
    spec:
      metering:
        dataManager:
          dm:
            resources:
              limits:
                cpu: 1000m
                memory: 2684Mi
              requests:
                cpu: 100m
                memory: 268Mi
        reader:
          rdr:
            resources:
              limits:
                cpu: 500m
                memory: 536Mi
              requests:
                cpu: 100m
                memory: 134Mi
      meteringReportServer:
        reportServer:
          resources:
            limits:
              cpu: 100m
              memory: 90Mi
            requests:
              cpu: 50m
              memory: 65Mi
      meteringUI:
        replicas: 1
        ui:
          resources:
            limits:
              cpu: 500m
              memory: 536Mi
            requests:
              cpu: 100m
              memory: 134Mi
  - name: ibm-licensing-operator
    spec:
      IBMLicensing:
        resources:
          requests:
            cpu: 200m
            memory: 268Mi
          limits:
            cpu: 500m
            memory: 536Mi
      IBMLicenseServiceReporter:
        databaseContainer:
          resources:
            requests:
              cpu: 200m
              memory: 256Mi
            limits:
              cpu: 300m
              memory: 300Mi
        receiverContainer:
          resources:
            requests:
              cpu: 200m
              memory: 256Mi
            limits:
              cpu: 300m
              memory: 300Mi
  - name: ibm-commonui-operator
    spec:
      commonWebUI:
        replicas: 1
        resources:
          requests:
            memory: 268Mi
            cpu: 450m
          limits:
            memory: 268Mi
            cpu: 1000m
  - name: ibm-platform-api-operator
    spec:
      platformApi:
        auditService:
          resources:
            limits:
              cpu: 200m
              memory: 262Mi
            requests:
              cpu: 200m
              memory: 262Mi
        platformApi:
          resources:
            limits:
              cpu: 500m
              memory: 536Mi
            requests:
              cpu: 500m
              memory: 536Mi
        replicas: 1
  - name: ibm-healthcheck-operator
    spec:
      healthService:
        memcached:
          replicas: 1
          resources:
            requests:
              memory: 67Mi
              cpu: 50m
            limits:
              memory: 536Mi
              cpu: 500m
        healthService:
          replicas: 1
          resources:
            requests:
              memory: 67Mi
              cpu: 50m
            limits:
              memory: 536Mi
              cpu: 500m
  - name: ibm-auditlogging-operator
    spec:
      auditLogging:
        fluentd:
          resources:
            requests:
              cpu: 25m
              memory: 104Mi
            limits:
              cpu: 300m
              memory: 419Mi
  - name: ibm-monitoring-exporters-operator
    spec:
      exporter:
        collectd:
          resource:
            requests:
              cpu: 30m
              memory: 50Mi
            limits:
              cpu: 30m
              memory: 50Mi
          routerResource:
            limits:
              cpu: 200m
              memory: 268Mi
            requests:
              cpu: 10m
              memory: 67Mi
        nodeExporter:
          resource:
            requests:
              cpu: 20m
              memory: 50Mi
            limits:
              cpu: 20m
              memory: 50Mi
          routerResource:
            requests:
              cpu: 50m
              memory: 128Mi
            limits:
              cpu: 100m
              memory: 256Mi
        kubeStateMetrics:
          resource:
            requests:
              cpu: 500m
              memory: 180Mi
            limits:
              cpu: 540m
              memory: 220Mi
          routerResource:
            limits:
              cpu: 25m
              memory: 50Mi
            requests:
              cpu: 20m
              memory: 50Mi
  - name: ibm-monitoring-grafana-operator
    spec:
      grafana:
        grafanaConfig:
          resources:
            requests:
              cpu: 400m
              memory: 230Mi
            limits:
              cpu: 1073m
              memory: 536Mi
        dashboardConfig:
          resources:
            requests:
              cpu: 200m
              memory: 268Mi
            limits:
              cpu: 500m
              memory: 536Mi
        routerConfig:
          resources:
            requests:
              cpu: 200m
              memory: 268Mi
            limits:
              cpu: 500m
              memory: 536Mi
  - name: ibm-monitoring-prometheusext-operator
    spec:
      prometheusExt:
        prometheusConfig:
          routerResource:
            requests:
              cpu: 10m
              memory: 50Mi
            limits:
              cpu: 75m
              memory: 50Mi
          resource:
            requests:
              cpu: 200m
              memory: 3072Mi
            limits:
              cpu: 1000m
              memory: 5120Mi
        alertManagerConfig:
          resource:
            requests:
              cpu: 20m
              memory: 134Mi
            limits:
              cpu: 30m
              memory: 200Mi
        mcmMonitor:
          resource:
            requests:
              cpu: 30m
              memory: 50Mi
            limits:
              cpu: 50m
              memory: 50Mi

Install IBM Cloud Pak for Multicloud Management as normal.