Commit 18571e5a authored by Prout, Ryan's avatar Prout, Ryan
Browse files

adding ability to enable olcf fs

parent 2faaf940
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
apiVersion: apps/v1
kind: Deployment
metadata:
  {{- if eq .Values.minio.use_olcf_fs "enabled" }}
  annotations:
    ccs.ornl.gov/fs: olcf
  {{- end }}
  # This name uniquely identifies the Deployment
  name: {{ .Values.minio.name }}
spec:
@@ -19,6 +23,7 @@ spec:
        # This label is used as a selector in Service definition
        app: {{ .Values.minio.name }}
    spec:
      {{- if eq .Values.minio.use_olcf_fs "disabled" }}
      # Volumes used by this deployment
      volumes:
      - name: data
@@ -26,18 +31,26 @@ spec:
        persistentVolumeClaim:
          # Name of the PVC created earlier
          claimName: {{ .Values.minio.name }}-pv-claim
      {{- end }}
      containers:
      - name: minio
      {{- if eq .Values.minio.use_olcf_fs "disabled" }}
        # Volume mounts for this container
        volumeMounts:
        # Volume 'data' is mounted to path '/data'
        - name: data 
          mountPath: "/data"
      {{- end }}
        # Pulls the lastest Minio image from Docker Hub
        image: minio/minio:RELEASE.2020-05-08T02-40-49Z
        args:
        - server
        {{- if eq .Values.minio.use_olcf_fs "disabled" }}
        - /data
        {{- end }}
        {{- if eq .Values.minio.use_olcf_fs "enabled" }}
        - {{ .Values.minio.olcfMount }}
        {{- end }}
        env:
        # MinIO access key and secret key
        - name: MINIO_ACCESS_KEY
+1 −1
Original line number Diff line number Diff line
@@ -11,4 +11,4 @@ spec:
  resources:
    # This is the request for storage. Should be available in the cluster.
    requests:
      storage: 10Gi
      storage: {{ .Values.minio.pvc_storage }}
+7 −2
Original line number Diff line number Diff line
# This can be used to provide variables to your chart. 
# A simple example would be resources in the minio-standalone-deployment.yaml:

# Below are the current configurable variables.
minio:
  resources:
    requests:
@@ -13,3 +12,9 @@ minio:
  host: rprout-minio-standalone.apps.marble.ccs.ornl.gov
  # Change this to create unique app name
  name: rprout-minio-standalone
  # Set this to "disbled" to not use OLCF fileystem. If "disabled" it will use a volume isolated to the MinIO Pod.
  use_olcf_fs: enabled
  # This is the OLCF file system path MinIO will server out of, if "enabled" above.
  olcfMount: /ccs/proj/stf007/minio-test
  # Amount of storage to use, if use_olcf_fs is "disabled"
  pvc_storage: 10Gi