File tree 4 files changed +23
-5
lines changed
4 files changed +23
-5
lines changed Original file line number Diff line number Diff line change
1
+ {{- if .Values.deployment.authServer.enable }}
1
2
apiVersion : v1
2
3
kind : Service
3
4
metadata :
12
13
targetPort : 8080
13
14
selector :
14
15
move2kube.konveyor.io/service : " {{ .Release.Name }}-auth-server"
16
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.deployment.database.enable }}
1
2
apiVersion : v1
2
3
kind : Service
3
4
metadata :
10
11
targetPort : 5432
11
12
selector :
12
13
move2kube.konveyor.io/service : " {{ .Release.Name }}-database"
14
+ {{- end }}
Original file line number Diff line number Diff line change @@ -21,31 +21,45 @@ spec:
21
21
image : quay.io/konveyor/busybox
22
22
command : ["/bin/sh", "-c"]
23
23
args :
24
- - chown -R 12345 :root /move2kube-api/data && chmod -R 770 /move2kube-api/data
24
+ - ' chown -R "$(id -u)" :root /move2kube-api/data && chmod -R 770 /move2kube-api/data'
25
25
volumeMounts :
26
26
- name : common-volume
27
27
mountPath : /move2kube-api/data
28
28
subPath : move2kube-api/data
29
29
containers :
30
- - image : " quay.io/konveyor/move2kube-ui:{{ .Values.deployment.api.imageTag | default .Chart.AppVersion }}"
30
+ - name : move2kubeapi
31
+ image : " quay.io/konveyor/move2kube-ui:{{ .Values.deployment.api.imageTag | default .Chart.AppVersion }}"
31
32
command :
32
33
- move2kube-api
33
34
args :
34
- - --config=config.yaml
35
+ - ' --log-level=trace'
36
+ - ' --static-files-dir=build'
37
+ {{- if .Values.secret.api.enable }}
38
+ - ' --config=config.yaml'
39
+ {{- end }}
40
+ - ' --host=$(MY_POD).$(MY_SERVICE)'
35
41
imagePullPolicy : Always
36
- name : move2kubeapi
37
42
ports :
38
43
- containerPort : 8080
39
44
protocol : TCP
45
+ env :
46
+ - name : MY_POD
47
+ valueFrom :
48
+ fieldRef :
49
+ fieldPath : metadata.name
50
+ - name : MY_SERVICE
51
+ value : " {{ .Release.Name }}-move2kubeapiheadless"
40
52
{{- if .Values.deployment.api.privilegedPods }}
41
53
securityContext :
42
54
privileged : true
43
55
{{- end }}
44
56
volumeMounts :
57
+ {{- if .Values.secret.api.enable }}
45
58
- name : api-config
46
59
mountPath : /move2kube-api/config.yaml
47
60
subPath : config.yaml
48
61
readOnly : true
62
+ {{- end }}
49
63
- name : common-volume
50
64
mountPath : /move2kube-api/data
51
65
subPath : move2kube-api/data
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ ingress:
20
20
enable : true
21
21
preferRoute : false # if true we will use an Openshift Route instead of an K8s Ingress
22
22
host : mydomain.com
23
- tlsSecretName : myTLSSecret # not necessary when using Openshift Route
23
+ tlsSecretName : " " # not necessary when using Openshift Route
24
24
persistentVolumeClaim :
25
25
enable : false # set this to true to get persistent storage
26
26
createNew : true
You can’t perform that action at this time.
0 commit comments