ab8b011d by Adam Heath

Saving WIP in nfs-server.

1 parent 671dcc94
......@@ -15,13 +15,14 @@ spec:
- name: rpcbind
port: 111
---
apiVersion: v1
kind: ReplicationController
apiVersion: apps/v1
kind: Deployment
metadata:
name: nfs-server
spec:
replicas: 1
selector:
matchLabels:
app: nfs-server
template:
metadata:
......
......@@ -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 }}
......