Add Volume
This commit is contained in:
18
cmd/opencloud-chart/templates/oc-front/config.yaml
Normal file
18
cmd/opencloud-chart/templates/oc-front/config.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- if index .Values.ocFront.enabled }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: front-config
|
||||
data:
|
||||
config.json: |
|
||||
{
|
||||
"WORKSPACE_HOST": "workspace",
|
||||
"WORKFLOW_HOST": "workflow",
|
||||
"CATALOG_HOST": "catalog",
|
||||
"SCHEDULER_HOST": "scheduler",
|
||||
"PEER_HOST": "peers",
|
||||
"DATACENTER_HOST": "datacenter",
|
||||
"COLLABORATIVE_AREA_HOST": "shared",
|
||||
"HOST": "{{ .Values.scheme }}://{{ .Values.host }}",
|
||||
}
|
||||
{{- end }}
|
||||
@@ -1,4 +1,4 @@
|
||||
{{- if .Values.ocFront.enabled }}
|
||||
{{- if index .Values.ocFront.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@@ -6,7 +6,7 @@ metadata:
|
||||
app: oc-front
|
||||
name: {{ .Release.Name }}-oc-front
|
||||
spec:
|
||||
replicas: {{ .Values.ocFront.replicas }}
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: oc-front
|
||||
@@ -30,12 +30,6 @@ spec:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
resources:
|
||||
limits:
|
||||
cpu: "{{ .Values.ocFront.resources.limits.cpu }}"
|
||||
|
||||
Reference in New Issue
Block a user