File tree 4 files changed +53
-0
lines changed
install/charts/dir/apiserver
4 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 32
32
{{- toYaml .Values.podSecurityContext | nindent 8 }}
33
33
containers :
34
34
- name : {{ .Chart.Name }}
35
+ env :
36
+ - name : DIRECTORY_LOGGER_LOG_LEVEL
37
+ value : {{ .Values.log_level }}
35
38
securityContext :
36
39
{{- toYaml .Values.securityContext | nindent 12 }}
37
40
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
@@ -71,10 +74,24 @@ spec:
71
74
- name : config-volume
72
75
mountPath : /etc/agntcy/dir/server.config.yml
73
76
subPath : server.config.yml
77
+ {{- if .Values.privKey }}
78
+ - name : secret-volume
79
+ mountPath : {{ .Values.config.routing.key_path }}
80
+ subPath : node.privkey
81
+ readOnly : true
82
+ {{- end }}
74
83
volumes :
75
84
- name : config-volume
76
85
configMap :
77
86
name : {{ include "chart.fullname" . }}
87
+ {{- if .Values.privKey }}
88
+ - name : secret-volume
89
+ secret :
90
+ secretName : {{ include "chart.fullname" . }}
91
+ items :
92
+ - key : node.privkey
93
+ path : node.privkey
94
+ {{- end }}
78
95
{{- with .Values.nodeSelector }}
79
96
nodeSelector :
80
97
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change
1
+ # Copyright AGNTCY Contributors (https://github.com/agntcy)
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ {{- if .Values.config.routing.listen_address }}
5
+ apiVersion : v1
6
+ kind : Service
7
+ metadata :
8
+ name : {{ include "chart.fullname" . }}-routing
9
+ labels :
10
+ {{- include "chart.labels" . | nindent 4 }}
11
+ spec :
12
+ type : {{ .Values.service.type }}
13
+ ports :
14
+ - port : {{ (split "/" .Values.config.routing.listen_address)._4 }}
15
+ targetPort : routing
16
+ protocol : TCP
17
+ name : routing
18
+ selector :
19
+ {{- include "chart.selectorLabels" . | nindent 4 }}
20
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ # Copyright AGNTCY Contributors (https://github.com/agntcy)
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ {{- if .Values.privKey -}}
5
+ ---
6
+ apiVersion : v1
7
+ kind : Secret
8
+ metadata :
9
+ name : {{ include "chart.fullname" . }}
10
+ labels :
11
+ {{- include "chart.labels" . | nindent 4 }}
12
+ data :
13
+ node.privkey : {{ .Values.privKey | b64enc }}
14
+ {{- end }}
Original file line number Diff line number Diff line change 8
8
nameOverride : " "
9
9
fullnameOverride : " "
10
10
11
+ log_level : INFO
12
+
11
13
image :
12
14
repository : ghcr.io/agntcy/dir-apiserver
13
15
tag : latest
You can’t perform that action at this time.
0 commit comments