Commit 59ab202 1 parent 883f6dd commit 59ab202 Copy full SHA for 59ab202
File tree 9 files changed +50
-21
lines changed
9 files changed +50
-21
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : apps/v1
2
2
kind : Deployment
3
3
metadata :
4
- namespace : intranet
4
+ namespace : {{ .Release.Namespace }}
5
5
name : handbook
6
6
labels :
7
7
app : handbook
19
19
spec :
20
20
securityContext :
21
21
runAsUser : 1000
22
+ seccompProfile :
23
+ type : RuntimeDefault
22
24
affinity :
23
25
podAntiAffinity :
24
26
preferredDuringSchedulingIgnoredDuringExecution :
30
32
weight : 100
31
33
containers :
32
34
- name : handbook
33
- image : quay.io/giantswarm/handbook:{{ .Chart.Version }}
34
- imagePullPolicy : Always
35
+ image : gsoci.azurecr.io/giantswarm/handbook:{{ .Chart.Version }}
36
+ securityContext :
37
+ allowPrivilegeEscalation : false
38
+ runAsNonRoot : true
39
+ seccompProfile :
40
+ type : RuntimeDefault
41
+ capabilities :
42
+ drop :
43
+ - ALL
35
44
ports :
36
45
- containerPort : 8080
37
46
name : http
Original file line number Diff line number Diff line change 1
1
kind : Service
2
2
apiVersion : v1
3
3
metadata :
4
- namespace : intranet
4
+ namespace : {{ .Release.Namespace }}
5
5
name : handbook
6
6
labels :
7
7
app : handbook
Original file line number Diff line number Diff line change 1
1
apiVersion : networking.k8s.io/v1
2
2
kind : Ingress
3
3
metadata :
4
- namespace : intranet
4
+ namespace : {{ .Release.Namespace }}
5
5
name : handbook
6
6
labels :
7
7
app : handbook
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: policy/v1
2
2
kind : PodDisruptionBudget
3
3
metadata :
4
4
name : handbook
5
- namespace : intranet
5
+ namespace : {{ .Release.Namespace }}
6
6
spec :
7
7
minAvailable : 1
8
8
selector :
Original file line number Diff line number Diff line change
1
+ {{- if not (((.Values.global).podSecurityStandards).enforced) }}
1
2
---
2
3
apiVersion : policy/v1beta1
3
4
kind : PodSecurityPolicy
@@ -24,17 +25,11 @@ spec:
24
25
- configMap
25
26
- emptyDir
26
27
---
27
- apiVersion : v1
28
- kind : ServiceAccount
29
- metadata :
30
- namespace : intranet
31
- name : handbook
32
- ---
33
28
apiVersion : rbac.authorization.k8s.io/v1
34
29
kind : Role
35
30
metadata :
36
31
name : handbook
37
- namespace : intranet
32
+ namespace : {{ .Release.Namespace }}
38
33
rules :
39
34
- apiGroups :
40
35
- extensions
@@ -49,12 +44,13 @@ apiVersion: rbac.authorization.k8s.io/v1
49
44
kind : RoleBinding
50
45
metadata :
51
46
name : handbook
52
- namespace : intranet
47
+ namespace : {{ .Release.Namespace }}
53
48
roleRef :
54
49
apiGroup : rbac.authorization.k8s.io
55
50
kind : Role
56
51
name : handbook
57
52
subjects :
58
53
- kind : ServiceAccount
59
54
name : handbook
60
- namespace : intranet
55
+ namespace : {{ .Release.Namespace }}
56
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : v1
3
+ kind : ServiceAccount
4
+ metadata :
5
+ name : handbook
6
+ namespace : {{ .Release.Namespace }}
Original file line number Diff line number Diff line change 1
1
apiVersion : apps/v1
2
2
kind : Deployment
3
3
metadata :
4
- namespace : intranet
4
+ namespace : {{ .Release.Namespace }}
5
5
name : staticjscms-hugo-standalone
6
6
labels :
7
7
app : staticjscms-hugo-standalone
19
19
spec :
20
20
securityContext :
21
21
runAsUser : 1000
22
+ seccompProfile :
23
+ type : RuntimeDefault
22
24
affinity :
23
25
podAntiAffinity :
24
26
preferredDuringSchedulingIgnoredDuringExecution :
31
33
containers :
32
34
- name : staticjscms-hugo-standalone
33
35
image : gsoci.azurecr.io/giantswarm/staticjscms-hugo-standalone:{{ .Values.staticJsCmsHugoStandaloneVersion }}
34
- imagePullPolicy : Always
36
+ securityContext :
37
+ allowPrivilegeEscalation : false
38
+ runAsNonRoot : true
39
+ seccompProfile :
40
+ type : RuntimeDefault
41
+ capabilities :
42
+ drop :
43
+ - ALL
35
44
env :
45
+ - name : ORIGIN
46
+ valueFrom :
47
+ secretKeyRef :
48
+ name : staticjscms-secret
49
+ key : ORIGINS
36
50
- name : ORIGINS
37
51
valueFrom :
38
52
secretKeyRef :
Original file line number Diff line number Diff line change 1
1
kind : Service
2
2
apiVersion : v1
3
3
metadata :
4
- namespace : intranet
4
+ namespace : {{ .Release.Namespace }}
5
5
name : staticjscms-hugo-standalone
6
6
labels :
7
7
app : staticjscms-hugo-standalone
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ secrets:
5
5
- name : staticjscms-secret
6
6
data :
7
7
- key : ORIGINS
8
- value : " aHR0cHM6Ly9oYW5kYm9vay5naWFudHN3YXJtLmlv "
8
+ value : aGFuZGJvb2suZ2lhbnRzd2FybS5pbw==
9
9
- key : OAUTH_CLIENT_ID
10
- value : " MjE5OTEyMzk5MWFzZGVhZGJlZWY="
10
+ value : MjE5OTEyMzk5MWFzZGVhZGJlZWY=
11
11
- key : OAUTH_CLIENT_SECRET
12
- value : " YWFkc3NhZGFkYWRhZGFkMTIzMTIzMTIzMWFkYWRhZDEyMzEyM2FiYw=="
12
+ value : YWFkc3NhZGFkYWRhZGFkMTIzMTIzMTIzMWFkYWRhZDEyMzEyM2FiYw==
13
13
- key : GIT_HOSTNAME
14
14
value : " "
15
15
- name : cms-config
@@ -29,3 +29,7 @@ volumeMounts:
29
29
- name : cms-config
30
30
mountPath : " /app/config.yml"
31
31
subPath : " config.yml"
32
+
33
+ global :
34
+ podSecurityStandards :
35
+ enforced : false
You can’t perform that action at this time.
0 commit comments