v1
PromisingServiceGroupv1 のYAMLサンプルを確認し、独自の設定を行ってください。PromisingServiceGroupを作成するには、以下のいずれかの方法を使用できます:- 方法 1: サービスグループをデプロイする対象となる環境である `property` を
name指定します。 、appServersbackendServers、およびその他のサービスプロパティは、サービスグループの作成時に自動的に設定されます。 必要に応じて設定を変更することで、カスタマイズすることができます。 詳細については、 「 PromisingServiceGroup カスタムリソースの設定(独立モード)」 を参照してください。 - 方法 2:すでにテスト
PromisingServiceGroup済みのスキーマを、ある環境から別の環境へコピーして貼り付ける。 この方法を使えば、サービスグループを一から作成する手間を省くことができます。
kind 以下の YAML を実行すると、環境の および name に基づいて仕様が設定されます。 dev<name> の値は、 production、、またはフレキシブルモードの任意の値に設定できます。apiVersion: apps.sip.ibm.com/v1
kind: PromisingServiceGroup
metadata:
name: <name>
namespace: <sip_installation_namespace>
spec: {}
以下の例は、開発モードおよび本番モードにおけるカスタムリソースの PromisingServiceGroup スキーマを示しています。
apiVersion: apps.sip.ibm.com/v1
kind: PromisingServiceGroup
metadata:
name: dev
namespace: <sip_installation_namespace>
spec:
active: true
pod:
podAnnotations: {}
podLabels: {}
logLevel: INFO ##Allowed values are: OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE,
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
image:
imageName: sip-promising
onboardImageName: sip-promising-onboard
digest:
onboardDigest:
pullPolicy: Always
repository: stg.icr.io/cp/ibm-oms-enterprise
tag: 10.0.2601.1-amd64
imagePullSecrets:
- name: ibm-entitlement-key
- name: my-private-registry-key1
appServers:
- active: true
groupName: appserver
names:
- promising-server
replicaCount: 1
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
backendServers:
- active: true
groupName: backend
names:
- 'cas-carrier-service-sync-flatten:1'
- 'prm-source-stream-demux:1'
- 'prm-carrier-service-sync:1'
- 'prm-carrier-service-deleted:1'
- 'cat-item-events-flatten:1'
- 'item-deleted-handler:1'
- 'iv-supply-breakup-source-stream-flatten:1'
- 'iv-supply-breakup-sink-stream-consumer:1'
- 'odx-source-stream-flatten:1'
- 'prm-shipnode-sync:1'
- 'item-upserted-handler:1'
- 'iv-supply-breakup-snapshot-source-stream-flatten:1'
- 'prm-node-day-capacity-availability-publisher:1'
- 'edd-cache-precompute-calculator:1'
replicaCount: 1
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
defaultresources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 100m
memory: 1Gi
jobs:
- name: cassandra-onboarding
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
jobBackofflimit: ""
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- name: prepare-environment-job
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
jobBackofflimit: ""
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
apiVersion: apps.sip.ibm.com/v1
kind: PromisingServiceGroup
metadata:
name: production
namespace: <sip_installation_namespace>
spec:
active: false
pod:
podAnnotations: {}
podLabesl: {}
logLevel: INFO ##Allowed values are: OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL
image:
imageName: sip-promising
onboardImageName: sip-promising-onboard
digest:
onboardDigest:
pullPolicy: Always
repository: stg.icr.io/cp/ibm-oms-enterprise
tag: 10.0.2601.1-amd64
imagePullSecrets:
- name: ibm-entitlement-key
- name: my-private-registry-key1
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
appServers:
- active: true
names:
- promising-server
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
backendServers:
- active: true
names:
- 'item-deleted-handler:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'iv-supply-breakup-snapshot-source-stream-flatten:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'odx-source-stream-flatten:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'cas-carrier-service-sync-flatten:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'prm-source-stream-demux:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'iv-supply-breakup-source-stream-flatten:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'iv-supply-breakup-sink-stream-consumer:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'prm-node-day-capacity-availability-publisher:1'
replicaCount: 1
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'edd-cache-precompute-calculator:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'prm-shipnode-sync:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'prm-carrier-service-sync:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'prm-carrier-service-deleted:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'cat-item-events-flatten:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- active: true
names:
- 'item-upserted-handler:5'
replicaCount: 2
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
image:
tag: <release_tag>
pullPolicy: IfNotPresent
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
defaultresources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 100m
memory: 1Gi
jobs:
- name: cassandra-onboarding
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
jobBackoffLimit: ""
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
- name: prepare-environment-job
affinityAndTolerations: ""
horizontalPodAutoscaler: ""
topology: {}
jobBackoffLimit: ""
pod:
podAnnotations:
podLabels:
logLevel: INFO
property:
envVars: iv_properties
jvmArgs: iv_jvmargs
resources:
limits:
cpu: '1'
memory: 1536Mi
requests:
cpu: 250m
memory: 512Mi
status: {}