Skip to content

Commit

Permalink
chore: clean up and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
georgechang committed Jul 19, 2021
1 parent 6a4266c commit 8370ffe
Show file tree
Hide file tree
Showing 17 changed files with 60 additions and 175 deletions.
Empty file removed Dockerfile
Empty file.
8 changes: 0 additions & 8 deletions aks/azurefile-retained.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions aks/nginx-internal-ingress-controller.sh

This file was deleted.

34 changes: 0 additions & 34 deletions azure/sql.bicep

This file was deleted.

59 changes: 0 additions & 59 deletions azure/sql.json

This file was deleted.

2 changes: 1 addition & 1 deletion mssql/mssql-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- name: ACCEPT_EULA
value: "Y"
- name: SA_PASSWORD
value: "pass@word1"
value: "password"
ports:
- name: mssql
containerPort: 1433
Expand Down
2 changes: 1 addition & 1 deletion sitecore/cortexproc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: cortexproc
image: scr.sitecore.com/sxp/sitecore-xp0-cortexprocessingworker:10.0.0-ltsc2019
image: scr.sitecore.com/sxp/sitecore-xp0-cortexprocessingworker:10.1-ltsc2019
envFrom:
- configMapRef:
name: sitecore-configmap
Expand Down
4 changes: 2 additions & 2 deletions sitecore/identity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: identity
image: scr.sitecore.com/sxp/sitecore-id:10.0.0-ltsc2019
image: scr.sitecore.com/sxp/sitecore-id:10.1-ltsc2019
ports:
- name: web
containerPort: 80
Expand All @@ -28,7 +28,7 @@ spec:
resources:
limits:
memory: 8Gi
cpu: 1
cpu: 1000m
nodeSelector:
kubernetes.io/os: windows
---
Expand Down
4 changes: 2 additions & 2 deletions sitecore/sitecore-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
spec:
containers:
- name: sitecore-cd
image: scr.sitecore.com/sxp/sitecore-xp1-cd:10.0.0-ltsc2019
image: scr.sitecore.com/sxp/sitecore-xp1-cd:10.1-ltsc2019
ports:
- name: web
containerPort: 80
Expand All @@ -29,7 +29,7 @@ spec:
resources:
limits:
memory: 4Gi
cpu: 1
cpu: 1000m
nodeSelector:
kubernetes.io/os: windows
---
Expand Down
13 changes: 2 additions & 11 deletions sitecore/sitecore-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
spec:
containers:
- name: sitecore-cm
image: scr.sitecore.com/sxp/sitecore-xp0-cm:10.0.0-ltsc2019
image: scr.sitecore.com/sxp/sitecore-xp0-cm:10.1-ltsc2019
ports:
- name: web
containerPort: 80
Expand All @@ -29,27 +29,18 @@ spec:
resources:
limits:
memory: 4Gi
cpu: 1
cpu: 1000m
nodeSelector:
kubernetes.io/os: windows
---
apiVersion: v1
kind: Service
metadata:
name: sitecore-cm-service
<<<<<<< HEAD:sitecore/sitecore-cm.yaml
namespace: sitecore
=======
>>>>>>> 3f53c9c (Updates):sitecore/sitecore-cm-deployment.yaml
labels:
app: sitecore
role: cm
spec:
<<<<<<< HEAD:sitecore/sitecore-cm.yaml
type: ClusterIP
clusterIP: None
=======
>>>>>>> 3f53c9c (Updates):sitecore/sitecore-cm-deployment.yaml
ports:
- port: 80
selector:
Expand Down
18 changes: 9 additions & 9 deletions sitecore/sitecore-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ metadata:
name: sitecore-configmap
data:
Sitecore_AppSettings_instanceNameMode__define: default
Sitecore_ConnectionStrings_Core: Data Source=mssql-service;Initial Catalog=Sitecore.Core;User ID=sa;Password=pass@word1
Sitecore_ConnectionStrings_Security: Data Source=mssql-service;Initial Catalog=Sitecore.Core;User ID=sa;Password=pass@word1
Sitecore_ConnectionStrings_Master: Data Source=mssql-service;Initial Catalog=Sitecore.Master;User ID=sa;Password=pass@word1
Sitecore_ConnectionStrings_Web: Data Source=mssql-service;Initial Catalog=Sitecore.Web;User ID=sa;Password=pass@word1
Sitecore_ConnectionStrings_Core: Data Source=mssql-service;Initial Catalog=Sitecore.Core;User ID=sa;Password=password
Sitecore_ConnectionStrings_Security: Data Source=mssql-service;Initial Catalog=Sitecore.Core;User ID=sa;Password=password
Sitecore_ConnectionStrings_Master: Data Source=mssql-service;Initial Catalog=Sitecore.Master;User ID=sa;Password=password
Sitecore_ConnectionStrings_Web: Data Source=mssql-service;Initial Catalog=Sitecore.Web;User ID=sa;Password=password
Sitecore_ConnectionStrings_Reporting.ApiKey: vqr4pnanyuuz8q85rbzvxih9yd3bytew
Sitecore_ConnectionStrings_Messaging: Data Source=mssql-service;Initial Catalog=Sitecore.Messaging;User ID=sa;Password=pass@word1
Sitecore_ConnectionStrings_Xdb.Referencedata: Data Source=mssql-service;Initial Catalog=Sitecore.Referencedata;User ID=sa;Password=pass@word1
Sitecore_ConnectionStrings_ExperienceForms: Data Source=mssql-service;Initial Catalog=Sitecore.ExperienceForms;User ID=sa;Password=pass@word1
Sitecore_ConnectionStrings_Exm.Master: Data Source=mssql-service;Initial Catalog=Sitecore.Exm.master;User ID=sa;Password=pass@word1
Sitecore_ConnectionStrings_Reporting: Data Source=mssql-service;Initial Catalog=Sitecore.Reporting;User ID=sa;Password=pass@word1
Sitecore_ConnectionStrings_Messaging: Data Source=mssql-service;Initial Catalog=Sitecore.Messaging;User ID=sa;Password=password
Sitecore_ConnectionStrings_Xdb.Referencedata: Data Source=mssql-service;Initial Catalog=Sitecore.Referencedata;User ID=sa;Password=password
Sitecore_ConnectionStrings_ExperienceForms: Data Source=mssql-service;Initial Catalog=Sitecore.ExperienceForms;User ID=sa;Password=password
Sitecore_ConnectionStrings_Exm.Master: Data Source=mssql-service;Initial Catalog=Sitecore.Exm.master;User ID=sa;Password=password
Sitecore_ConnectionStrings_Reporting: Data Source=mssql-service;Initial Catalog=Sitecore.Reporting;User ID=sa;Password=password
Sitecore_ConnectionStrings_Sitecore.Reporting.Client: http://cortexreporting
Sitecore_ConnectionStrings_Solr.Search: http://solr-service:8983/solr
Sitecore_ConnectionStrings_XConnect.Collection: http://xdbcollection
Expand Down
2 changes: 1 addition & 1 deletion sitecore/xconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: xconnect
image: scr.sitecore.com/sxp/sitecore-xp0-xconnect:10.0.0-ltsc2019
image: scr.sitecore.com/sxp/sitecore-xp0-xconnect:10.1-ltsc2019
envFrom:
- configMapRef:
name: sitecore-configmap
Expand Down
2 changes: 1 addition & 1 deletion sitecore/xdbautomation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: xdbautomation
image: scr.sitecore.com/sxp/sitecore-xp0-xdbautomationworker:10.0.0-ltsc2019
image: scr.sitecore.com/sxp/sitecore-xp0-xdbautomationworker:10.1-ltsc2019
envFrom:
- configMapRef:
name: sitecore-configmap
Expand Down
2 changes: 1 addition & 1 deletion sitecore/xdbsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: xdbsearch
image: scr.sitecore.com/sxp/sitecore-xp0-xdbsearchworker:10.0.0-ltsc2019
image: scr.sitecore.com/sxp/sitecore-xp0-xdbsearchworker:10.1-ltsc2019
envFrom:
- configMapRef:
name: sitecore-configmap
Expand Down
35 changes: 26 additions & 9 deletions solr/solr-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
app: solr
spec:
replicas: 1
replicas: 3 # set this to the number of Solr pod instances you want
selector:
matchLabels:
app: solr
Expand All @@ -21,21 +21,35 @@ spec:
fsGroup: 1001
nodeSelector:
kubernetes.io/os: linux
agentpool: solr
affinity:
# this causes K8s to only schedule only one Solr pod per node
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app"
operator: In
values:
- solr
topologyKey: "kubernetes.io/hostname"
containers:
- name: solr
image: solr:8.5.2
image: solr:8.4
env:
# ZK_HOST lists all of the hostnames for all of the Zookeeper instances - this should correspond to however many ZK instances you have running.
- name: ZK_HOST
value: zookeeper-statefulset-0.zookeeper-service:2181 #,zookeeper-statefulset-1.zookeeper-service:2181,zookeeper-statefulset-2.zookeeper-service:2181
value: zookeeper-statefulset-0.zookeeper-service:2181,zookeeper-statefulset-1.zookeeper-service:2181,zookeeper-statefulset-2.zookeeper-service:2181, etc
- name: SOLR_JAVA_MEM
value: "-Xms4g -Xmx4g"
value: "-Xms4g -Xmx4g" # set the JVM memory usage and limit
ports:
- name: solr
containerPort: 8983
volumeMounts:
- name: solr-pvc
mountPath: /var/solr
livenessProbe:
# runs a built-in script to check for Solr readiness/liveness
exec:
command:
- /bin/bash
Expand All @@ -44,6 +58,7 @@ spec:
initialDelaySeconds: 20
timeoutSeconds: 5
readinessProbe:
# runs a built-in script to check for Solr readiness/liveness
exec:
command:
- /bin/bash
Expand All @@ -52,17 +67,19 @@ spec:
initialDelaySeconds: 20
timeoutSeconds: 5
initContainers:
# runs a built-script to wait until all Zookeeper instances are up and running
- name: solr-zk-waiter
image: solr:8.5.2
image: solr:8.4
command:
- /bin/bash
- "-c"
- "/opt/docker-solr/scripts/wait-for-zookeeper.sh"
env:
- name: ZK_HOST
value: zookeeper-statefulset-0.zookeeper-service:2181 #,zookeeper-statefulset-1.zookeeper-service:2181,zookeeper-statefulset-2.zookeeper-service:2181
value: zookeeper-statefulset-0.zookeeper-service:2181,zookeeper-statefulset-1.zookeeper-service:2181,zookeeper-statefulset-2.zookeeper-service:2181
# runs a built-in script to initialize Solr instance if necessary
- name: solr-init
image: solr:8.5.2
image: solr:8.4
command:
- /bin/bash
- "-c"
Expand All @@ -76,7 +93,7 @@ spec:
spec:
accessModes:
- ReadWriteOnce
storageClassName: managed-premium-retained
storageClassName: managed-premium
resources:
requests:
storage: 100Mi
storage: 1Gi
3 changes: 0 additions & 3 deletions zookeeper/zookeeper-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ metadata:
namespace: solr
labels:
app: zookeeper
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
type: LoadBalancer
ports:
- port: 2888
name: server
Expand Down
Loading

0 comments on commit 8370ffe

Please sign in to comment.