-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from Sitecore/feature/sxc-4085
Add SXC Sitecore Commerce Container SDK 10.3.0.9082.4085
- Loading branch information
Showing
189 changed files
with
8,166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: bizfx | ||
spec: | ||
selector: | ||
app: bizfx | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: bizfx | ||
labels: | ||
app: bizfx | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: bizfx | ||
template: | ||
metadata: | ||
labels: | ||
app: bizfx | ||
spec: | ||
nodeSelector: | ||
kubernetes.io/os: windows | ||
containers: | ||
- name: sitecore-xc-bizfx | ||
image: sitecore-xc-bizfx | ||
ports: | ||
- containerPort: 80 | ||
env: | ||
- name: sitecore_xc_bizfx_default_language | ||
valueFrom: | ||
secretKeyRef: | ||
name: commerce-bizfx | ||
key: commerce-bizfx-language.txt | ||
- name: sitecore_xc_bizfx_default_currency | ||
valueFrom: | ||
secretKeyRef: | ||
name: commerce-bizfx | ||
key: commerce-bizfx-currency.txt | ||
- name: sitecore_xc_bizfx_default_shopname | ||
valueFrom: | ||
secretKeyRef: | ||
name: commerce-bizfx | ||
key: commerce-bizfx-shopname.txt | ||
- name: sitecore_xc_bizfx_bizfx_url | ||
value: https://$(bizfx-hostname) | ||
- name: sitecore_xc_bizfx_authoring_url | ||
value: https://$(engine-authoring-hostname) | ||
- name: sitecore_xc_bizfx_identity_server_url | ||
value: https://$(id-hostname) | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: 80 | ||
httpHeaders: | ||
- name: X-Kubernetes-Probe | ||
value: Liveness | ||
timeoutSeconds: 300 | ||
periodSeconds: 30 | ||
failureThreshold: 3 | ||
startupProbe: | ||
httpGet: | ||
path: / | ||
port: 80 | ||
httpHeaders: | ||
- name: X-Kubernetes-Probe | ||
value: Startup | ||
timeoutSeconds: 300 | ||
periodSeconds: 30 | ||
failureThreshold: 10 | ||
volumeMounts: | ||
- mountPath: C:\inetpub\logs | ||
name: logs | ||
subPath: bizfx | ||
resources: | ||
requests: | ||
memory: 200Mi | ||
cpu: 50m | ||
limits: | ||
memory: 1Gi | ||
cpu: 200m | ||
volumes: | ||
- name: logs | ||
persistentVolumeClaim: | ||
claimName: logs | ||
imagePullSecrets: | ||
- name: sitecore-docker-registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,246 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: cd-config-storage | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
storageClassName: azurefile | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: cd | ||
spec: | ||
selector: | ||
app: cd | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cd | ||
labels: | ||
app: cd | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cd | ||
template: | ||
metadata: | ||
labels: | ||
app: cd | ||
spec: | ||
nodeSelector: | ||
kubernetes.io/os: windows | ||
initContainers: | ||
- name: wait-xdbcollection | ||
image: pwsh-initContainer | ||
command: ["pwsh", "-Command", "do { Start-Sleep -Seconds 3 } until ($(try {(iwr http://xdbcollection/healthz/ready).StatusCode -eq 200} catch { $false }));"] | ||
- name: wait-xdbautomation | ||
image: pwsh-initContainer | ||
command: ["pwsh", "-Command", "do { Start-Sleep -Seconds 3 } until ($(try {(iwr http://xdbautomation/healthz/ready).StatusCode -eq 200} catch { $false }));"] | ||
- name: wait-xdbautomationrpt | ||
image: pwsh-initContainer | ||
command: ["pwsh", "-Command", "do { Start-Sleep -Seconds 3 } until ($(try {(iwr http://xdbautomationrpt/healthz/ready).StatusCode -eq 200} catch { $false }));"] | ||
- name: wait-xdbrefdata | ||
image: pwsh-initContainer | ||
command: ["pwsh", "-Command", "do { Start-Sleep -Seconds 3 } until ($(try {(iwr http://xdbrefdata/healthz/ready).StatusCode -eq 200} catch { $false }));"] | ||
containers: | ||
- name: sitecore-xc1-cd | ||
image: sitecore-xc1-cd | ||
ports: | ||
- containerPort: 80 | ||
env: | ||
- name: Sitecore_InstanceName | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
- name: Database_Server | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-databaseservername.txt | ||
- name: Core_Database_Username | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-core-database-username.txt | ||
- name: Core_Database_Password | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-core-database-password.txt | ||
- name: Web_Database_Username | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-web-database-username.txt | ||
- name: Web_Database_Password | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-web-database-password.txt | ||
- name: Forms_Database_Username | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-forms-database-username.txt | ||
- name: Forms_Database_Password | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-forms-database-password.txt | ||
- name: Exm_Master_Database_Username | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-exm-master-database-username.txt | ||
- name: Exm_Master_Database_Password | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-exm-master-database-password.txt | ||
- name: Messaging_Database_Username | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-messaging-database-username.txt | ||
- name: Messaging_Database_Password | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-messaging-database-password.txt | ||
- name: Sitecore_License | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-license | ||
key: sitecore-license.txt | ||
- name: Sql_Database_Prefix | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-database | ||
key: sitecore-databaseprefix.txt | ||
- name: LOG_LEVEL_VALUE | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-log-level | ||
key: sitecore-log-level-value.txt | ||
- name: Sitecore_xc_Client_Secret_Hash | ||
valueFrom: | ||
secretKeyRef: | ||
name: commerce-connect-client | ||
key: commerce-connect-clientsecret.txt | ||
- name: Sitecore_ConnectionStrings_Security | ||
value: Data Source=$(Database_Server);Initial Catalog=$(Sql_Database_Prefix).Core;User ID=$(Core_Database_Username);Password=$(Core_Database_Password); | ||
- name: Sitecore_ConnectionStrings_Web | ||
value: Data Source=$(Database_Server);Initial Catalog=$(Sql_Database_Prefix).Web;User ID=$(Web_Database_Username);Password=$(Web_Database_Password); | ||
- name: Sitecore_ConnectionStrings_Messaging | ||
value: Data Source=$(Database_Server);Initial Catalog=$(Sql_Database_Prefix).Messaging;User ID=$(Messaging_Database_Username);Password=$(Messaging_Database_Password); | ||
- name: Sitecore_ConnectionStrings_ExperienceForms | ||
value: Data Source=$(Database_Server);Initial Catalog=$(Sql_Database_Prefix).ExperienceForms;User ID=$(Forms_Database_Username);Password=$(Forms_Database_Password); | ||
- name: Sitecore_ConnectionStrings_Exm.Master | ||
value: Data Source=$(Database_Server);Initial Catalog=$(Sql_Database_Prefix).Exm.master;User ID=$(Exm_Master_Database_Username);Password=$(Exm_Master_Database_Password); | ||
- name: Sitecore_ConnectionStrings_Solr.Search | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-solr | ||
key: sitecore-solr-connection-string.txt | ||
- name: Sitecore_ConnectionStrings_XConnect.Collection | ||
value: http://xdbcollection | ||
- name: Sitecore_ConnectionStrings_Xdb.MarketingAutomation.Operations.Client | ||
value: http://xdbautomation | ||
- name: Sitecore_ConnectionStrings_Xdb.MarketingAutomation.Reporting.Client | ||
value: http://xdbautomationrpt | ||
- name: Sitecore_ConnectionStrings_Xdb.ReferenceData.Client | ||
value: http://xdbrefdata | ||
- name: Sitecore_ConnectionStrings_Redis.Sessions | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-redis | ||
key: sitecore-redis-connection-string.txt | ||
- name: Sitecore_Analytics_Forwarded_Request_Http_Header | ||
value: X-Forwarded-For | ||
- name: SOLR_CORE_PREFIX_NAME | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-solr | ||
key: sitecore-solr-core-prefix-name.txt | ||
- name: MEDIA_REQUEST_PROTECTION_SHARED_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: sitecore-protect-media-requests | ||
key: sitecore-media-request-protection-shared-secret.txt | ||
- name: Sitecore_Identity_Server_Authority | ||
value: https://$(id-hostname) | ||
- name: Sitecore_Identity_Server_InternalAuthority | ||
value: http://id | ||
- name: Sitecore_xc_Minions_Url | ||
value: http://engine-minions:5000/commerceops/ | ||
- name: Sitecore_xc_Ops_Url | ||
value: http://engine-authoring:5000/commerceops/ | ||
- name: Sitecore_xc_Shops_Url | ||
value: http://engine-shops:5000/api/ | ||
- name: Sitecore_xc_ConnectionStrings_Redis | ||
valueFrom: | ||
secretKeyRef: | ||
name: commerce-redis | ||
key: commerce-connect-redis-connection-string.txt | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz/live | ||
port: 80 | ||
httpHeaders: | ||
- name: X-Kubernetes-Probe | ||
value: Liveness | ||
timeoutSeconds: 300 | ||
periodSeconds: 30 | ||
failureThreshold: 3 | ||
startupProbe: | ||
httpGet: | ||
path: /healthz/ready | ||
port: 80 | ||
httpHeaders: | ||
- name: X-Kubernetes-Probe | ||
value: Startup | ||
timeoutSeconds: 300 | ||
periodSeconds: 30 | ||
failureThreshold: 10 | ||
volumeMounts: | ||
- mountPath: C:\inetpub\wwwroot\App_Data\Submit Queue | ||
name: submit-queue | ||
- mountPath: C:\inetpub\wwwroot\App_Data\logs | ||
name: logs | ||
subPath: cd | ||
- mountPath: C:\inetpub\wwwroot\App_Data\DeviceDetection | ||
name: device-detection | ||
- mountPath: "/inetpub/wwwroot/App_Config/Security-Shared" | ||
name: config-storage-volume | ||
resources: | ||
requests: | ||
memory: 2Gi | ||
cpu: 2000m | ||
limits: | ||
memory: 4Gi | ||
cpu: 8000m | ||
volumes: | ||
- name: submit-queue | ||
persistentVolumeClaim: | ||
claimName: submit-queue | ||
- name: logs | ||
persistentVolumeClaim: | ||
claimName: logs | ||
- name: device-detection | ||
persistentVolumeClaim: | ||
claimName: device-detection | ||
- name: config-storage-volume | ||
persistentVolumeClaim: | ||
claimName: cd-config-storage | ||
imagePullSecrets: | ||
- name: sitecore-docker-registry |
Oops, something went wrong.