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
f1c99176
Commit
f1c99176
authored
Jan 30, 2021
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render nextcloud postgres service using library chart
parent
4b3bad4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
24 deletions
+7
-24
test/nextcloud/1.1.0/templates/postgres-service.yaml
test/nextcloud/1.1.0/templates/postgres-service.yaml
+5
-18
test/nextcloud/1.1.0/templates/serviceaccount.yaml
test/nextcloud/1.1.0/templates/serviceaccount.yaml
+2
-6
No files found.
test/nextcloud/1.1.0/templates/postgres-service.yaml
View file @
f1c99176
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
{{
template "nextcloud.fullname" .
}}
-postgres
labels
:
app.kubernetes.io/name
:
{{
include "nextcloud.name" .
}}
-postgres
helm.sh/chart
:
{{
include "nextcloud.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
app.kubernetes.io/component
:
app
spec
:
type
:
ClusterIP
ports
:
-
port
:
5432
protocol
:
TCP
name
:
postgres-tcp
selector
:
{{
- include "nextcloud.postgres.selectorLabels" . | nindent 4
}}
{{
$ports
:
= list
}}
{{
$ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432)
}}
{{
$params
:
= .
}}
{{
$_
:
= set $params "service" (dict "type" "ClusterIP" "ports" $ports "nameSuffix" "postgres" )
}}
{{
include "common.classes.service" $params
}}
test/nextcloud/1.1.0/templates/serviceaccount.yaml
View file @
f1c99176
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
"
{{
template
"nextcloud.serviceAccountName" . }}"
namespace
:
{{
.Release.Namespace
}}
{{
- include "common.serviceaccount" . -
}}
---
...
...
@@ -12,7 +8,7 @@ metadata:
name
:
"
{{
.Release.Name
}}-service-account-role-binding"
subjects
:
-
kind
:
ServiceAccount
name
:
"
{{
template
"
nextcloud
.serviceAccountName" . }}"
name
:
"
{{
template
"
common.names
.serviceAccountName" . }}"
namespace
:
{{
.Release.Namespace
}}
roleRef
:
kind
:
Role
...
...
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