浏览代码

Do not setup nodeport services with hostnetwork for minio

M. Rehan 3 年之前
父节点
当前提交
5898e3f735
共有 44 个文件被更改,包括 18 次插入14 次删除
  1. 0 0
      charts/minio/1.6.17/.helmignore
  2. 0 0
      charts/minio/1.6.17/CHANGELOG.md
  3. 1 1
      charts/minio/1.6.17/Chart.yaml
  4. 0 0
      charts/minio/1.6.17/README.md
  5. 0 0
      charts/minio/1.6.17/app-readme.md
  6. 0 0
      charts/minio/1.6.17/charts/common-2112.0.0.tgz
  7. 0 0
      charts/minio/1.6.17/ix_values.yaml
  8. 0 0
      charts/minio/1.6.17/migrations/migrate
  9. 0 0
      charts/minio/1.6.17/migrations/migrate_from_1.0.0
  10. 0 0
      charts/minio/1.6.17/questions.yaml
  11. 0 0
      charts/minio/1.6.17/requirements.lock
  12. 0 0
      charts/minio/1.6.17/templates/NOTES.txt
  13. 0 0
      charts/minio/1.6.17/templates/_cert.tpl
  14. 2 2
      charts/minio/1.6.17/templates/_helpers.tpl
  15. 0 0
      charts/minio/1.6.17/templates/configmap.yaml
  16. 2 2
      charts/minio/1.6.17/templates/deployment.yaml
  17. 0 0
      charts/minio/1.6.17/templates/pre-install-job.yaml
  18. 0 0
      charts/minio/1.6.17/templates/secrets.yaml
  19. 4 2
      charts/minio/1.6.17/templates/service.yaml
  20. 0 0
      charts/minio/1.6.17/templates/serviceaccount.yaml
  21. 0 0
      charts/minio/1.6.17/templates/tests/deployment-check.yaml
  22. 0 0
      charts/minio/1.6.17/test_values.yaml
  23. 0 0
      test/minio/1.6.17/.helmignore
  24. 0 0
      test/minio/1.6.17/CHANGELOG.md
  25. 1 1
      test/minio/1.6.17/Chart.yaml
  26. 0 0
      test/minio/1.6.17/README.md
  27. 0 0
      test/minio/1.6.17/app-readme.md
  28. 0 0
      test/minio/1.6.17/charts/common-2112.0.0.tgz
  29. 0 0
      test/minio/1.6.17/ix_values.yaml
  30. 0 0
      test/minio/1.6.17/migrations/migrate
  31. 0 0
      test/minio/1.6.17/migrations/migrate_from_1.0.0
  32. 0 0
      test/minio/1.6.17/questions.yaml
  33. 0 0
      test/minio/1.6.17/requirements.lock
  34. 0 0
      test/minio/1.6.17/templates/NOTES.txt
  35. 0 0
      test/minio/1.6.17/templates/_cert.tpl
  36. 2 2
      test/minio/1.6.17/templates/_helpers.tpl
  37. 0 0
      test/minio/1.6.17/templates/configmap.yaml
  38. 2 2
      test/minio/1.6.17/templates/deployment.yaml
  39. 0 0
      test/minio/1.6.17/templates/pre-install-job.yaml
  40. 0 0
      test/minio/1.6.17/templates/secrets.yaml
  41. 4 2
      test/minio/1.6.17/templates/service.yaml
  42. 0 0
      test/minio/1.6.17/templates/serviceaccount.yaml
  43. 0 0
      test/minio/1.6.17/templates/tests/deployment-check.yaml
  44. 0 0
      test/minio/1.6.17/test_values.yaml

+ 0 - 0
charts/minio/1.6.16/.helmignore → charts/minio/1.6.17/.helmignore


+ 0 - 0
charts/minio/1.6.16/CHANGELOG.md → charts/minio/1.6.17/CHANGELOG.md


+ 1 - 1
charts/minio/1.6.16/Chart.yaml → charts/minio/1.6.17/Chart.yaml

@@ -16,4 +16,4 @@ sources:
 - https://github.com/minio/minio
 - https://github.com/minio/charts
 upstream_version: 8.0.5
-version: 1.6.16
+version: 1.6.17

+ 0 - 0
charts/minio/1.6.16/README.md → charts/minio/1.6.17/README.md


+ 0 - 0
charts/minio/1.6.16/app-readme.md → charts/minio/1.6.17/app-readme.md


+ 0 - 0
charts/minio/1.6.16/charts/common-2112.0.0.tgz → charts/minio/1.6.17/charts/common-2112.0.0.tgz


+ 0 - 0
charts/minio/1.6.16/ix_values.yaml → charts/minio/1.6.17/ix_values.yaml


+ 0 - 0
charts/minio/1.6.16/migrations/migrate → charts/minio/1.6.17/migrations/migrate


+ 0 - 0
charts/minio/1.6.16/migrations/migrate_from_1.0.0 → charts/minio/1.6.17/migrations/migrate_from_1.0.0


+ 0 - 0
charts/minio/1.6.16/questions.yaml → charts/minio/1.6.17/questions.yaml


+ 0 - 0
charts/minio/1.6.16/requirements.lock → charts/minio/1.6.17/requirements.lock


+ 0 - 0
charts/minio/1.6.16/templates/NOTES.txt → charts/minio/1.6.17/templates/NOTES.txt


+ 0 - 0
charts/minio/1.6.16/templates/_cert.tpl → charts/minio/1.6.17/templates/_cert.tpl


+ 2 - 2
test/minio/1.6.16/templates/_helpers.tpl → charts/minio/1.6.17/templates/_helpers.tpl

@@ -56,11 +56,11 @@ Retrieve scheme/protocol for minio
 Retrieve command for minio application
 */}}
 {{- define "minio.commandArgs" -}}
-{{- $arg := "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server --console-address=':9001'" -}}
+{{- $arg := (printf "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server --console-address=':%d'" (.Values.service.consolePort | int)) -}}
 {{- if .Values.distributedMode -}}
 {{- cat $arg (join " " (concat (.Values.distributedIps | default list) (.Values.extraArgs | default list))) -}}
 {{- else -}}
-{{- cat $arg ((concat (list "/export") (.Values.extraArgs | default list)) | join " ") -}}
+{{- cat $arg ((concat (list (printf "--address ':%d'" (.Values.service.nodePort | int))) (list "/export") (.Values.extraArgs | default list)) | join " ") -}}
 {{- end -}}
 {{- end -}}
 

+ 0 - 0
charts/minio/1.6.16/templates/configmap.yaml → charts/minio/1.6.17/templates/configmap.yaml


+ 2 - 2
test/minio/1.6.16/templates/deployment.yaml → charts/minio/1.6.17/templates/deployment.yaml

@@ -46,9 +46,9 @@ spec:
             - {{ include "minio.commandArgs" . }}
           ports:
             - name: api
-              containerPort: 9000
+              containerPort: {{ .Values.service.nodePort | int }}
             - name: console
-              containerPort: 9001
+              containerPort: {{ .Values.service.consolePort | int }}
           env:
             {{ $secretName := (include "minio.secretName" .) }}
             {{ $envList := (default list .Values.environmentVariables) }}

+ 0 - 0
charts/minio/1.6.16/templates/pre-install-job.yaml → charts/minio/1.6.17/templates/pre-install-job.yaml


+ 0 - 0
charts/minio/1.6.16/templates/secrets.yaml → charts/minio/1.6.17/templates/secrets.yaml


+ 4 - 2
test/minio/1.6.16/templates/service.yaml → charts/minio/1.6.17/templates/service.yaml

@@ -1,11 +1,13 @@
+{{ if eq (include "minio.hostNetworking" .) "false" }}
 {{ $svc := .Values.service }}
 {{ $selectors := list }}
 {{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }}
 {{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }}
 {{ $ports := list }}
-{{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 9000) }}
-{{ $ports = mustAppend $ports (dict "name" "console" "port" $svc.consolePort "nodePort" $svc.consolePort "targetPort" 9001) }}
+{{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" (.Values.service.nodePort | int)) }}
+{{ $ports = mustAppend $ports (dict "name" "console" "port" $svc.consolePort "nodePort" $svc.consolePort "targetPort" (.Values.service.consolePort | int)) }}
 {{ $params := . }}
 {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
 {{ $_1 := set .Values "extraSelectorLabels" $selectors }}
 {{ include "common.classes.service" $params }}
+{{ end }}

+ 0 - 0
charts/minio/1.6.16/templates/serviceaccount.yaml → charts/minio/1.6.17/templates/serviceaccount.yaml


+ 0 - 0
charts/minio/1.6.16/templates/tests/deployment-check.yaml → charts/minio/1.6.17/templates/tests/deployment-check.yaml


+ 0 - 0
charts/minio/1.6.16/test_values.yaml → charts/minio/1.6.17/test_values.yaml


+ 0 - 0
test/minio/1.6.16/.helmignore → test/minio/1.6.17/.helmignore


+ 0 - 0
test/minio/1.6.16/CHANGELOG.md → test/minio/1.6.17/CHANGELOG.md


+ 1 - 1
test/minio/1.6.16/Chart.yaml → test/minio/1.6.17/Chart.yaml

@@ -16,4 +16,4 @@ sources:
 - https://github.com/minio/minio
 - https://github.com/minio/charts
 upstream_version: 8.0.5
-version: 1.6.16
+version: 1.6.17

+ 0 - 0
test/minio/1.6.16/README.md → test/minio/1.6.17/README.md


+ 0 - 0
test/minio/1.6.16/app-readme.md → test/minio/1.6.17/app-readme.md


+ 0 - 0
test/minio/1.6.16/charts/common-2112.0.0.tgz → test/minio/1.6.17/charts/common-2112.0.0.tgz


+ 0 - 0
test/minio/1.6.16/ix_values.yaml → test/minio/1.6.17/ix_values.yaml


+ 0 - 0
test/minio/1.6.16/migrations/migrate → test/minio/1.6.17/migrations/migrate


+ 0 - 0
test/minio/1.6.16/migrations/migrate_from_1.0.0 → test/minio/1.6.17/migrations/migrate_from_1.0.0


+ 0 - 0
test/minio/1.6.16/questions.yaml → test/minio/1.6.17/questions.yaml


+ 0 - 0
test/minio/1.6.16/requirements.lock → test/minio/1.6.17/requirements.lock


+ 0 - 0
test/minio/1.6.16/templates/NOTES.txt → test/minio/1.6.17/templates/NOTES.txt


+ 0 - 0
test/minio/1.6.16/templates/_cert.tpl → test/minio/1.6.17/templates/_cert.tpl


+ 2 - 2
charts/minio/1.6.16/templates/_helpers.tpl → test/minio/1.6.17/templates/_helpers.tpl

@@ -56,11 +56,11 @@ Retrieve scheme/protocol for minio
 Retrieve command for minio application
 */}}
 {{- define "minio.commandArgs" -}}
-{{- $arg := "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server --console-address=':9001'" -}}
+{{- $arg := (printf "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server --console-address=':%d'" (.Values.service.consolePort | int)) -}}
 {{- if .Values.distributedMode -}}
 {{- cat $arg (join " " (concat (.Values.distributedIps | default list) (.Values.extraArgs | default list))) -}}
 {{- else -}}
-{{- cat $arg ((concat (list "/export") (.Values.extraArgs | default list)) | join " ") -}}
+{{- cat $arg ((concat (list (printf "--address ':%d'" (.Values.service.nodePort | int))) (list "/export") (.Values.extraArgs | default list)) | join " ") -}}
 {{- end -}}
 {{- end -}}
 

+ 0 - 0
test/minio/1.6.16/templates/configmap.yaml → test/minio/1.6.17/templates/configmap.yaml


+ 2 - 2
charts/minio/1.6.16/templates/deployment.yaml → test/minio/1.6.17/templates/deployment.yaml

@@ -46,9 +46,9 @@ spec:
             - {{ include "minio.commandArgs" . }}
           ports:
             - name: api
-              containerPort: 9000
+              containerPort: {{ .Values.service.nodePort | int }}
             - name: console
-              containerPort: 9001
+              containerPort: {{ .Values.service.consolePort | int }}
           env:
             {{ $secretName := (include "minio.secretName" .) }}
             {{ $envList := (default list .Values.environmentVariables) }}

+ 0 - 0
test/minio/1.6.16/templates/pre-install-job.yaml → test/minio/1.6.17/templates/pre-install-job.yaml


+ 0 - 0
test/minio/1.6.16/templates/secrets.yaml → test/minio/1.6.17/templates/secrets.yaml


+ 4 - 2
charts/minio/1.6.16/templates/service.yaml → test/minio/1.6.17/templates/service.yaml

@@ -1,11 +1,13 @@
+{{ if eq (include "minio.hostNetworking" .) "false" }}
 {{ $svc := .Values.service }}
 {{ $selectors := list }}
 {{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }}
 {{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }}
 {{ $ports := list }}
-{{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 9000) }}
-{{ $ports = mustAppend $ports (dict "name" "console" "port" $svc.consolePort "nodePort" $svc.consolePort "targetPort" 9001) }}
+{{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" (.Values.service.nodePort | int)) }}
+{{ $ports = mustAppend $ports (dict "name" "console" "port" $svc.consolePort "nodePort" $svc.consolePort "targetPort" (.Values.service.consolePort | int)) }}
 {{ $params := . }}
 {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
 {{ $_1 := set .Values "extraSelectorLabels" $selectors }}
 {{ include "common.classes.service" $params }}
+{{ end }}

+ 0 - 0
test/minio/1.6.16/templates/serviceaccount.yaml → test/minio/1.6.17/templates/serviceaccount.yaml


+ 0 - 0
test/minio/1.6.16/templates/tests/deployment-check.yaml → test/minio/1.6.17/templates/tests/deployment-check.yaml


+ 0 - 0
test/minio/1.6.16/test_values.yaml → test/minio/1.6.17/test_values.yaml