File tree 4 files changed +18
-11
lines changed
deployment/kubernetes/charts/resc-redis
4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 23
23
24
24
env :
25
25
KUBERNETES_INFRA_DIR : deployment/kubernetes
26
- KUBE_AUDIT_TAG : 0.22.0
26
+ KUBE_AUDIT_VERSION : 0.22.0
27
+ DATREE_VERSION : 1.9.19
27
28
28
29
jobs :
29
30
helm-chart-validation :
84
85
85
86
- name : Install Kubeaudit
86
87
run : |
87
- curl -LO https://github.com/Shopify/kubeaudit/releases/download/v${{env.KUBE_AUDIT_TAG }}/kubeaudit_${{env.KUBE_AUDIT_TAG }}_linux_amd64.tar.gz
88
- tar -xzvf kubeaudit_${{env.KUBE_AUDIT_TAG }}_linux_amd64.tar.gz
88
+ curl -LO https://github.com/Shopify/kubeaudit/releases/download/v${{env.KUBE_AUDIT_VERSION }}/kubeaudit_${{env.KUBE_AUDIT_VERSION }}_linux_amd64.tar.gz
89
+ tar -xzvf kubeaudit_${{env.KUBE_AUDIT_VERSION }}_linux_amd64.tar.gz
89
90
mv kubeaudit /usr/local/bin/
90
91
91
92
- name : Run Kubeaudit Scan
95
96
96
97
- name : Install Datree
97
98
run : |
98
- curl https://get.datree.io | /bin/bash
99
+ curl -L -o datree.zip https://github.com/datreeio/datree/releases/download/${{env.DATREE_VERSION}}/datree-cli_${{env.DATREE_VERSION}}_Linux_x86_64.zip
100
+ unzip datree.zip -d datree
101
+ mv datree/datree /usr/local/bin/
99
102
100
103
- name : Run Datree Scan
101
104
id : datree_scan
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ metadata:
7
7
app : {{ .Values.global.appName }}
8
8
data :
9
9
redis-config : |
10
- maxmemory 6gb
10
+ maxmemory 1gb
11
11
maxmemory-policy allkeys-lru
12
12
protected-mode yes
13
+ save 3600 1
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ kind: Deployment
3
3
metadata :
4
4
name : {{ .Values.global.appName }}-redis
5
5
namespace : {{ .Values.global.namespace }}
6
+ annotations :
7
+ datree.skip/CONTAINERS_INCORRECT_RUNASUSER_VALUE_LOWUID : irrelevant for redis docker image, skipping.
6
8
spec :
7
9
selector :
8
10
matchLabels :
20
22
app : {{ .Values.global.appName }}
21
23
tier : redis
22
24
kubeaudit.io/allow-disabled-apparmor : " apparmor-needs-to-be-installed-on-host"
25
+ kubeaudit.io/allow-read-only-root-filesystem-false : " required-to-write-log-files"
23
26
annotations :
24
27
rollme : {{ randAlphaNum 5 | quote }}
25
28
{{- with include "resc.redisAnnotations" .}}
@@ -72,15 +75,15 @@ spec:
72
75
timeoutSeconds : 10
73
76
securityContext :
74
77
allowPrivilegeEscalation : false
75
- readOnlyRootFilesystem : true
78
+ readOnlyRootFilesystem : false
76
79
privileged : false
77
80
capabilities :
78
81
drop :
79
82
- ALL
80
83
seccompProfile :
81
84
type : RuntimeDefault
82
85
runAsNonRoot : true
83
- runAsUser : 10001
86
+ runAsUser : 999
84
87
livenessProbe :
85
88
exec :
86
89
command :
Original file line number Diff line number Diff line change 6
6
pullPolicy : IfNotPresent
7
7
resources :
8
8
requests :
9
- cpu : 250m
10
- memory : 256Mi
9
+ cpu : 400m
10
+ memory : 750M
11
11
limits :
12
- cpu : 250m
13
- memory : 256Mi
12
+ cpu : 500m
13
+ memory : 1G
14
14
config :
15
15
port : 6379
16
16
password :
You can’t perform that action at this time.
0 commit comments