Skip to content

Commit

Permalink
run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Mar 12, 2024
1 parent 851c4a4 commit d8a891e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
labels:
{{ include "wallet-driving.labels" . | nindent 8 }}
spec:
serviceAccountName: wallet-driving-sa
containers:
- name: {{ .Chart.Name }}
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }}
Expand Down Expand Up @@ -49,4 +50,7 @@ spec:
ports:
- containerPort: {{ .Values.service.port}}
name: http
protocol: TCP
protocol: TCP
securityContext:
runAsRoot: true
runAsUser: 1001
14 changes: 14 additions & 0 deletions aws/fiware/dome-wallet/wallet-driving/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: wallet-driving
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- anyuid
- privileged
resources:
- securitycontextconstraints
verbs:
- use
12 changes: 12 additions & 0 deletions aws/fiware/dome-wallet/wallet-driving/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: wallet-driving-rb
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: wallet-driving
subjects:
- kind: ServiceAccount
name: wallet-driving-sa
namespace: fiware
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: wallet-driving-sa

0 comments on commit d8a891e

Please sign in to comment.