Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
k8s-helmfiles
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ab8b011d
authored
2022-07-11 17:11:53 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Saving WIP in nfs-server.
1 parent
671dcc94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
7 deletions
nfs-server/charts/nfs-server/nfs-server.yaml
nfs-server/helmfile.yaml
nfs-server/charts/nfs-server/nfs-server.yaml
View file @
ab8b011
...
...
@@ -15,14 +15,15 @@ spec:
-
name
:
rpcbind
port
:
111
---
apiVersion
:
v1
kind
:
ReplicationController
apiVersion
:
apps/
v1
kind
:
Deployment
metadata
:
name
:
nfs-server
spec
:
replicas
:
1
selector
:
app
:
nfs-server
matchLabels
:
app
:
nfs-server
template
:
metadata
:
labels
:
...
...
nfs-server/helmfile.yaml
View file @
ab8b011
...
...
@@ -12,6 +12,9 @@ environments:
service
:
nfs_server
:
clusterIP
:
0
storageClassName
:
"
"
affinity
:
null
tolerations
:
null
---
releases
:
...
...
@@ -24,7 +27,7 @@ releases:
{{
- if .Values.nfs_server.service.nfs_server.clusterIP
}}
-
target
:
kind
:
Service
name
:
{{
.Values.namePrefix
}}
nfs
_
server
name
:
{{
.Values.namePrefix
}}
nfs
-
server
namespace
:
{{
.Values.namespace
}}
version
:
v1
patch
:
...
...
@@ -32,12 +35,23 @@ releases:
path
:
/spec/clusterIP
value
:
{{
.Values.nfs_server.service.nfs_server.clusterIP
}}
{{
- end
}}
{{
- if .Values.nfs_server.storageClassName
}}
-
target
:
kind
:
PersistentVolumeClaim
name
:
{{
.Values.namePrefix
}}
nfs-data
namespace
:
{{
.Values.namespace
}}
version
:
v1
patch
:
-
op
:
add
path
:
/spec/storageClassName
value
:
{{
.Values.nfs_server.storageClassName
}}
{{
- end
}}
{{
- if not (empty (.Values.nfs_server.jsonPatches))
}}
{{
- .Values.nfs_server.jsonPatches | toYaml | indent 6
}}
{{
- end
}}
strategicMergePatches
:
-
apiVersion
:
v1
kind
:
ReplicationController
-
apiVersion
:
apps/
v1
kind
:
Deployment
metadata
:
name
:
{{
.Values.namePrefix
}}
nfs-server
namespace
:
{{
.Values.namespace
}}
...
...
@@ -48,7 +62,14 @@ releases:
-
name
:
nfs-data
persistentVolumeClaim
:
claimName
:
{{
.Values.namePrefix
}}
nfs-data
{{
- if .Values.nfs_server.affinity
}}
affinity
:
{{
- .Values.nfs_server.affinity | toYaml | nindent 16
}}
{{
- end
}}
{{
- if .Values.nfs_server.tolerations
}}
tolerations
:
{{
- .Values.nfs_server.tolerations | toYaml | nindent 16
}}
{{
- end
}}
{{
- if not (empty (.Values.nfs_server.strategicMergePatches))
}}
{{
- .Values.nfs_server.strategicMergePatches | toYaml | indent 6
}}
{{
- end
}}
...
...
Please
register
or
sign in
to post a comment