-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
268 additions
and
59 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
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
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 |
---|---|---|
@@ -1,18 +1,24 @@ | ||
developer: | ||
urls: | ||
diracx: http://{{ hostname }}:8000 | ||
diracx: http://{{ hostname }}:8000/api | ||
diracx-web: http://{{ hostname }}:8000 | ||
minio: http://{{ hostname }}:32000 | ||
dex: http://{{ hostname }}:32002 | ||
demoDir: {{ demo_dir }} | ||
modulesToInstall: {{ modules_to_mount }} | ||
|
||
diracx: | ||
settings: | ||
DIRACX_SERVICE_AUTH_ALLOWED_REDIRECTS: '["http://{{ hostname }}:8000/docs/oauth2-redirect"]' | ||
DIRACX_SERVICE_AUTH_ALLOWED_REDIRECTS: '["http://localhost:8000/api/docs/oauth2-redirect", "http://localhost:8000/dashboard/#authentication-callback"]' | ||
DIRACX_SANDBOX_STORE_BUCKET_NAME: demo-sandboxes | ||
DIRACX_SANDBOX_STORE_S3_CLIENT_KWARGS: '{"endpoint_url": "http://{{ hostname }}:32000", "aws_access_key_id": "console", "aws_secret_access_key": "console123"}' | ||
DIRACX_SANDBOX_STORE_AUTO_CREATE_BUCKET: "true" | ||
|
||
diracxWeb: | ||
settings: | ||
REDIRECT_URI: http://localhost:8000/dashboard/#authentication-callback | ||
NEXT_PUBLIC_DIRACX_URL: http://{{ hostname }}:8000/api | ||
|
||
minio: | ||
environment: | ||
MINIO_BROWSER_REDIRECT_URL: http://{{ hostname }}:32001/ | ||
|
@@ -26,8 +32,8 @@ dex: | |
public: true | ||
name: 'CLI app' | ||
redirectURIs: | ||
- 'http://{{ hostname }}:8000/auth/device/complete' | ||
- http://{{ hostname }}:8000/auth/authorize/complete | ||
- 'http://{{ hostname }}:8000/api/auth/device/complete' | ||
- http://{{ hostname }}:8000/api/auth/authorize/complete | ||
|
||
staticPasswords: | ||
- email: "[email protected]" | ||
|
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
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
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
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
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
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,80 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "diracx.fullname" . }}-web | ||
labels: | ||
{{- include "diracx.labels" . | nindent 4 }} | ||
spec: | ||
{{- if not .Values.autoscaling.enabled }} | ||
replicas: {{ .Values.replicaCount }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
{{- include "diracxWeb.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
annotations: | ||
{{- with .Values.podAnnotations }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
labels: | ||
{{- include "diracxWeb.selectorLabels" . | nindent 8 }} | ||
spec: | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
serviceAccountName: {{ include "diracx.serviceAccountName" . }} | ||
securityContext: | ||
{{- toYaml .Values.podSecurityContext | nindent 8 }} | ||
volumes: | ||
{{- if and .Values.developer.enabled }} | ||
- name: diracx-web-code-mount | ||
persistentVolumeClaim: | ||
claimName: pvc-diracx-code | ||
{{- end }} | ||
|
||
containers: | ||
- name: {{ .Chart.Name }}-web | ||
securityContext: | ||
{{- toYaml .Values.securityContext | nindent 12 }} | ||
image: "{{ .Values.diracxWeb.image.repository }}:{{ .Values.diracxWeb.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.diracxWeb.image.pullPolicy }} | ||
ports: | ||
- name: http | ||
containerPort: {{ .Values.diracxWeb.service.port }} | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
{{- if .Values.developer.enabled }} | ||
command: ["npm", "run", "dev"] | ||
volumeMounts: | ||
- mountPath: /diracxweb_source | ||
name: diracx-web-code-mount | ||
readOnly: true | ||
{{- else }} | ||
command: ["npm", "start"] | ||
{{- end }} | ||
envFrom: | ||
- secretRef: | ||
name: diracx-web-secrets | ||
resources: | ||
{{- toYaml .Values.resources | nindent 12 }} | ||
{{- with .Values.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} |
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,15 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "diracx.fullname" . }}-web | ||
labels: | ||
{{- include "diracx.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.diracxWeb.service.type }} | ||
ports: | ||
- port: {{ .Values.diracxWeb.service.port }} | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
{{- include "diracxWeb.selectorLabels" . | nindent 4 }} |
Oops, something went wrong.