Adding MaidBotApi
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
patchesStrategicMerge:
|
||||
- set_appsettings_deployment.yaml
|
||||
- set_secrets_provider_class.yaml
|
||||
images:
|
||||
- name: maidbot-api
|
||||
newName: landmarkcu/lcu.api.internal.maidbot-maidbot
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: maidbot-api
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: maidbot-api
|
||||
env:
|
||||
- name: ASPNETCORE_ENVIRONMENT
|
||||
value: "Development"
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||
kind: SecretProviderClass
|
||||
metadata:
|
||||
name: maidbot-api-csi-key-vault-secrets-provider
|
||||
spec:
|
||||
parameters:
|
||||
userAssignedIdentityID: 3286ed9a-f85c-4c50-b742-dbd3c1c3fe1f
|
||||
keyvaultName: kv-lz-apps-qa-uscz
|
||||
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- normal
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: maidbot-configmap
|
||||
data:
|
||||
primary.json: |
|
||||
{
|
||||
"Primary": {
|
||||
"SeqUrl": "https://qa-seq.lcu-internal.com",
|
||||
"CorsAllowedOrigins": [
|
||||
"http://localhost:3000",
|
||||
"http://lcu-internal.com",
|
||||
"https://lcu-internal.com",
|
||||
"https://qa-api.lcu-internal.com",
|
||||
"https://uat-api.lcu-internal.com",
|
||||
"https://api.lcu-internal.com"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
- ../common
|
||||
patchesStrategicMerge:
|
||||
- set_virtual_service.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: maidbot-api
|
||||
spec:
|
||||
hosts:
|
||||
- qa-maidbot-api.apps.azure.lcu-internal.com
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"Primary": {
|
||||
"AppName": "MaidBot Api",
|
||||
"SeqUrl": "https://seq.lcu-internal.com",
|
||||
"NotificationsApiEmail": "https://notificationsapi.lcu-internal.com/api/Email",
|
||||
"FeatureFlags": {
|
||||
"LoggingEventConsumer": true,
|
||||
"RunScheduler": true
|
||||
},
|
||||
"BatchSchedulerCron": "*/5 * * * *",
|
||||
"CorsAllowedOrigins": [
|
||||
"http://lcu-internal.com",
|
||||
"https://lcu-internal.com",
|
||||
"https://api.lcu-internal.com"
|
||||
],
|
||||
"LogEmailTemplate": "./Templates/LogEmailTemplate.html",
|
||||
"LogEmailRowTemplate": "./Templates/LogEmailRowTemplate.html"
|
||||
},
|
||||
"ConnectionConfiguration": {
|
||||
"HostUrl": "rabbitmq.lcu-internal.com"
|
||||
},
|
||||
"ReceiveEndpoint": {
|
||||
"ReceiveEndpoint": "LCU.MaidBot",
|
||||
"ReceiveEndpointType": "exchange",
|
||||
"PrefetchLimit": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: SecretProviderClass
|
||||
path: set_secrets_provider_class.yaml
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
- op: add
|
||||
path: /spec/parameters/userAssignedIdentityID
|
||||
value: 3286ed9a-f85c-4c50-b742-dbd3c1c3fe1f
|
||||
|
||||
- op: add
|
||||
path: /spec/parameters/keyvaultName
|
||||
value: kv-lz-apps-qa-uscz
|
||||
@@ -0,0 +1,14 @@
|
||||
resources:
|
||||
- normal
|
||||
|
||||
configMapGenerator:
|
||||
- name: maidbot-api-environment-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_configmap_deployment.yaml
|
||||
@@ -0,0 +1,12 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
|
||||
components:
|
||||
- ../component
|
||||
- ../../../components/keyvaults/normal
|
||||
- ../../../components/workloads/normal
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: VirtualService
|
||||
path: set_virtual_service.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
- op: add
|
||||
path: /spec/hosts/-
|
||||
value: prd-maidbot-api.apps.azure.lcu-internal.com
|
||||
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-environment-appsettings
|
||||
configMap:
|
||||
name: maidbot-api-environment-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-environment-appsettings
|
||||
mountPath: /app/config/environment-appsettings
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"Primary": {
|
||||
"AppName": "MaidBot Api",
|
||||
"SeqUrl": "https://qa-seq.lcu-internal.com",
|
||||
"NotificationsApiEmail": "https://qa-notificationsapi.lcu-internal.com/api/Email",
|
||||
"FeatureFlags": {
|
||||
"LoggingEventConsumer": true,
|
||||
"RunScheduler": true
|
||||
},
|
||||
"BatchSchedulerCron": "*/5 * * * *",
|
||||
"CorsAllowedOrigins": [
|
||||
"http://lcu-internal.com",
|
||||
"https://lcu-internal.com",
|
||||
"https://qa-api.lcu-internal.com"
|
||||
],
|
||||
"LogEmailTemplate": "./Templates/LogEmailTemplate.html",
|
||||
"LogEmailRowTemplate": "./Templates/LogEmailRowTemplate.html"
|
||||
},
|
||||
"ConnectionConfiguration": {
|
||||
"HostUrl": "qa-rabbitmq.lcu-internal.com"
|
||||
},
|
||||
"ReceiveEndpoint": {
|
||||
"ReceiveEndpoint": "LCU.MaidBot",
|
||||
"ReceiveEndpointType": "exchange",
|
||||
"PrefetchLimit": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: SecretProviderClass
|
||||
path: set_secrets_provider_class.yaml
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
- op: add
|
||||
path: /spec/parameters/userAssignedIdentityID
|
||||
value: 3286ed9a-f85c-4c50-b742-dbd3c1c3fe1f
|
||||
|
||||
- op: add
|
||||
path: /spec/parameters/keyvaultName
|
||||
value: kv-lz-apps-qa-uscz
|
||||
@@ -0,0 +1,14 @@
|
||||
resources:
|
||||
- normal
|
||||
|
||||
configMapGenerator:
|
||||
- name: maidbot-api-environment-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_configmap_deployment.yaml
|
||||
@@ -0,0 +1,12 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
|
||||
components:
|
||||
- ../component
|
||||
- ../../../components/keyvaults/normal
|
||||
- ../../../components/workloads/normal
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: VirtualService
|
||||
path: set_virtual_service.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
- op: add
|
||||
path: /spec/hosts/-
|
||||
value: qa-maidbot-api.apps.azure.lcu-internal.com
|
||||
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-environment-appsettings
|
||||
configMap:
|
||||
name: maidbot-api-environment-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-environment-appsettings
|
||||
mountPath: /app/config/environment-appsettings
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"Primary": {
|
||||
"AppName": "MaidBot Api",
|
||||
"SeqUrl": "https://uat-seq.lcu-internal.com",
|
||||
"NotificationsApiEmail": "https://uat-notificationsapi.lcu-internal.com/api/Email",
|
||||
"FeatureFlags": {
|
||||
"LoggingEventConsumer": true,
|
||||
"RunScheduler": true
|
||||
},
|
||||
"BatchSchedulerCron": "*/5 * * * *",
|
||||
"CorsAllowedOrigins": [
|
||||
"http://lcu-internal.com",
|
||||
"https://lcu-internal.com",
|
||||
"https://uat-api.lcu-internal.com"
|
||||
],
|
||||
"LogEmailTemplate": "./Templates/LogEmailTemplate.html",
|
||||
"LogEmailRowTemplate": "./Templates/LogEmailRowTemplate.html"
|
||||
},
|
||||
"ConnectionConfiguration": {
|
||||
"HostUrl": "uat-rabbitmq.lcu-internal.com"
|
||||
},
|
||||
"ReceiveEndpoint": {
|
||||
"ReceiveEndpoint": "LCU.MaidBot",
|
||||
"ReceiveEndpointType": "exchange",
|
||||
"PrefetchLimit": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: SecretProviderClass
|
||||
path: set_secrets_provider_class.yaml
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
- op: add
|
||||
path: /spec/parameters/userAssignedIdentityID
|
||||
value: 3286ed9a-f85c-4c50-b742-dbd3c1c3fe1f
|
||||
|
||||
- op: add
|
||||
path: /spec/parameters/keyvaultName
|
||||
value: kv-lz-apps-qa-uscz
|
||||
@@ -0,0 +1,14 @@
|
||||
resources:
|
||||
- normal
|
||||
|
||||
configMapGenerator:
|
||||
- name: maidbot-api-environment-appsettings
|
||||
files:
|
||||
- appsettings/appsettings.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
path: set_configmap_deployment.yaml
|
||||
@@ -0,0 +1,12 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
|
||||
components:
|
||||
- ../component
|
||||
- ../../../components/keyvaults/normal
|
||||
- ../../../components/workloads/normal
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: VirtualService
|
||||
path: set_virtual_service.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
- op: add
|
||||
path: /spec/hosts/-
|
||||
value: uat-maidbot-api.apps.azure.lcu-internal.com
|
||||
@@ -0,0 +1,12 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes/-
|
||||
value:
|
||||
name: volume-environment-appsettings
|
||||
configMap:
|
||||
name: maidbot-api-environment-appsettings
|
||||
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
||||
value:
|
||||
name: volume-environment-appsettings
|
||||
mountPath: /app/config/environment-appsettings
|
||||
Reference in New Issue
Block a user