Skip to content

Commit

Permalink
Merge branch 'master' of github.com:elegantthemes/helm-charts
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfade committed Feb 14, 2022
2 parents 4fbfaed + 49d2701 commit 2d7e51b
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/cloud-screenshot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainers:
- email: dustin@elegantthemes.com
name: Elegant Themes
name: cloud-screenshot
version: 0.9.8
version: 0.9.15
22 changes: 20 additions & 2 deletions charts/cloud-screenshot/templates/cloud-screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ metadata:
labels:
app: cloud-screenshot
spec:
replicas: 1
replicas: {{ .Values.REPLICAS }}
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
selector:
matchLabels:
app: cloud-screenshot
Expand All @@ -30,6 +34,20 @@ spec:
app: cloud-screenshot
redis-cluster-client: 'true'
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- cloud-screenshot
topologyKey: kubernetes.io/hostname
hostAliases:
- ip: '127.0.0.1'
hostnames:
- 'cloud-screenshot.dc-screenshot.svc.cluster.local'
initContainers:
- name: init
env:
Expand Down Expand Up @@ -156,7 +174,7 @@ spec:
readOnly: true
subPath: nginx.conf

{{ range $index, $_ := until 10 }}
{{ range $_, $index := untilStep 1 (int .Values.CLOUD_SCREENSHOT_WORKERS) 1 }}
{{ include "screenshot.container.worker" (dict "Values" $.Values "index" $index) }}
{{ end }}

Expand Down
3 changes: 3 additions & 0 deletions charts/cloud-screenshot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ AUTH_SALT:
CLOUD_SCREENSHOT_IMAGE:
CLOUD_SCREENSHOT_REPO_URL:
CLOUD_SCREENSHOT_VERSION:
CLOUD_SCREENSHOT_WORKERS:

DB_HOST_0:
DB_HOST_1:
Expand All @@ -26,6 +27,8 @@ LOGGED_IN_SALT:
NONCE_KEY:
NONCE_SALT:

REPLICAS:

S3_BUCKET_CLOUD_ITEMS:
S3_BUCKET_CLOUD_ITEMS_BACKUP_1:
S3_BUCKET_CLOUD_ITEMS_BACKUP_2:
Expand Down
2 changes: 1 addition & 1 deletion charts/cloud-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainers:
- email: dustin@elegantthemes.com
name: Elegant Themes
name: cloud-server
version: 0.9.1
version: 0.9.2
1 change: 1 addition & 0 deletions charts/cloud-server/templates/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ stringData:
AUTH_SALT='{{ .Values.AUTH_SALT }}'
CLOUD_SERVER_PATH='{{ .Values.INSTALL_PATH }}'
CLOUD_SERVER_REPO_URL='{{ .Values.CLOUD_SERVER_REPO_URL }}'
COOKIE_SALT='{{ .Values.COOKIE_SALT }}'
DB_HOST_0='{{ .Values.DB_HOST_0 }}'
DB_HOST_1='{{ .Values.DB_HOST_1 }}'
DB_HOST_2='{{ .Values.DB_HOST_2 }}'
Expand Down
1 change: 1 addition & 0 deletions charts/cloud-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ AUTH_SALT:
CLOUD_SERVER_IMAGE:
CLOUD_SERVER_REPO_URL:
CLOUD_SERVER_VERSION:
COOKIE_SALT:

DB_HOST_0:
DB_HOST_1:
Expand Down

0 comments on commit 2d7e51b

Please sign in to comment.