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
a2bd98e6
authored
2022-07-07 13:16:51 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Get nfs-server working with latest helmfile, and allow settings the
clusterIP.
1 parent
e857363b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
nfs-server/config.yaml → nfs-server/charts/nfs-server/config.yaml
nfs-server/kustomization.yaml → nfs-server/charts/nfs-server/kustomization.yaml
nfs-server/nfs-server.yaml → nfs-server/charts/nfs-server/nfs-server.yaml
nfs-server/helmfile.yaml
nfs-server/config.yaml
→
nfs-server/c
harts/nfs-server/c
onfig.yaml
View file @
a2bd98e
File moved
nfs-server/kustomization.yaml
→
nfs-server/
charts/nfs-server/
kustomization.yaml
View file @
a2bd98e
...
...
@@ -10,5 +10,5 @@ generatorOptions:
configMapGenerator
:
-
name
:
nfs-scripts
files
:
-
./scripts/wait-for-file
-
.
./..
/scripts/wait-for-file
...
...
nfs-server/nfs-server.yaml
→
nfs-server/
charts/nfs-server/
nfs-server.yaml
View file @
a2bd98e
...
...
@@ -4,6 +4,7 @@ kind: Service
metadata
:
name
:
nfs-server
spec
:
type
:
ClusterIP
selector
:
app
:
nfs-server
ports
:
...
...
nfs-server/helmfile.yaml
View file @
a2bd98e
...
...
@@ -6,14 +6,35 @@ environments:
images
:
debian
:
"
debian:bullseye-20211220"
volume-nfs
:
k8s.gcr.io/volume-nfs:0.8
nfs_server
:
jsonPatches
:
[]
strategicMergePatches
:
[]
service
:
nfs_server
:
clusterIP
:
0
---
releases
:
-
name
:
{{
.Values.namePrefix
}}
nfs-server
namespace
:
{{
.Values.namespace
}}
chart
:
.
chart
:
charts/nfs-server
values
:
-
set-common-values.yaml.gotmpl
jsonPatches
:
{{
- if .Values.nfs_server.service.nfs_server.clusterIP
}}
-
target
:
kind
:
Service
name
:
{{
.Values.namePrefix
}}
nfs_server
namespace
:
{{
.Values.namespace
}}
version
:
v1
patch
:
-
op
:
add
path
:
/spec/clusterIP
value
:
{{
.Values.nfs_server.service.nfs_server.clusterIP
}}
{{
- end
}}
{{
- if not (empty (.Values.nfs_server.jsonPatches))
}}
{{
- .Values.nfs_server.jsonPatches | toYaml | indent 6
}}
{{
- end
}}
strategicMergePatches
:
-
apiVersion
:
v1
kind
:
ReplicationController
...
...
@@ -27,4 +48,7 @@ releases:
-
name
:
nfs-data
persistentVolumeClaim
:
claimName
:
{{
.Values.namePrefix
}}
nfs-data
{{
- if not (empty (.Values.nfs_server.strategicMergePatches))
}}
{{
- .Values.nfs_server.strategicMergePatches | toYaml | indent 6
}}
{{
- end
}}
...
...
Please
register
or
sign in
to post a comment