Adding
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_secrets_deployment.yaml
|
||||
- target:
|
||||
kind: SecretProviderClass
|
||||
path: set_secrets_provider.yaml
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: dispatcher-api-secrets
|
||||
csi:
|
||||
driver: secrets-store.csi.k8s.io
|
||||
readOnly: true
|
||||
volumeAttributes:
|
||||
secretProviderClass: dispatcher-api-csi-key-vault-secrets-provider
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: dispatcher-api-secrets
|
||||
mountPath: /vault/secrets/dispatcher-api-database-connection.json
|
||||
readOnly: true
|
||||
subPath: dispatcher-api-database-connection
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: dispatcher-api-secrets
|
||||
mountPath: /vault/secrets/dispatcher-api-seq-api-key.json
|
||||
readOnly: true
|
||||
subPath: dispatcher-api-seq-api-key
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: dispatcher-api-secrets
|
||||
mountPath: /vault/secrets/dispatcher-api-rabbitmq-username.json
|
||||
readOnly: true
|
||||
subPath: dispatcher-api-rabbitmq-username
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: dispatcher-api-secrets
|
||||
mountPath: /vault/secrets/dispatcher-api-rabbitmq-password.json
|
||||
readOnly: true
|
||||
subPath: dispatcher-api-rabbitmq-password
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: dispatcher-api-secrets
|
||||
mountPath: /vault/secrets/dispatcher-api-external-api-key-set.json
|
||||
readOnly: true
|
||||
subPath: dispatcher-api-external-api-key-set
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
- op: add
|
||||
path: /spec/parameters/objects
|
||||
value: |
|
||||
array:
|
||||
- |
|
||||
objectName: dispatcher-api-database-connection
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: dispatcher-api-seq-api-key
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: dispatcher-api-rabbitmq-username
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: dispatcher-api-rabbitmq-password
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: dispatcher-api-external-api-key-set
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"Primary": {
|
||||
"FeatureFlags": {
|
||||
"RunBatchErroredJobsHostedService": false,
|
||||
"RunCleanUpJobsHostedService": false,
|
||||
"RunCompletionConsumer": true,
|
||||
"RunExecutionConsumer": false,
|
||||
"RunJobSchedulerHostedService": false,
|
||||
"RunDetermineOperationConsumer": false,
|
||||
"RunJobFailureConsumer": false,
|
||||
"RunSendErroredJobAlertConsumer": false
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
#Test istio process
|
||||
namePrefix: completion-
|
||||
|
||||
configMapGenerator:
|
||||
- name: dispatcher-api-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_appsettings_deployment.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Deployment
|
||||
fieldPath: metadata.name
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
fieldPaths:
|
||||
- spec.selector.matchLabels.app
|
||||
- spec.template.metadata.labels.app
|
||||
- spec.template.spec.containers.*.name
|
||||
|
||||
- select:
|
||||
kind: Service
|
||||
fieldPaths:
|
||||
- spec.selector.app
|
||||
|
||||
- select:
|
||||
kind: VirtualService
|
||||
fieldPaths:
|
||||
- spec.http.*.route.*.destination.host
|
||||
- spec.http.*.name
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
configMap:
|
||||
name: dispatcher-api-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
mountPath: /app/config/workload-appsettings
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"Primary": {
|
||||
"FeatureFlags": {
|
||||
"RunBatchErroredJobsHostedService": false,
|
||||
"RunCleanUpJobsHostedService": false,
|
||||
"RunCompletionConsumer": false,
|
||||
"RunExecutionConsumer": false,
|
||||
"RunJobSchedulerHostedService": false,
|
||||
"RunDetermineOperationConsumer": true,
|
||||
"RunJobFailureConsumer": false,
|
||||
"RunSendErroredJobAlertConsumer": false
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
#Test istio process
|
||||
namePrefix: determine-operation-
|
||||
|
||||
configMapGenerator:
|
||||
- name: dispatcher-api-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_appsettings_deployment.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Deployment
|
||||
fieldPath: metadata.name
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
fieldPaths:
|
||||
- spec.selector.matchLabels.app
|
||||
- spec.template.metadata.labels.app
|
||||
- spec.template.spec.containers.*.name
|
||||
|
||||
- select:
|
||||
kind: Service
|
||||
fieldPaths:
|
||||
- spec.selector.app
|
||||
|
||||
- select:
|
||||
kind: VirtualService
|
||||
fieldPaths:
|
||||
- spec.http.*.route.*.destination.host
|
||||
- spec.http.*.name
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
configMap:
|
||||
name: dispatcher-api-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
mountPath: /app/config/workload-appsettings
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"Primary": {
|
||||
"FeatureFlags": {
|
||||
"RunBatchErroredJobsHostedService": false,
|
||||
"RunCleanUpJobsHostedService": false,
|
||||
"RunCompletionConsumer": false,
|
||||
"RunExecutionConsumer": true,
|
||||
"RunJobSchedulerHostedService": false,
|
||||
"RunDetermineOperationConsumer": false,
|
||||
"RunJobFailureConsumer": false,
|
||||
"RunSendErroredJobAlertConsumer": false
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
#Test istio process
|
||||
namePrefix: execution-
|
||||
|
||||
configMapGenerator:
|
||||
- name: dispatcher-api-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_appsettings_deployment.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Deployment
|
||||
fieldPath: metadata.name
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
fieldPaths:
|
||||
- spec.selector.matchLabels.app
|
||||
- spec.template.metadata.labels.app
|
||||
- spec.template.spec.containers.*.name
|
||||
|
||||
- select:
|
||||
kind: Service
|
||||
fieldPaths:
|
||||
- spec.selector.app
|
||||
|
||||
- select:
|
||||
kind: VirtualService
|
||||
fieldPaths:
|
||||
- spec.http.*.route.*.destination.host
|
||||
- spec.http.*.name
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
configMap:
|
||||
name: dispatcher-api-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
mountPath: /app/config/workload-appsettings
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"Primary": {
|
||||
"FeatureFlags": {
|
||||
"RunBatchErroredJobsHostedService": false,
|
||||
"RunCleanUpJobsHostedService": false,
|
||||
"RunCompletionConsumer": false,
|
||||
"RunExecutionConsumer": false,
|
||||
"RunJobSchedulerHostedService": false,
|
||||
"RunDetermineOperationConsumer": false,
|
||||
"RunJobFailureConsumer": true,
|
||||
"RunSendErroredJobAlertConsumer": false
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
#Test istio process
|
||||
namePrefix: job-failure-
|
||||
|
||||
configMapGenerator:
|
||||
- name: dispatcher-api-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_appsettings_deployment.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Deployment
|
||||
fieldPath: metadata.name
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
fieldPaths:
|
||||
- spec.selector.matchLabels.app
|
||||
- spec.template.metadata.labels.app
|
||||
- spec.template.spec.containers.*.name
|
||||
|
||||
- select:
|
||||
kind: Service
|
||||
fieldPaths:
|
||||
- spec.selector.app
|
||||
|
||||
- select:
|
||||
kind: VirtualService
|
||||
fieldPaths:
|
||||
- spec.http.*.route.*.destination.host
|
||||
- spec.http.*.name
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
configMap:
|
||||
name: dispatcher-api-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
mountPath: /app/config/workload-appsettings
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"Primary": {
|
||||
"DefaultDelayMilliseconds": 2000,
|
||||
"FeatureFlags": {
|
||||
"RunBatchErroredJobsHostedService": false,
|
||||
"RunCleanUpJobsHostedService": false,
|
||||
"RunCompletionConsumer": false,
|
||||
"RunExecutionConsumer": false,
|
||||
"RunJobSchedulerHostedService": true,
|
||||
"RunDetermineOperationConsumer": false,
|
||||
"RunJobFailureConsumer": false,
|
||||
"RunSendErroredJobAlertConsumer": false
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
#Test istio process
|
||||
namePrefix: job-scheduler-
|
||||
|
||||
configMapGenerator:
|
||||
- name: dispatcher-api-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_appsettings_deployment.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Deployment
|
||||
fieldPath: metadata.name
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
fieldPaths:
|
||||
- spec.selector.matchLabels.app
|
||||
- spec.template.metadata.labels.app
|
||||
- spec.template.spec.containers.*.name
|
||||
|
||||
- select:
|
||||
kind: Service
|
||||
fieldPaths:
|
||||
- spec.selector.app
|
||||
|
||||
- select:
|
||||
kind: VirtualService
|
||||
fieldPaths:
|
||||
- spec.http.*.route.*.destination.host
|
||||
- spec.http.*.name
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
configMap:
|
||||
name: dispatcher-api-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
mountPath: /app/config/workload-appsettings
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"Primary": {
|
||||
"BatchErroredJobsCronSchedule": "0 7-19 * * *",
|
||||
"CleanUpJobsCronSchedule": "00 22 * * *",
|
||||
"CleanUpJobsDaysToDelete": -30,
|
||||
"FeatureFlags": {
|
||||
"RunBatchErroredJobsHostedService": true,
|
||||
"RunCleanUpJobsHostedService": true,
|
||||
"RunCompletionConsumer": false,
|
||||
"RunExecutionConsumer": false,
|
||||
"RunJobSchedulerHostedService": false,
|
||||
"RunDetermineOperationConsumer": false,
|
||||
"RunJobFailureConsumer": false,
|
||||
"RunSendErroredJobAlertConsumer": false
|
||||
},
|
||||
"JobStatusesToMonitorByTimeLimit": [
|
||||
"Processing",
|
||||
"DeterminingOperation",
|
||||
"PendingToRun"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
#Test istio process
|
||||
namePrefix: normal-
|
||||
|
||||
configMapGenerator:
|
||||
- name: dispatcher-api-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_appsettings_deployment.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Deployment
|
||||
fieldPath: metadata.name
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
fieldPaths:
|
||||
- spec.selector.matchLabels.app
|
||||
- spec.template.metadata.labels.app
|
||||
- spec.template.spec.containers.*.name
|
||||
|
||||
- select:
|
||||
kind: Service
|
||||
fieldPaths:
|
||||
- spec.selector.app
|
||||
|
||||
- select:
|
||||
kind: VirtualService
|
||||
fieldPaths:
|
||||
- spec.http.*.route.*.destination.host
|
||||
- spec.http.*.name
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
configMap:
|
||||
name: dispatcher-api-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
mountPath: /app/config/workload-appsettings
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"Primary": {
|
||||
"FeatureFlags": {
|
||||
"RunBatchErroredJobsHostedService": false,
|
||||
"RunCleanUpJobsHostedService": false,
|
||||
"RunCompletionConsumer": false,
|
||||
"RunExecutionConsumer": false,
|
||||
"RunJobSchedulerHostedService": false,
|
||||
"RunDetermineOperationConsumer": false,
|
||||
"RunJobFailureConsumer": false,
|
||||
"RunSendErroredJobAlertConsumer": true
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
#Test istio process
|
||||
namePrefix: send-errored-job-alert-
|
||||
|
||||
configMapGenerator:
|
||||
- name: dispatcher-api-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_appsettings_deployment.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Deployment
|
||||
fieldPath: metadata.name
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
fieldPaths:
|
||||
- spec.selector.matchLabels.app
|
||||
- spec.template.metadata.labels.app
|
||||
- spec.template.spec.containers.*.name
|
||||
|
||||
- select:
|
||||
kind: Service
|
||||
fieldPaths:
|
||||
- spec.selector.app
|
||||
|
||||
- select:
|
||||
kind: VirtualService
|
||||
fieldPaths:
|
||||
- spec.http.*.route.*.destination.host
|
||||
- spec.http.*.name
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
configMap:
|
||||
name: dispatcher-api-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-appsettings
|
||||
mountPath: /app/config/workload-appsettings
|
||||
Reference in New Issue
Block a user