Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Apr 26, 2024
1 parent 5f6b2cf commit d609c56
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions library/ix-dev/charts/nextcloud/templates/postgres-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
{{ $values := (. | mustDeepCopy) }}
{{ $_ := set $values "common" (dict "nameSuffix" "postgres-nc") }}
{{ include "common.deployment.common_config" $values | nindent 0 }}
spec: {{ include "common.deployment.common_spec" $values | nindent 2 }}
template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }}
{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }}

apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ template "common.names.fullname" . }}-postgres-nc
labels:
app.kubernetes.io/name: {{ template "common.names.name" . }}-postgres
app.kubernetes.io/instance: {{ .Release.Name }}-postgres
spec:
strategy:
type: "Recreate"
selector:
matchLabels:
app.kubernetes.io/name: {{ template "common.names.name" . }}-postgres
app.kubernetes.io/instance: {{ .Release.Name }}-postgres
template:
metadata:
name: {{ template "common.names.fullname" . }}
labels:
app.kubernetes.io/name: {{ template "common.names.name" . }}-postgres
app.kubernetes.io/instance: {{ .Release.Name }}-postgres
annotations: {{ include "common.annotations" . | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}-postgres
Expand Down

0 comments on commit d609c56

Please sign in to comment.