Bladeren bron

Configure CAs directory for minio for https access

Waqar Ahmed 4 jaren geleden
bovenliggende
commit
e19d7d6343
2 gewijzigde bestanden met toevoegingen van 9 en 1 verwijderingen
  1. 8 0
      test/minio/1.2.0/templates/_cert.tpl
  2. 1 1
      test/minio/1.2.0/templates/deployment.yaml

+ 8 - 0
test/minio/1.2.0/templates/_cert.tpl

@@ -5,6 +5,8 @@ Formats volumeMount for Minio tls keys and trusted certs
 {{- if eq (include "minio.certAvailable" .) "true" -}}
 - name: cert-secret-volume
   mountPath: "/etc/minio/certs"
+- name: trusted-cert-secret-volume
+  mountPath: "/etc/minio/certs/CAs"
 {{- end }}
 {{- end -}}
 
@@ -21,5 +23,11 @@ Formats volume for Minio tls keys and trusted certs
       path: public.crt
     - key: certPrivateKey
       path: private.key
+- name: trusted-cert-secret-volume
+  secret:
+    secretName: {{ include "minio.secretName" . }}
+    items:
+    - key: certPublicKey
+      path: public.crt
 {{- end }}
 {{- end -}}

+ 1 - 1
test/minio/1.2.0/templates/deployment.yaml

@@ -33,7 +33,7 @@ spec:
           command:
             - "/bin/sh"
             - "-ce"
-            - "/usr/bin/docker-entrypoint.sh minio server /export {{ (.Values.extraArgs | default list) | join " " }}"
+            - "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server /export {{ (.Values.extraArgs | default list) | join " " }}"
           ports:
             - name: http
               containerPort: 9000