-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Run dashboard in a dedicated deployment with helm chart #18093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9817965
dd7bc79
f7ceca9
8d49e54
74b0ae3
837a91e
2fa1570
0c18486
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # | ||
| # Copyright (c) 2012-2018 Red Hat, Inc. | ||
| # This program and the accompanying materials are made | ||
| # available under the terms of the Eclipse Public License 2.0 | ||
| # which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
| # | ||
| # SPDX-License-Identifier: EPL-2.0 | ||
| # | ||
|
|
||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| labels: | ||
| app: che | ||
| component: che-dashboard | ||
| name: che-dashboard | ||
| spec: | ||
| replicas: 1 | ||
| revisionHistoryLimit: 2 | ||
| selector: | ||
| matchLabels: | ||
| app: che | ||
| component: che-dashboard | ||
| strategy: | ||
| type: RollingUpdate | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: che | ||
| component: che-dashboard | ||
| spec: | ||
| containers: | ||
| - name: che-dashboard | ||
| image: {{ .Values.dashboard.image }} | ||
| imagePullPolicy: {{ .Values.dashboard.imagePullPolicy }} | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: http | ||
| resources: | ||
| limits: | ||
| memory: {{ .Values.dashboard.memoryLimit }} | ||
| cpu: {{ .Values.dashboard.cpuLimit }} | ||
| requests: | ||
sleshchenko marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| memory: {{ .Values.dashboard.memoryRequest }} | ||
| cpu: {{ .Values.dashboard.cpuRequest }} | ||
| livenessProbe: | ||
| httpGet: | ||
| path: /dashboard/ | ||
| port: 8080 | ||
| scheme: HTTP | ||
| initialDelaySeconds: 30 | ||
| periodSeconds: 10 | ||
| timeoutSeconds: 3 | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /dashboard/ | ||
| port: 8080 | ||
| scheme: HTTP | ||
| initialDelaySeconds: 3 | ||
| periodSeconds: 10 | ||
| timeoutSeconds: 3 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # | ||
| # Copyright (c) 2012-2019 Red Hat, Inc. | ||
| # This program and the accompanying materials are made | ||
| # available under the terms of the Eclipse Public License 2.0 | ||
| # which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
| # | ||
| # SPDX-License-Identifier: EPL-2.0 | ||
| # | ||
|
|
||
| # If single-host powered by gateway is configured - the corresponding gateway configmap is expexted to be created | ||
| # but not this ingress | ||
| {{- if not (and (eq .Values.global.serverStrategy "single-host") (eq .Values.global.singleHostExposure "gateway")) }} | ||
|
|
||
| apiVersion: extensions/v1beta1 | ||
| kind: Ingress | ||
| metadata: | ||
| name: che-dashboard-ingress | ||
| annotations: | ||
| kubernetes.io/ingress.class: "nginx" | ||
| {{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-read-timeout: "3600" | ||
| {{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-connect-timeout: "3600" | ||
| {{- if and .Values.global.tls .Values.global.tls.enabled }} | ||
| {{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/ssl-redirect: "true" | ||
| {{- else }} | ||
| {{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/ssl-redirect: "false" | ||
| {{- end }} | ||
| spec: | ||
| {{- if .Values.global.tls.enabled }} | ||
| tls: | ||
| - hosts: | ||
| - {{ template "cheHost" . }} | ||
| secretName: {{ .Values.global.tls.secretName }} | ||
| {{- end }} | ||
| rules: | ||
| {{- if ne .Values.global.serverStrategy "default-host" }} | ||
| - host: {{ template "cheHost" . }} | ||
| http: | ||
| {{- else }} | ||
| - http: | ||
| {{- end }} | ||
| paths: | ||
| # The path rule for Che Dashboard | ||
| - path: /dashboard/ | ||
| backend: | ||
| serviceName: che-dashboard | ||
| servicePort: 8080 | ||
| {{- end }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # | ||
| # Copyright (c) 2012-2019 Red Hat, Inc. | ||
| # This program and the accompanying materials are made | ||
| # available under the terms of the Eclipse Public License 2.0 | ||
| # which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
| # | ||
| # SPDX-License-Identifier: EPL-2.0 | ||
| # | ||
|
|
||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| labels: | ||
| app: che | ||
| component: che-dashboard | ||
| name: che-dashboard | ||
| spec: | ||
| ports: | ||
| - name: http | ||
| port: 8080 | ||
| protocol: TCP | ||
| targetPort: 8080 | ||
| selector: | ||
| app: che | ||
| component: che-dashboard |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # | ||
| # Copyright (c) 2012-2018 Red Hat, Inc. | ||
| # This program and the accompanying materials are made | ||
| # available under the terms of the Eclipse Public License 2.0 | ||
| # which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
| # | ||
| # SPDX-License-Identifier: EPL-2.0 | ||
| # | ||
|
|
||
| {{- if and (eq .Values.global.serverStrategy "single-host") (eq .Values.global.singleHostExposure "gateway") }} | ||
|
|
||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| labels: | ||
| app: che | ||
| component: che-gateway-config | ||
| name: che-gateway-route-dashboard | ||
| data: | ||
| dashboard.yml: | | ||
| http: | ||
| routers: | ||
| che-dashboard: | ||
| rule: "PathPrefix(`/dashboard/`)" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does it work without end slash?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Checking, I assume that if we miss end slash, then we'll get broken redirects, like /dashboardanythings -> /dashboard since it's currently done by Che Server.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added end slash to ingress http path as well. |
||
| service: che-dashboard | ||
| priority: 10 | ||
| services: | ||
| che-dashboard: | ||
| loadBalancer: | ||
| servers: | ||
| - url: 'http://che-dashboard:8080' | ||
| {{- end }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,4 +9,3 @@ | |
|
|
||
| global: | ||
| multiuser: true | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.