Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
ac0cfab7
Commit
ac0cfab7
authored
Dec 09, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only have nodeport service
parent
4917a621
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
109 deletions
+2
-109
test/minio/8.0.5/README.md
test/minio/8.0.5/README.md
+0
-23
test/minio/8.0.5/templates/_helpers.tpl
test/minio/8.0.5/templates/_helpers.tpl
+0
-11
test/minio/8.0.5/templates/networkpolicy.yaml
test/minio/8.0.5/templates/networkpolicy.yaml
+0
-25
test/minio/8.0.5/templates/service.yaml
test/minio/8.0.5/templates/service.yaml
+2
-25
test/minio/8.0.5/values.yaml
test/minio/8.0.5/values.yaml
+0
-25
No files found.
test/minio/8.0.5/README.md
View file @
ac0cfab7
...
@@ -141,10 +141,6 @@ The following table lists the configurable parameters of the MinIO chart and the
...
@@ -141,10 +141,6 @@ The following table lists the configurable parameters of the MinIO chart and the
|
`certsPath`
| Default certs path location |
`/etc/minio/certs`
|
|
`certsPath`
| Default certs path location |
`/etc/minio/certs`
|
|
`mountPath`
| Default mount location for persistent drive |
`/export`
|
|
`mountPath`
| Default mount location for persistent drive |
`/export`
|
|
`bucketRoot`
| Directory from where minio should serve buckets. | Value of
`.mountPath`
|
|
`bucketRoot`
| Directory from where minio should serve buckets. | Value of
`.mountPath`
|
|
`service.type`
| Kubernetes service type |
`ClusterIP`
|
|
`service.port`
| Kubernetes port where service is exposed |
`9000`
|
|
`service.externalIPs`
| service external IP addresses |
`nil`
|
|
`service.annotations`
| Service annotations |
`{}`
|
|
`persistence.enabled`
| Use persistent volume to store data |
`true`
|
|
`persistence.enabled`
| Use persistent volume to store data |
`true`
|
|
`persistence.size`
| Size of persistent volume claim |
`500Gi`
|
|
`persistence.size`
| Size of persistent volume claim |
`500Gi`
|
|
`persistence.existingClaim`
| Use an existing PVC to persist data |
`nil`
|
|
`persistence.existingClaim`
| Use an existing PVC to persist data |
`nil`
|
...
@@ -225,25 +221,6 @@ If a Persistent Volume Claim already exists, specify it during installation.
...
@@ -225,25 +221,6 @@ If a Persistent Volume Claim already exists, specify it during installation.
$
helm
install
--set
persistence.existingClaim
=
PVC_NAME minio/minio
$
helm
install
--set
persistence.existingClaim
=
PVC_NAME minio/minio
```
```
NetworkPolicy
-------------
To enable network policy for MinIO,
install
[
a networking plugin that implements the Kubernetes
NetworkPolicy spec
](
https://kubernetes.io/docs/tasks/administer-cluster/declare-network-policy#before-you-begin
)
,
and set
`networkPolicy.enabled`
to
`true`
.
For Kubernetes v1.5 & v1.6, you must also turn on NetworkPolicy by setting
the DefaultDeny namespace annotation. Note: this will enforce policy for _all_ pods in the namespace:
kubectl annotate namespace default "net.beta.kubernetes.io/network-policy={\"ingress\":{\"isolation\":\"DefaultDeny\"}}"
With NetworkPolicy enabled, traffic will be limited to just port 9000.
For more precise policy, set
`networkPolicy.allowExternal=true`
. This will
only allow pods with the generated client label to connect to MinIO.
This label will be displayed in the output of a successful install.
Configure TLS
Configure TLS
-------------
-------------
...
...
test/minio/8.0.5/templates/_helpers.tpl
View file @
ac0cfab7
...
@@ -31,17 +31,6 @@ Create chart name and version as used by the chart label.
...
@@ -31,17 +31,6 @@ Create chart name and version as used by the chart label.
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{
{
/*
Return
the
appropriate
apiVersion
for
networkpolicy
.
*/
}
}
{{- define "minio.networkPolicy.apiVersion" -}}
{{- if semverCompare ">=1.4-0,
<1
.
7-0
"
.
Capabilities
.
KubeVersion
.
Version
-
}}
{{
-
print
"
extensions
/
v1beta1
"
-
}}
{{
-
else
if
semverCompare
"^
1
.
7-0
"
.
Capabilities
.
KubeVersion
.
Version
-
}}
{{
-
print
"
networking
.
k8s
.
io
/
v1beta1
"
-
}}
{{
-
end
-
}}
{{
-
end
-
}}
{
{
/*
{
{
/*
Return
the
appropriate
apiVersion
for
deployment
.
Return
the
appropriate
apiVersion
for
deployment
.
*/
}
}
*/
}
}
...
...
test/minio/8.0.5/templates/networkpolicy.yaml
deleted
100644 → 0
View file @
4917a621
{{
- if .Values.networkPolicy.enabled
}}
kind
:
NetworkPolicy
apiVersion
:
{{
template "minio.networkPolicy.apiVersion" .
}}
metadata
:
name
:
{{
template "minio.fullname" .
}}
labels
:
app
:
{{
template "minio.name" .
}}
chart
:
{{
template "minio.chart" .
}}
release
:
{{
.Release.Name
}}
heritage
:
{{
.Release.Service
}}
spec
:
podSelector
:
matchLabels
:
app
:
{{
template "minio.name" .
}}
release
:
{{
.Release.Name
}}
ingress
:
-
ports
:
-
port
:
{{
.Values.service.port
}}
{{
- if not .Values.networkPolicy.allowExternal
}}
from
:
-
podSelector
:
matchLabels
:
{{
template "minio.name" .
}}
-client
:
"
true"
{{
- end
}}
{{
- end
}}
test/minio/8.0.5/templates/service.yaml
View file @
ac0cfab7
...
@@ -11,37 +11,14 @@ metadata:
...
@@ -11,37 +11,14 @@ metadata:
chart
:
{{
template "minio.chart" .
}}
chart
:
{{
template "minio.chart" .
}}
release
:
{{
.Release.Name
}}
release
:
{{
.Release.Name
}}
heritage
:
{{
.Release.Service
}}
heritage
:
{{
.Release.Service
}}
{{
- if .Values.service.annotations
}}
annotations
:
{{
toYaml .Values.service.annotations | indent 4
}}
{{
- end
}}
spec
:
spec
:
{{
- if (or (eq .Values.service.type "ClusterIP" "") (empty .Values.service.type))
}}
type
:
"
NodePort"
type
:
ClusterIP
{{
- if not (empty .Values.service.clusterIP)
}}
clusterIP
:
{{
.Values.service.clusterIP
}}
{{
end
}}
{{
- else if eq .Values.service.type "LoadBalancer"
}}
type
:
{{
.Values.service.type
}}
loadBalancerIP
:
{{
default "" .Values.service.loadBalancerIP
}}
{{
- else
}}
type
:
{{
.Values.service.type
}}
{{
- end
}}
ports
:
ports
:
-
name
:
{{
$scheme
}}
-
name
:
{{
$scheme
}}
port
:
{{
.Values.service.
p
ort
}}
port
:
{{
.Values.service.
nodeP
ort
}}
protocol
:
TCP
protocol
:
TCP
{{
- if (and (eq .Values.service.type "NodePort") ( .Values.service.nodePort))
}}
nodePort
:
{{
.Values.service.nodePort
}}
nodePort
:
{{
.Values.service.nodePort
}}
{{
- else
}}
targetPort
:
9000
targetPort
:
9000
{{
- end
}}
{{
- if .Values.service.externalIPs
}}
externalIPs
:
{{
- range $i
,
$ip
:
= .Values.service.externalIPs
}}
-
{{
$ip
}}
{{
- end
}}
{{
- end
}}
selector
:
selector
:
app
:
{{
template "minio.name" .
}}
app
:
{{
template "minio.name" .
}}
release
:
{{
.Release.Name
}}
release
:
{{
.Release.Name
}}
test/minio/8.0.5/values.yaml
View file @
ac0cfab7
...
@@ -93,33 +93,8 @@ persistence:
...
@@ -93,33 +93,8 @@ persistence:
##
##
subPath
:
"
"
subPath
:
"
"
## Expose the Minio service to be accessed from outside the cluster (LoadBalancer service).
## or access it from within the cluster (ClusterIP service). Set the service type and the port to serve it.
## ref: http://kubernetes.io/docs/user-guide/services/
##
service
:
service
:
type
:
ClusterIP
clusterIP
:
~
port
:
9000
nodePort
:
32000
nodePort
:
32000
## List of IP addresses at which the Prometheus server service is available
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
##
externalIPs
:
[]
# - externalIp1
annotations
:
{}
# prometheus.io/scrape: 'true'
# prometheus.io/path: '/minio/prometheus/metrics'
# prometheus.io/port: '9000'
## Use this field to add environment variables relevant to Minio server. These fields will be passed on to Minio container(s)
## when Chart is deployed
environment
:
environment
:
## Please refer for comprehensive list https://docs.minio.io/docs/minio-server-configuration-guide.html
## Please refer for comprehensive list https://docs.minio.io/docs/minio-server-configuration-guide.html
networkPolicy
:
enabled
:
false
allowExternal
:
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment