feat(websocket): fix labels and port and remove security contexts

This commit is contained in:
jyje 2025-01-07 22:27:29 +09:00
parent added76a4c
commit 9b13a7e2af
No known key found for this signature in database
GPG Key ID: CFEECE847750DA12
2 changed files with 15 additions and 9 deletions

View File

@ -16,25 +16,27 @@ metadata:
spec:
selector:
matchLabels:
{{- include "websocket.redis.selectorLabels" . | nindent 4 }}
{{- include "websocket.redis.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "websocket.redis.labels" . | nindent 4 }}
{{- include "websocket.redis.labels" . | nindent 8 }}
spec:
containers:
- name: {{ .Values.websocket.redis.name }}
image: "{{ .Values.websocket.redis.image.repository }}:{{ .Values.websocket.redis.image.tag }}"
imagePullPolicy: {{ .Values.websocket.redis.image.pullPolicy }}
{{- with .Values.websocket.redis.command }}
command:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.websocket.redis.args }}
args:
{{- toYaml . | nindent 10 }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.websocket.redis.port }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
containerPort: {{ .Values.websocket.redis.service.containerPort }}
---
apiVersion: v1
kind: Service

View File

@ -54,6 +54,10 @@ websocket:
repository: redis
tag: 7.4.2-alpine3.21
pullPolicy: IfNotPresent
# -- Redis command
command: []
# -- Redis arguments
args: []
# -- Redis service
service:
# -- Redis container/target port