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
2424
2525COPY --from=builder /workspace/source-controller /usr/local/bin/
2626
27+ RUN addgroup -S controller && adduser -S -g controller controller
28+
29+ USER controller
30+
2731ENTRYPOINT [ "/sbin/tini" , "--" , "source-controller" ]
Original file line number Diff line number Diff line change 2323 - name : manager
2424 image : fluxcd/source-controller
2525 imagePullPolicy : IfNotPresent
26+ securityContext :
27+ allowPrivilegeEscalation : false
28+ readOnlyRootFilesystem : true
2629 ports :
2730 - containerPort : 8080
2831 name : http
3740 valueFrom :
3841 fieldRef :
3942 fieldPath : metadata.namespace
43+ livenessProbe :
44+ httpGet :
45+ port : http
46+ path : /
47+ readinessProbe :
48+ httpGet :
49+ port : http
50+ path : /
4051 resources :
4152 limits :
4253 cpu : 1000m
4758 volumeMounts :
4859 - name : data
4960 mountPath : /data
61+ - name : tmp
62+ mountPath : /tmp
5063 volumes :
5164 - name : data
5265 emptyDir : {}
66+ - name : tmp
67+ emptyDir : {}
You can’t perform that action at this time.
0 commit comments