Skip to content

Commit

Permalink
Merge branch 'helm-1.19-compatibility'
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed May 27, 2021
2 parents 16aaf9d + b83d259 commit 3f0e9ba
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 110 deletions.
5 changes: 5 additions & 0 deletions helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ Other values which can be overridden are found in the chart version of [values.y

Installing a chart deploys it to a cluster. This creates an initial release by generating the configuration templates and applying them to the cluster.

```bash
# Add an ssh key for GitHub remotes
kubectl create secret generic openneuro-my-dev-ssh-key --from-file=datalad-key=datalad-key
```

```bash
# Make sure you're in the helm directory and run
helm install -f values.yaml -f secrets.yaml openneuro-my-dev openneuro/
Expand Down
36 changes: 36 additions & 0 deletions helm/manual-old-indexer
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: batch/v1
kind: Job
metadata:
annotations:
cronjob.kubernetes.io/instantiate: manual
name: openneuro-prod-indexer-manual-1
namespace: default
spec:
backoffLimit: 6
completions: 1
parallelism: 1
template:
spec:
containers:
- envFrom:
- configMapRef:
name: openneuro-prod-configmap
- secretRef:
name: openneuro-prod-secret
image: openneuro/indexer:v3.31.1
imagePullPolicy: IfNotPresent
name: openneuro-indexer
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: OnFailure
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
2 changes: 1 addition & 1 deletion helm/openneuro/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: OpenNeuro production deployment chart
home: https://openneuro.org
sources:
- https://github.com/openNeuroOrg/openneuro
appVersion: 3.33.2
appVersion: 3.33.5
dependencies:
- name: redis
version: 10.6.17
Expand Down
2 changes: 1 addition & 1 deletion helm/openneuro/templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
cpu: "1.2"
memory: "2Gi"
requests:
cpu: ".5"
cpu: ".3"
memory: "768Mi"
ports:
- containerPort: 8111
Expand Down
10 changes: 6 additions & 4 deletions helm/openneuro/templates/dataset-worker-stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ spec:
- key: "storage"
operator: "Exists"
effect: "NoSchedule"
nodeSelector:
role: storage
volumes:
- name: ssh-key
secret:
Expand All @@ -41,13 +43,13 @@ spec:
containers:
- name: {{ .Release.Name }}-dataset-worker
image: 'openneuro/datalad-service:v{{ .Chart.AppVersion }}'
command: ["gunicorn", "--bind", "0.0.0.0:80", "--reload", "datalad_service.app:create_app('/datasets')", "--workers", "8", "--worker-class", "gevent", "--timeout", "60", "--keep-alive", "30"]
command: ["gunicorn", "--bind", "0.0.0.0:80", "--reload", "datalad_service.app:create_app('/datasets')", "--workers", "4", "--worker-class", "gevent", "--timeout", "60", "--keep-alive", "30"]
resources:
limits:
cpu: "2"
memory: "8Gi"
cpu: "1.6"
memory: "10Gi"
requests:
cpu: "0.5"
cpu: "0.3"
memory: "1Gi"
ports:
- containerPort: 80
Expand Down
65 changes: 46 additions & 19 deletions helm/openneuro/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}
Expand All @@ -18,47 +18,74 @@ spec:
http:
paths:
- path: /*
pathType: ImplementationSpecific
backend:
serviceName: www-redirect
servicePort: use-annotation
service:
name: www-redirect
port:
name: use-annotation
- host: {{ .Values.hostname }}
http:
paths:
- path: /*
pathType: ImplementationSpecific
backend:
serviceName: ssl-redirect
servicePort: use-annotation
service:
name: ssl-redirect
port:
name: use-annotation
- path: /graphql-subscriptions
pathType: ImplementationSpecific
backend:
serviceName: {{ .Release.Name }}-api
servicePort: 8111
service:
name: {{ .Release.Name }}-api
port:
number: 8111
- path: /crn/*
pathType: ImplementationSpecific
backend:
serviceName: {{ .Release.Name }}-api
servicePort: 8111
service:
name: {{ .Release.Name }}-api
port:
number: 8111
- path: /sitemap.xml
pathType: ImplementationSpecific
backend:
serviceName: {{ .Release.Name }}-api
servicePort: 8111
service:
name: {{ .Release.Name }}-api
port:
number: 8111
{{- $relname := .Release.Name -}}
{{- range until ( .Values.dataladWorkers | int ) }}
- path: /uploads/{{ . }}/*
pathType: ImplementationSpecific
backend:
serviceName: {{ $relname }}-dataset-worker-{{ . }}
servicePort: 80
service:
name: {{ $relname }}-dataset-worker-{{ . }}
port:
number: 80
{{- end }}
{{- $relname := .Release.Name -}}
{{- range until ( .Values.dataladWorkers | int ) }}
- path: /git/{{ . }}/*
pathType: ImplementationSpecific
backend:
serviceName: {{ $relname }}-dataset-worker-{{ . }}
servicePort: 80
service:
name: {{ $relname }}-dataset-worker-{{ . }}
port:
number: 80
{{- end }}
- path: /intake/*
pathType: ImplementationSpecific
backend:
serviceName: {{ .Release.Name }}-apm-server
servicePort: 8200
service:
name: {{ .Release.Name }}-apm-server
port:
number: 8200
- path: /*
pathType: ImplementationSpecific
backend:
serviceName: {{ .Release.Name }}-web
servicePort: 80
service:
name: {{ .Release.Name }}-web
port:
number: 80
68 changes: 0 additions & 68 deletions helm/openneuro/templates/openebs-pool-statefulset.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions helm/openneuro/templates/openebs-pool-storageclass.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion helm/openneuro/templates/openebs-volume-storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ kind: StorageClass
metadata:
name: {{ .Release.Name }}-datasets
parameters:
scheduler: "VolumeWeighted"
fstype: 'zfs'
poolname: 'zfspv-pool'
compression: 'lz4'
recordsize: '16k'
reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
provisioner: zfs.csi.openebs.io
allowedTopologies:
- matchLabelExpressions:
- key: alpha.eksctl.io/nodegroup-name
- key: role
values:
- storage
2 changes: 1 addition & 1 deletion helm/openneuro/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ efs-provisioner:
aws-alb-ingress-controller:
awsRegion: us-west-2
autoDiscoverAwsVpcID: true
clusterName: openneuro-prod
clusterName: openneuro-prod-2021

# Disable Redis password for testing
redis:
Expand Down

0 comments on commit 3f0e9ba

Please sign in to comment.