feat(voucher-vault): fixed security-policies
This commit is contained in:
3 files changed
+13
-33
No files matched your search
@@ -4,7 +4,7 @@ description: A Helm chart to deploy VoucherVault on Kubernetes
|
|||||||
|
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
version: 1.2.0+up1.27.4
|
version: 1.3.0+up1.27.4
|
||||||
appVersion: "1.27.4"
|
appVersion: "1.27.4"
|
||||||
|
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|||||||
@@ -46,12 +46,18 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
{{- toYaml .Values.voucherVault.ports | nindent 12 }}
|
{{- toYaml .Values.voucherVault.ports | nindent 12 }}
|
||||||
|
{{- if .Values.voucherVault.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml .Values.voucherVault.livenessProbe | nindent 12 }}
|
{{- toYaml .Values.voucherVault.livenessProbe | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.voucherVault.readinessProbe }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
{{- toYaml .Values.voucherVault.readinessProbe | nindent 12 }}
|
{{- toYaml .Values.voucherVault.readinessProbe | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.voucherVault.startupProbe }}
|
||||||
startupProbe:
|
startupProbe:
|
||||||
{{- toYaml .Values.voucherVault.startupProbe | nindent 12 }}
|
{{- toYaml .Values.voucherVault.startupProbe | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.voucherVault.resources | nindent 12 }}
|
{{- toYaml .Values.voucherVault.resources | nindent 12 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@@ -14,45 +14,19 @@ voucherVault:
|
|||||||
memory: 384Mi
|
memory: 384Mi
|
||||||
ephemeral-storage: 100Mi
|
ephemeral-storage: 100Mi
|
||||||
# TODO: Refine liness, readiness, startup probes
|
# TODO: Refine liness, readiness, startup probes
|
||||||
livenessProbe:
|
livenessProbe: null
|
||||||
httpGet:
|
readinessProbe: null
|
||||||
path: /
|
startupProbe: null
|
||||||
port: http
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 3
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: http
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 3
|
|
||||||
startupProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: http
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 3
|
|
||||||
securityContext:
|
securityContext:
|
||||||
pod:
|
pod:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 20000
|
runAsUser: 33
|
||||||
runAsGroup: 1000
|
runAsGroup: 33
|
||||||
fsGroup: 1000
|
fsGroup: 33
|
||||||
fsGroupChangePolicy: Always
|
fsGroupChangePolicy: Always
|
||||||
container:
|
container:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
add: []
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
Reference in new issue
Block a user