File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,8 @@ RUN apk add --no-cache openssh-client ca-certificates tini 'git>=2.12.0' socat c
24
24
25
25
COPY --from=builder /workspace/source-controller /usr/local/bin/
26
26
27
+ RUN addgroup -S controller && adduser -S -g controller controller
28
+
29
+ USER controller
30
+
27
31
ENTRYPOINT [ "/sbin/tini" , "--" , "source-controller" ]
Original file line number Diff line number Diff line change 23
23
- name : manager
24
24
image : fluxcd/source-controller
25
25
imagePullPolicy : IfNotPresent
26
+ securityContext :
27
+ allowPrivilegeEscalation : false
28
+ readOnlyRootFilesystem : true
26
29
ports :
27
30
- containerPort : 8080
28
31
name : http
37
40
valueFrom :
38
41
fieldRef :
39
42
fieldPath : metadata.namespace
43
+ livenessProbe :
44
+ httpGet :
45
+ port : http
46
+ path : /
47
+ readinessProbe :
48
+ httpGet :
49
+ port : http
50
+ path : /
40
51
resources :
41
52
limits :
42
53
cpu : 1000m
47
58
volumeMounts :
48
59
- name : data
49
60
mountPath : /data
61
+ - name : tmp
62
+ mountPath : /tmp
50
63
volumes :
51
64
- name : data
52
65
emptyDir : {}
66
+ - name : tmp
67
+ emptyDir : {}
You can’t perform that action at this time.
0 commit comments