mirror of
https://github.com/minio/minio.git
synced 2025-02-04 02:15:59 -05:00
Update orchestration docs to use ellipses syntax (#8153)
This commit is contained in:
parent
b3c19e2d4b
commit
0772438125
@ -7,13 +7,14 @@ services:
|
|||||||
minio1:
|
minio1:
|
||||||
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
||||||
volumes:
|
volumes:
|
||||||
- data1:/data
|
- data1-1:/data1
|
||||||
|
- data1-2:/data2
|
||||||
ports:
|
ports:
|
||||||
- "9001:9000"
|
- "9001:9000"
|
||||||
environment:
|
environment:
|
||||||
MINIO_ACCESS_KEY: minio
|
MINIO_ACCESS_KEY: minio
|
||||||
MINIO_SECRET_KEY: minio123
|
MINIO_SECRET_KEY: minio123
|
||||||
command: server http://minio1/data http://minio2/data http://minio3/data http://minio4/data
|
command: server http://minio{1...4}/data{1...2}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://minio1:9000/minio/health/live"]
|
test: ["CMD", "curl", "-f", "http://minio1:9000/minio/health/live"]
|
||||||
interval: 1m30s
|
interval: 1m30s
|
||||||
@ -24,13 +25,14 @@ services:
|
|||||||
minio2:
|
minio2:
|
||||||
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
||||||
volumes:
|
volumes:
|
||||||
- data2:/data
|
- data2-1:/data1
|
||||||
|
- data2-2:/data2
|
||||||
ports:
|
ports:
|
||||||
- "9002:9000"
|
- "9002:9000"
|
||||||
environment:
|
environment:
|
||||||
MINIO_ACCESS_KEY: minio
|
MINIO_ACCESS_KEY: minio
|
||||||
MINIO_SECRET_KEY: minio123
|
MINIO_SECRET_KEY: minio123
|
||||||
command: server http://minio1/data http://minio2/data http://minio3/data http://minio4/data
|
command: server http://minio{1...4}/data{1...2}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://minio2:9000/minio/health/live"]
|
test: ["CMD", "curl", "-f", "http://minio2:9000/minio/health/live"]
|
||||||
interval: 1m30s
|
interval: 1m30s
|
||||||
@ -41,13 +43,14 @@ services:
|
|||||||
minio3:
|
minio3:
|
||||||
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
||||||
volumes:
|
volumes:
|
||||||
- data3:/data
|
- data3-1:/data1
|
||||||
|
- data3-2:/data2
|
||||||
ports:
|
ports:
|
||||||
- "9003:9000"
|
- "9003:9000"
|
||||||
environment:
|
environment:
|
||||||
MINIO_ACCESS_KEY: minio
|
MINIO_ACCESS_KEY: minio
|
||||||
MINIO_SECRET_KEY: minio123
|
MINIO_SECRET_KEY: minio123
|
||||||
command: server http://minio1/data http://minio2/data http://minio3/data http://minio4/data
|
command: server http://minio{1...4}/data{1...2}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://minio3:9000/minio/health/live"]
|
test: ["CMD", "curl", "-f", "http://minio3:9000/minio/health/live"]
|
||||||
interval: 1m30s
|
interval: 1m30s
|
||||||
@ -58,13 +61,14 @@ services:
|
|||||||
minio4:
|
minio4:
|
||||||
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
||||||
volumes:
|
volumes:
|
||||||
- data4:/data
|
- data4-1:/data1
|
||||||
|
- data4-2:/data2
|
||||||
ports:
|
ports:
|
||||||
- "9004:9000"
|
- "9004:9000"
|
||||||
environment:
|
environment:
|
||||||
MINIO_ACCESS_KEY: minio
|
MINIO_ACCESS_KEY: minio
|
||||||
MINIO_SECRET_KEY: minio123
|
MINIO_SECRET_KEY: minio123
|
||||||
command: server http://minio1/data http://minio2/data http://minio3/data http://minio4/data
|
command: server http://minio{1...4}/data{1...2}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://minio4:9000/minio/health/live"]
|
test: ["CMD", "curl", "-f", "http://minio4:9000/minio/health/live"]
|
||||||
interval: 1m30s
|
interval: 1m30s
|
||||||
@ -75,8 +79,12 @@ services:
|
|||||||
## By default this config uses default local driver,
|
## By default this config uses default local driver,
|
||||||
## For custom volumes replace with volume driver configuration.
|
## For custom volumes replace with volume driver configuration.
|
||||||
volumes:
|
volumes:
|
||||||
data1:
|
data1-1:
|
||||||
data2:
|
data1-2:
|
||||||
data3:
|
data2-1:
|
||||||
data4:
|
data2-2:
|
||||||
|
data3-1:
|
||||||
|
data3-2:
|
||||||
|
data4-1:
|
||||||
|
data4-2:
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ services:
|
|||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.labels.minio1==true
|
- node.labels.minio1==true
|
||||||
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
|
command: server http://minio{1...4}/export
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://minio1:9000/minio/health/live"]
|
test: ["CMD", "curl", "-f", "http://minio1:9000/minio/health/live"]
|
||||||
interval: 1m30s
|
interval: 1m30s
|
||||||
@ -57,7 +57,7 @@ services:
|
|||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.labels.minio2==true
|
- node.labels.minio2==true
|
||||||
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
|
command: server http://minio{1...4}/export
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://minio2:9000/minio/health/live"]
|
test: ["CMD", "curl", "-f", "http://minio2:9000/minio/health/live"]
|
||||||
interval: 1m30s
|
interval: 1m30s
|
||||||
@ -89,7 +89,7 @@ services:
|
|||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.labels.minio3==true
|
- node.labels.minio3==true
|
||||||
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
|
command: server http://minio{1...4}/export
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://minio3:9000/minio/health/live"]
|
test: ["CMD", "curl", "-f", "http://minio3:9000/minio/health/live"]
|
||||||
interval: 1m30s
|
interval: 1m30s
|
||||||
@ -121,7 +121,7 @@ services:
|
|||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.labels.minio4==true
|
- node.labels.minio4==true
|
||||||
command: server http://minio1/export http://minio2/export http://minio3/export http://minio4/export
|
command: server http://minio{1...4}/export
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://minio4:9000/minio/health/live"]
|
test: ["CMD", "curl", "-f", "http://minio4:9000/minio/health/live"]
|
||||||
interval: 1m30s
|
interval: 1m30s
|
||||||
|
@ -207,10 +207,7 @@ Specifically the hostpath:
|
|||||||
|
|
||||||
And the list of hosts:
|
And the list of hosts:
|
||||||
```yaml
|
```yaml
|
||||||
- http://hostname1:9000/data/minio
|
- http://hostname{1...4}/data/minio
|
||||||
- http://hostname2:9000/data/minio
|
|
||||||
- http://hostname3:9000/data/minio
|
|
||||||
- http://hostname4:9000/data/minio
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Once deployed, tag the defined host with the `minio-server=true` label:
|
Once deployed, tag the defined host with the `minio-server=true` label:
|
||||||
|
@ -34,10 +34,7 @@ spec:
|
|||||||
# Unfortunately you must manually define each server. Perhaps autodiscovery via DNS can be implemented in the future.
|
# Unfortunately you must manually define each server. Perhaps autodiscovery via DNS can be implemented in the future.
|
||||||
args:
|
args:
|
||||||
- server
|
- server
|
||||||
- http://hostname1:9000/data/minio
|
- http://hostname{1...4}/data/minio
|
||||||
- http://hostname2:9000/data/minio
|
|
||||||
- http://hostname3:9000/data/minio
|
|
||||||
- http://hostname4:9000/data/minio
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9000
|
- containerPort: 9000
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -24,10 +24,7 @@ spec:
|
|||||||
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
image: minio/minio:RELEASE.2019-08-29T00-25-01Z
|
||||||
args:
|
args:
|
||||||
- server
|
- server
|
||||||
- http://minio-0.minio.default.svc.cluster.local/data
|
- http://minio-{0...3}.minio.default.svc.cluster.local/data
|
||||||
- http://minio-1.minio.default.svc.cluster.local/data
|
|
||||||
- http://minio-2.minio.default.svc.cluster.local/data
|
|
||||||
- http://minio-3.minio.default.svc.cluster.local/data
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9000
|
- containerPort: 9000
|
||||||
# These volume mounts are persistent. Each pod in the PetSet
|
# These volume mounts are persistent. Each pod in the PetSet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user