File tree Expand file tree Collapse file tree 10 files changed +137
-5
lines changed Expand file tree Collapse file tree 10 files changed +137
-5
lines changed Original file line number Diff line number Diff line change 40
40
- name : {{ .Chart.Name }}
41
41
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
42
42
imagePullPolicy : {{ .Values.image.pullPolicy }}
43
+ {{- if .Values.containerSecurityContext }}
44
+ securityContext :
45
+ {{- toYaml .Values.containerSecurityContext | nindent 12 }}
46
+ {{- end }}
43
47
command : ["/cmd"]
44
48
args : ["ingest", "--interval", "60"]
45
49
ports :
Original file line number Diff line number Diff line change 1
1
# Default values for convoy ingest.
2
2
# This is a YAML-formatted file.
3
3
# Declare variables to be passed into your templates.
4
+ global :
5
+ externalDatabase :
6
+ enabled : false
7
+
8
+ nativeRedis :
9
+ enabled : false
10
+
11
+ externalRedis :
12
+ enabled : false
4
13
5
14
enabled : true
6
15
app :
@@ -57,3 +66,16 @@ podDisruptionBudget: {}
57
66
nodeSelector : {}
58
67
tolerations : []
59
68
affinity : {}
69
+
70
+ # containerSecurityContext holds container level security attributes.
71
+ containerSecurityContext :
72
+ runAsNonRoot : true
73
+ runAsUser : 1000
74
+ allowPrivilegeEscalation : false
75
+ privileged : false
76
+ readOnlyRootFilesystem : true
77
+ seccompProfile :
78
+ type : RuntimeDefault
79
+ capabilities :
80
+ drop :
81
+ - ALL
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ kind: Job
3
3
metadata :
4
4
name : {{ include "convoy-migrate.fullname" . }}
5
5
annotations :
6
- {{- toYaml .Values.jobAnnotations | nindent 4 }}
6
+ {{- if .Values.jobAnnotations }}
7
+ annotations :
8
+ {{- toYaml .Values.jobAnnotations | nindent 4 }}
9
+ {{- end }}
7
10
" helm.sh/hook " : post-install,post-upgrade
8
11
" helm.sh/hook-weight " : " 0"
9
12
" helm.sh/hook-delete-policy " : before-hook-creation
21
24
- name : {{ .Chart.Name }}
22
25
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
23
26
imagePullPolicy : " {{ .Values.image.pullPolicy }}"
27
+ {{- if .Values.containerSecurityContext }}
28
+ securityContext :
29
+ {{- toYaml .Values.containerSecurityContext | nindent 12 }}
30
+ {{- end }}
24
31
command : ["/cmd"]
25
32
args : ["migrate", "up"]
26
33
env :
Original file line number Diff line number Diff line change 1
1
# Default values for convoy-migrate.
2
2
# This is a YAML-formatted file.
3
3
# Declare variables to be passed into your templates.
4
+ global :
5
+ externalDatabase :
6
+ enabled : false
7
+
8
+ nativeRedis :
9
+ enabled : false
10
+
11
+ externalRedis :
12
+ enabled : false
4
13
5
14
app :
6
15
replicaCount : 1
@@ -29,3 +38,16 @@ tolerations: []
29
38
affinity : {}
30
39
31
40
jobAnnotations : {}
41
+
42
+ # containerSecurityContext holds container level security attributes.
43
+ containerSecurityContext :
44
+ runAsNonRoot : true
45
+ runAsUser : 1000
46
+ allowPrivilegeEscalation : false
47
+ privileged : false
48
+ readOnlyRootFilesystem : true
49
+ seccompProfile :
50
+ type : RuntimeDefault
51
+ capabilities :
52
+ drop :
53
+ - ALL
Original file line number Diff line number Diff line change 40
40
- name : {{ .Chart.Name }}
41
41
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
42
42
imagePullPolicy : {{ .Values.image.pullPolicy }}
43
-
43
+ {{- if .Values.containerSecurityContext }}
44
+ securityContext :
45
+ {{- toYaml .Values.containerSecurityContext | nindent 12 }}
46
+ {{- end }}
44
47
command : ["/cmd"]
45
48
args : ["server"]
46
49
ports :
Original file line number Diff line number Diff line change 2
2
# This is a YAML-formatted file.
3
3
# Declare variables to be passed into your templates.
4
4
5
+ global :
6
+ externalDatabase :
7
+ enabled : false
8
+
9
+ nativeRedis :
10
+ enabled : false
11
+
12
+ externalRedis :
13
+ enabled : false
14
+
5
15
app :
6
16
replicaCount : 1
7
17
port : 5005
@@ -90,3 +100,16 @@ podDisruptionBudget: {}
90
100
nodeSelector : {}
91
101
tolerations : []
92
102
affinity : {}
103
+
104
+ # containerSecurityContext holds container level security attributes.
105
+ containerSecurityContext :
106
+ runAsNonRoot : true
107
+ runAsUser : 1000
108
+ allowPrivilegeEscalation : false
109
+ privileged : false
110
+ readOnlyRootFilesystem : true
111
+ seccompProfile :
112
+ type : RuntimeDefault
113
+ capabilities :
114
+ drop :
115
+ - ALL
Original file line number Diff line number Diff line change 41
41
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
42
42
imagePullPolicy : {{ .Values.image.pullPolicy }}
43
43
command : ["/cmd"]
44
+ {{- if .Values.containerSecurityContext }}
45
+ securityContext :
46
+ {{- toYaml .Values.containerSecurityContext | nindent 12 }}
47
+ {{- end }}
44
48
args : ["stream"]
45
49
ports :
46
50
- name : http
Original file line number Diff line number Diff line change 2
2
# This is a YAML-formatted file.
3
3
# Declare variables to be passed into your templates.
4
4
5
+ global :
6
+ externalDatabase :
7
+ enabled : false
8
+
9
+ nativeRedis :
10
+ enabled : false
11
+
12
+ externalRedis :
13
+ enabled : false
14
+
5
15
enabled : true
6
16
app :
7
17
replicaCount : 1
@@ -58,3 +68,16 @@ ingress:
58
68
nodeSelector : {}
59
69
tolerations : []
60
70
affinity : {}
71
+
72
+ # containerSecurityContext holds container level security attributes.
73
+ containerSecurityContext :
74
+ runAsNonRoot : true
75
+ runAsUser : 1000
76
+ allowPrivilegeEscalation : false
77
+ privileged : false
78
+ readOnlyRootFilesystem : true
79
+ seccompProfile :
80
+ type : RuntimeDefault
81
+ capabilities :
82
+ drop :
83
+ - ALL
Original file line number Diff line number Diff line change @@ -41,12 +41,15 @@ spec:
41
41
imagePullPolicy : {{ .Values.image.pullPolicy }}
42
42
command : ["/cmd"]
43
43
args : ["worker"]
44
+ {{- if .Values.containerSecurityContext }}
45
+ securityContext :
46
+ {{- toYaml .Values.containerSecurityContext | nindent 12 }}
47
+ {{- end }}
44
48
ports :
45
49
- name : http
46
50
containerPort : {{ .Values.app.port }}
47
51
protocol : TCP
48
52
env :
49
-
50
53
- name : SERVICE_NAME
51
54
value : {{ .Chart.Name }}
52
55
- name : PORT
59
62
value : {{ .Values.env.environment | quote }}
60
63
- name : CONVOY_SIGNUP_ENABLED
61
64
value : {{ .Values.env.sign_up_enabled | quote }}
62
-
63
-
64
65
{{- if .Values.global.externalDatabase.enabled }}
65
66
- name : CONVOY_DB_SCHEME
66
67
value : {{ .Values.global.externalDatabase.scheme | quote }}
Original file line number Diff line number Diff line change 2
2
# This is a YAML-formatted file.
3
3
# Declare variables to be passed into your templates.
4
4
5
+ global :
6
+ externalDatabase :
7
+ enabled : false
8
+
9
+ nativeRedis :
10
+ enabled : false
11
+
12
+ externalRedis :
13
+ enabled : false
14
+
5
15
app :
6
16
replicaCount : 1
7
17
port : 5006
@@ -77,3 +87,16 @@ podDisruptionBudget: {}
77
87
nodeSelector : {}
78
88
tolerations : []
79
89
affinity : {}
90
+
91
+ # containerSecurityContext holds container level security attributes.
92
+ containerSecurityContext :
93
+ runAsNonRoot : true
94
+ runAsUser : 1000
95
+ allowPrivilegeEscalation : false
96
+ privileged : false
97
+ readOnlyRootFilesystem : true
98
+ seccompProfile :
99
+ type : RuntimeDefault
100
+ capabilities :
101
+ drop :
102
+ - ALL
You can’t perform that action at this time.
0 commit comments