che-server/deploy/kubernetes/helm/che/templates/dashboard-deployment.yaml

67 lines
1.7 KiB
YAML

#
# 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:
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
env:
- name: CHE_HOST
value: {{ template "cheHost" . }}
- name: CHE_URL
value: {{ template "cheHost" . }}