OrderHub custom resource manifest

Configure the OrderHub custom resource by setting up the parameters as needed.

Remember: The commented parameters with # are optional for creating OrderHub. The values in example 2 are provided for demonstration purpose only and must me modified as required.

Example 1: OrdeHub configuration with the supported parameters and default values

apiVersion: apps.oms.ibm.com/v1beta1
kind: OrderHub
metadata:
  name: ""
spec:
  license:
    accept: false
  upgradeStrategy: "" 

  networkPolicy:
    <kubernetes-network-policy-spec>

  adminURL: ""
  # serviceAccount: default

  image:
    # imagePullSecrets:
    orderHub:
      base:
        tag: ""
        repository: ""
        # pullPolicy: IfNotPresent
        # imageName: om-orderhub-base
      extn:
        tag: ""
        repository: ""
        # pullPolicy: IfNotPresent
        # imageName: om-orderhub-ext

  orderHub:
    base:
      # livenessCheckBeginAfterSeconds: 900
      # livenessFailRestartAfterMinutes: 10
      replicaCount: 1
      # terminationGracePeriodSeconds: 60
    extn:
      # livenessCheckBeginAfterSeconds: 900
      # livenessFailRestartAfterMinutes: 10
      replicaCount: 1
      #terminationGracePeriodSeconds: 60 

  networking:
    ingress:
      annotations:
      host: ""
      ssl:
        enabled: true
      customDomains:
       - host: ""
        # className: ""
        # annotations: ""
        # labels: ""
        # ssl:
          # enabled: ""
          # identitySecretName: ""

  # serverProfiles:
  #   - name: ProfileHuge
  #     resources:
  #       limits:
  #         cpu: '4'
  #         memory: 8Gi
  #       requests:
  #         cpu: '2'
  #         memory: 4Gi

  # additionalMounts:
    # configMaps:
    # - name: ""
      # mountPath: ""
      # subPath: ""
      # subPathExpr: ""
      # readOnly: false
      # mountPropagation: ""
      # matchLabels: {}
    # secrets:
    # - name: ""
      # mountPath: ""
      # subPath: ""
      # subPathExpr: ""
      # readOnly: false
      # mountPropagation: ""
      # matchLabels: {}
    # storages:
    # - name: ""
      # mountPath: ""
      # storageClassName: ""
      # accessMode: ""
      # capacity: 
      # matchLabels: {}

  # affinityAndTolerations:
  # - name: ""
  #   affinity:
  #     <kubernetes-affinity-spec>
  #   tolerations:
  #   - <kubernetes-toleration-spec>
      
  # horizontalPodAutoscaler: HPA1

Example 2: OrderHub configuration with sample values for quick setup

apiVersion: apps.oms.ibm.com/v1beta1
kind: OrderHub
metadata:
  name: ohub
spec:
  license:
    accept: false
  upgradeStrategy: RollingUpdate

  networkPolicy:
    ingress:
      - {}
    podSelector:
      matchLabels:
        release: oms
        role: appserver
    policyTypes:
      - Ingress

  adminURL: <smcfs_deployment_URL>
  # serviceAccount: default
  
  image:
    base:
      #imageName: om-orderhub-base
      repository: cp.icr.io/cp/ibm-oms-<edition>
      tag: 10.0.2209.0-amd64
    extn:
      #imageName: om-orderhub-ext
      repository: cp.icr.io/cp/ibm-oms-<edition>
      tag: 10.0.2209.0-amd64
    # imagePullSecrets:
    #  - name: imm-entitlement-key

  orderHub:
    base:
      # livenessCheckBeginAfterSeconds: 900
      # livenessFailRestartAfterMinutes: 10
      replicaCount: 1
      # terminationGracePeriodSeconds: 60
    extn:
      # livenessCheckBeginAfterSeconds: 900
      # livenessFailRestartAfterMinutes: 10
      replicaCount: 1
      #terminationGracePeriodSeconds: 60

  networking:
    ingress:
      annotations:
        nginx.ingress.kubernetes.io/rewrite-target: /
      host: public-domain.mycluster.com 
      ssl:
        enabled: true
      # customDomains:
      # - host: ""
        # className: ""
        # annotations: 
         # ingress.kubernetes.io/affinity: "cookie"
        # labels: {}
        # ssl:
          # enabled: ""
          # identitySecretName: mydomain_secret