Improve UI security and deploy workflow
This commit is contained in:
1 parent
be7762e369
commit
db9c4054a5
13 files changed
+435
-129
No files matched your search
@@ -20,6 +20,10 @@ spec:
|
||||
labels:
|
||||
{{- include "app.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
{{- with .Values.app.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
securityContext:
|
||||
runAsUser: {{ .Values.app.securityContext.runAsUser }}
|
||||
runAsGroup: {{ .Values.app.securityContext.runAsGroup }}
|
||||
@@ -27,7 +31,8 @@ spec:
|
||||
fsGroup: {{ .Values.app.securityContext.runAsGroup }}
|
||||
containers:
|
||||
- name: web
|
||||
image: {{ .Values.app.image }}
|
||||
image: {{ .Values.app.image | quote }}
|
||||
imagePullPolicy: {{ .Values.app.imagePullPolicy | default "Always" }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.app.port }}
|
||||
protocol: TCP
|
||||
|
||||
@@ -2,6 +2,8 @@ namespace: apcupsd
|
||||
|
||||
app:
|
||||
image: ghcr.io/k2patel/apcupsd-client:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
imagePullSecrets: []
|
||||
replicas: 1
|
||||
port: 8000
|
||||
resources:
|
||||
|
||||
Reference in new issue
Block a user