v1

UtilityServiceGroupv1 のYAMLサンプルを確認し、独自の設定を行ってください。
UtilityServiceGroupを作成するには、以下のいずれかの方法を使用できます:
  • 方法 1: サービスグループをデプロイする対象となる環境である `property` を name 指定します。 、 appServers backendServerslogstashServers、およびその他のサービスプロパティは、サービスグループの作成時に自動的に設定されます。 必要に応じて設定を変更することで、カスタマイズすることができます。 詳細については、 「 UtilityServiceGroup カスタムリソースの設定(独立モード)」 を参照してください。
  • 方法 2:すでにテスト UtilityServiceGroup 済みのスキーマを、ある環境から別の環境へコピーして貼り付ける。 この方法を使えば、サービスグループを一から作成する手間を省くことができます。
kind 以下の YAML を実行すると、環境の および name に基づいて仕様が設定されます。 production<name> の値は または の dev いずれかです。
apiVersion: apps.sip.ibm.com/v1
kind: UtilityServiceGroup
metadata:
  name: <name>
  namespace: <sip_installation_namespace>
spec: {}

UtilityServiceGroup 以下の例は、開発モードおよび本番モードで を作成するためのスキーマを示しています。

図1: 開発モード
apiVersion: apps.sip.ibm.com/v1
kind: UtilityServiceGroup
metadata:
  name: dev
  namespace: <sip_installation_namespace>
spec:
  active: 
  image:
    pullPolicy: Always
    repository: stg.icr.io/cp/ibm-oms-enterprise
    tag: 10.0.2601.1-amd64
    search:
      digest:
      imageName:
      onboardDigest:
      onboardImageName:
      tag: 
      pullPolicy: 
    rules:
      digest:
      imageName:
      onboardDigest:
      onboardImageName:
      tag: 
      pullPolicy: 
    logstash:
      digest:
      imageName:
      onboardDigest:
      onboardImageName:
      tag: 
      pullPolicy:
    catalog:
      digest:
      imageName:
      onboardDigest:
      onboardImageName:
      tag: 
      pullPolicy: 
    carrier:
      digest:
      imageName:
      onboardDigest:
      onboardImageName:
      tag: 
      pullPolicy: 
    capacity:
      digest:
      appServerImageName: sip-capacity-appserver
      backendImageName: sip-capacity-backend
      pullPolicy: "" 
      tag: 
      pullPolicy:       
    audit:
      digest:
      imageName:
      onboardDigest:
      onboardImageName:
      tag: 
      pullPolicy:
auditService:
    active: true
    appServers:
      - active: true
        groupName: appserver
        names:
          - apisipaudit
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    jobs:
      - name: elasticsearch-onboarding
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
    logstashServers:
      - active: true
        groupName: logstash
        names:
          - logstash
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
carrierService:
    active: true
    appServers:
      - active: true
        groupName: appserver
        names:
          - cas-server
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    jobs:
      - name: cassandra-onboarding
        jobBackoffLimit: ""
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
catalogService:
    active: true
    appServers:
      - active: true
        groupName: appserver
        names:
          - apicatalog
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    backendServers:
      - active: true
        groupName: backend
        names:
          - 'UpdateCategory:1'
          - 'UpdateItem:1'
          - 'UpdateAttribute:1'
          - 'UpdateClassification:1'
          - 'FullSync:1'
          - 'IngestItem:1'
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    jobs:
      - name: elasticsearch-onboarding
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
capacityService:
    active: true
    appServers:
      - active: true
        groupName: appserver
        names:
          - capacity-service
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    backendServers:
      - active: true
        groupName: backend
        names:
          - 'capacity-scheduler:1'
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi      
rulesService:
    active: true
    appServers:
      - active: true
        groupName: appserver
        names:
          - apirules
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    backendServers:
      - active: true
        groupName: backend
        names:
          - shipNode
          - dataReplication
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    jobs:
      - name: elasticsearch-onboarding
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
searchService:
    maxAllowedNumberOfItemIds: 50
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    active: true
    appServers:
      - active: true
        groupName: appserver
        names:
          - apidemandssearch
          - apisuppliessearch
          - apireservationsearch
          - apiinventorytagsearch
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    maxAllowedNumberOfShipNodes: 200
    jobs:
      - name: elasticsearch-onboarding
        jobBackoffLimit: ""
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
    distributionShipNodesCacheDurationMinutes: 10
    logstashServers:
      - active: true
        groupName: logstash
        names:
          - logstash-supply
          - logstash-demand
          - logstash-reservation
          - logstash-inventorytag
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    removeSortingForSingleItemId: true
図2: 実動モード
apiVersion: apps.sip.ibm.com/v1
kind: UtilityServiceGroup
metadata:
  name: production
  namespace: <sip_installation_namespace>
spec:
  active: 
  image:
    repository: 
    filex:
      tag: 
    search:
      tag: 
    rules:
      tag: 
    logstash:
      tag: 
    catalog:
      tag: 
    carrier:
      tag: 
    audit:
      tag:
  auditService:
    active: true
    appServers:
      - active: true
        names:
          - apisipaudit
        resources:
        topology:
          - 
        property:     
        pod:
          podAnnotations:
          podLabels:     
        logLevel: 
        horizontalPodAutoscaler: 
        affinityAndTolerations: 
        image:
          tag: 
    defaultReplicas: 1         
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    jobs:
      - name: onboarding-job
        resources:
        topology:
          - 
        property:     
        pod:
          podAnnotations:
          podLabels:     
        logLevel: 
        horizontalPodAutoscaler: 
        affinityAndTolerations: 
    logstashServers:
      - active: true
        names:
          - logstash
        replicaCount: 2
        resources:
        topology:
          - 
        property:     
        pod:
          podAnnotations:
          podLabels:     
        logLevel: 
        horizontalPodAutoscaler: 
        affinityAndTolerations: 
        image:
          tag:        
  carrierService:
    active: true
    appServers:
      - active: true
        names:
          - cas-server
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    jobs:
      - name: onboarding-job
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
  catalogService:
    active: true
    appServers:
      - active: true
        names:
          - apicatalog
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    backendServers:
      - active: true
        names:
          - 'UpdateClassification:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'FullSync:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'IngestItem:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'UpdateCategory:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'UpdateItem:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'UpdateAttribute:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    jobs:
      - name: onboarding-job
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
  filexService:
    active: false
    appServers:
      - active: true
        names:
          - api-server
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - ticker-server
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    backendServers:
      - active: true
        names:
          - 'e2f-publish-promise:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-publish-supply:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-publish-inventory-availability:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-process-catalog-item-ingest-failure-handler:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-publish-order:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-process-sourcing-plan:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-publish-sourcing-plan:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'f2e-job-server:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'f2e-exchange-server:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-process-catalog-upserted:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-process-supply:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-publish-inventory-availability-snapshot:5'
        replicaCount: 2
        resources:
        topology: {}
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-publish-catalog-item-ingest-failure-handler:5'
        replicaCount: 2
        resources:
        topology: {}
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-publish-failure-handler:5'
        replicaCount: 2
        resources:
        topology: {}
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-publish-catalog-upserted:5'
        replicaCount: 2
        resources:
        topology: {}
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-process-supply-snapshot:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-publish-supply-snapshot:5'
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - 'e2f-process-inventory-availability-snapshot:5'
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
        replicaCount: 2
      - active: true
        names:
          - 'e2f-process-order:5'
        replicaCount: 2
      - active: true
        names:
          - 'e2f-process-promise:5'
        replicaCount: 2
      - active: true
        names:
          - 'e2f-process-inventory-availability:5'
        replicaCount: 2
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    jobs:
      - name: onboarding-job
        jobBackoffLimit: ""
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
  rulesService:
    active: true
    appServers:
      - active: true
        names:
          - apirules
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    backendServers:
      - active: true
        names:
          - shipNode
        replicaCount: 2
      - active: true
        names:
          - dataReplication
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    jobs:
      - name: onboarding-job
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
  searchService:
    maxAllowedNumberOfItemIds: 50
    defaultresources:
      limits:
        cpu: '1'
        memory: 1536Mi
      requests:
        cpu: 100m
        memory: 1Gi
    active: true
    appServers:
      - active: true
        names:
          - apiinventorytagsearch
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - apidemandssearch
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - apisuppliessearch
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
      - active: true
        names:
          - apireservationsearch
        replicaCount: 2
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
    maxAllowedNumberOfShipNodes: 200
    jobs:
      - name: onboarding-job
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
      - name: tenant-onboarding-job
        jobBackoffLimit: ""
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
    distributionShipNodesCacheDurationMinutes: 10
    logstashServers:
       - active: true
        groupName: logstash
        names:
          - logstash-supply
          - logstash-demand
          - logstash-reservation
          - logstash-inventorytag
        replicaCount: 1
        resources:
        topology:
          -
        property:
        pod:
          podAnnotations:
          podLabels:
        logLevel:
        horizontalPodAutoscaler:
        affinityAndTolerations:
        image:
          tag:
status: {}