Skip to content

Commit

Permalink
Use NFS server selectors (#124)
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal authored Sep 10, 2024
1 parent 990d6c0 commit b8dfa60
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ test-kubernetes-yaml:
helm dep up ./scripts/chart
helm lint ./scripts/chart --values=$(fullConfig)
helm lint ./examples/charts/test --values=$(fullConfig)
helm template ./scripts/chart --values=$(fullConfig) | kubectl apply --dry-run=client --validate=true -f -
helm template ./examples/charts/test --values=$(fullConfig) | kubectl apply --dry-run=client --validate=true -f -
helm template ./scripts/chart --values=$(fullConfig) | kubectl apply --dry-run=server --validate=true -f -
helm template ./examples/charts/test --values=$(fullConfig) | kubectl apply --dry-run=server --validate=true -f -
install:
go run github.com/goreleaser/goreleaser@latest build \
--single-target \
Expand Down
2 changes: 1 addition & 1 deletion scripts/chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: hcloud-k8s-ctl
version: 0.0.1
version: 0.0.2
dependencies:
- name: nfs-subdir-external-provisioner
version: "4.0.16"
Expand Down
12 changes: 12 additions & 0 deletions scripts/chart/templates/nfs-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ spec:
spec:
priorityClassName: system-cluster-critical
containers:
{{ if .Values.deployments.nfs.server.affinity }}
affinity:
{{ toYaml .Values.deployments.nfs.server.affinity | indent 8 }}
{{ end }}
{{ if .Values.deployments.nfs.server.nodeSelector }}
nodeSelector:
{{ toYaml .Values.deployments.nfs.server.nodeSelector | indent 8 }}
{{ end }}
{{ if .Values.deployments.nfs.server.tolerations }}
tolerations:
{{ toYaml .Values.deployments.nfs.server.tolerations | indent 6 }}
{{ end }}
- name: nfs-server
# git clone [email protected]:sjiveson/nfs-server-alpine.git
# cd nfs-server-alpine
Expand Down
8 changes: 4 additions & 4 deletions scripts/chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
hetznerToken:
main: some-token-string
csi: null
ccm: null
hetznerToken: "some-token-string"
clusterName: k8s
location: nbg1
deployments:
nfs:
server:
enabled: false
clusterIP: 10.100.0.100
nodeSelector: {}
tolerations: []
affinity: {}
nfs-subdir-external-provisioner:
enabled: false
registry:
Expand Down

0 comments on commit b8dfa60

Please sign in to comment.