Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
54972d37
Commit
54972d37
authored
Oct 11, 2021
by
sonicaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nginx as a sidecar to nextcloud deployment
parent
3e731e37
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
test/nextcloud/1.3.6/templates/deployment.yaml
test/nextcloud/1.3.6/templates/deployment.yaml
+22
-1
test/nextcloud/1.3.6/templates/nginx-secret.yaml
test/nextcloud/1.3.6/templates/nginx-secret.yaml
+10
-0
No files found.
test/nextcloud/1.3.6/templates/deployment.yaml
View file @
54972d37
...
@@ -10,6 +10,20 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
...
@@ -10,6 +10,20 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
command
:
[
'
sh'
,
'
-c'
,
"
until
pg_isready
-h
{{
template
"
common.names.fullname" $postgres_values
}}
; do echo waiting for postgres; sleep 2; done"
]
command
:
[
'
sh'
,
'
-c'
,
"
until
pg_isready
-h
{{
template
"
common.names.fullname" $postgres_values
}}
; do echo waiting for postgres; sleep 2; done"
]
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
containers
:
containers
:
-
name
:
nginx
{{
include "common.containers.imageConfig" .Values.nginx.image | nindent 8
}}
volumeMounts
:
-
name
:
nginx-configuration
mountPath
:
/etc/nginx/nginx.conf
subPath
:
config
{{
include "nginx.tlsKeysVolumeMount" . | nindent 10
}}
ports
:
-
name
:
nginx-http
containerPort
:
8000
protocol
:
TCP
-
name
:
nginx-https
containerPort
:
8443
protocol
:
TCP
-
name
:
{{
.Chart.Name
}}
-
name
:
{{
.Chart.Name
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 8
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 8
}}
env
:
{{
include "postgres.envVariableConfiguration" $postgres_values | nindent 10
}}
env
:
{{
include "postgres.envVariableConfiguration" $postgres_values | nindent 10
}}
...
@@ -53,7 +67,14 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
...
@@ -53,7 +67,14 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
mountPath
:
{{
$hostPathConfiguration.mountPath
}}
mountPath
:
{{
$hostPathConfiguration.mountPath
}}
{{
end
}}
{{
end
}}
{{
include "common.networking.dnsConfiguration" .Values | nindent 6
}}
{{
include "common.networking.dnsConfiguration" .Values | nindent 6
}}
{{
include "common.storage.allAppVolumes" .Values | nindent 6
}}
volumes
:
-
name
:
nginx-configuration
configMap
:
defaultMode
:
0700
name
:
"
nginx-configuration"
{{
if .Values.appVolumeMounts
}}
{{
include "common.storage.configureAppVolumes" .Values | nindent 8
}}
{{
end
}}
{{
range $index
,
$hostPathConfiguration
:
= .Values.extraAppVolumeMounts
}}
{{
range $index
,
$hostPathConfiguration
:
= .Values.extraAppVolumeMounts
}}
-
name
:
extrappvolume-{{ $index }}
-
name
:
extrappvolume-{{ $index }}
hostPath
:
hostPath
:
...
...
test/nextcloud/1.3.6/templates/nginx-secret.yaml
0 → 100644
View file @
54972d37
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
{{
include "nginx.secretName" .
}}
type
:
Opaque
data
:
{{
if eq (include "nginx.certAvailable" .) "true"
}}
certPublicKey
:
{{
(include "nginx.cert.publicKey" .) | toString | b64enc | quote
}}
certPrivateKey
:
{{
(include "nginx.cert.privateKey" .) | toString | b64enc | quote
}}
{{
end
}}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment