-
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 #8 from Sitecore/feature/sxc-10228
Add SXC Sitecore Commerce Container SDK 10.0.0.60239.10228
- Loading branch information
Showing
221 changed files
with
8,800 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,78 @@ | ||
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: {registry}/{sxc-project}/sitecore-xc-bizfx:{commerce-version} | ||
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.globalhost | ||
- name: sitecore_xc_bizfx_authoring_url | ||
value: https://authoring.globalhost | ||
- name: sitecore_xc_bizfx_identity_server_url | ||
value: https://id.globalhost | ||
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 | ||
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,201 @@ | ||
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: mcr.microsoft.com/powershell:lts-nanoserver-1809 | ||
command: ["pwsh", "-Command", "do { Start-Sleep -Seconds 3 } until ($(try {(iwr http://xdbcollection/healthz/ready).StatusCode -eq 200} catch { $false }));"] | ||
- name: wait-xdbautomation | ||
image: mcr.microsoft.com/powershell:lts-nanoserver-1809 | ||
command: ["pwsh", "-Command", "do { Start-Sleep -Seconds 3 } until ($(try {(iwr http://xdbautomation/healthz/ready).StatusCode -eq 200} catch { $false }));"] | ||
- name: wait-xdbautomationrpt | ||
image: mcr.microsoft.com/powershell:lts-nanoserver-1809 | ||
command: ["pwsh", "-Command", "do { Start-Sleep -Seconds 3 } until ($(try {(iwr http://xdbautomationrpt/healthz/ready).StatusCode -eq 200} catch { $false }));"] | ||
- name: wait-xdbrefdata | ||
image: mcr.microsoft.com/powershell:lts-nanoserver-1809 | ||
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: {registry}/{sxc-project}/sitecore-xc1-cd:{commerce-version} | ||
ports: | ||
- containerPort: 80 | ||
volumeMounts: | ||
- name: config-storage-volume | ||
mountPath: "/inetpub/wwwroot/App_Config/Security-Shared" | ||
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: 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=Sitecore.Core;User ID=$(Core_Database_Username);Password=$(Core_Database_Password); | ||
- name: Sitecore_ConnectionStrings_Web | ||
value: Data Source=$(Database_Server);Initial Catalog=Sitecore.Web;User ID=$(Web_Database_Username);Password=$(Web_Database_Password); | ||
- name: Sitecore_ConnectionStrings_Messaging | ||
value: Data Source=$(Database_Server);Initial Catalog=Sitecore.Messaging;User ID=$(Messaging_Database_Username);Password=$(Messaging_Database_Password); | ||
- name: Sitecore_ConnectionStrings_ExperienceForms | ||
value: Data Source=$(Database_Server);Initial Catalog=Sitecore.ExperienceForms;User ID=$(Forms_Database_Username);Password=$(Forms_Database_Password); | ||
- name: Sitecore_ConnectionStrings_Exm.Master | ||
value: Data Source=$(Database_Server);Initial Catalog=Sitecore.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_Identity_Server_Authority | ||
value: https://id.globalhost | ||
- 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-ops: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 | ||
volumes: | ||
- name: config-storage-volume | ||
persistentVolumeClaim: | ||
claimName: cd-config-storage | ||
imagePullSecrets: | ||
- name: sitecore-docker-registry |
Oops, something went wrong.