~ kubectl create secret generic my-secret --from-file=config.yml
~ kubectl apply -f minio1.yml
~ kubectl apply -f minio2.yml
~ kubectl apply -f minio3.yml
~ kubectl apply -f radio.yml
Last active
December 9, 2019 11:16
-
-
Save harshavardhana/791622a250ce80198f150706a8e94551 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: minio-minio1 | |
labels: | |
app: minio-minio1 | |
spec: | |
selector: | |
matchLabels: | |
app: minio-minio1 | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: minio-minio1 | |
spec: | |
containers: | |
- name: minio-minio1 | |
image: minio/minio | |
imagePullPolicy: Always | |
args: | |
- server | |
- /data | |
env: | |
- name: MINIO_ACCESS_KEY | |
value: "TX8mIIOGC12QBMJ45F0Z" | |
- name: MINIO_SECRET_KEY | |
value: "9ule1ga5JMfMmQXCoEPNcM2jij" | |
ports: | |
- containerPort: 9000 | |
--- | |
## Create service of minio fs deployment. | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: minio-minio1 | |
spec: | |
type: NodePort | |
ports: | |
- port: 9000 | |
selector: | |
app: minio-minio1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: minio-minio2 | |
labels: | |
app: minio-minio2 | |
spec: | |
selector: | |
matchLabels: | |
app: minio-minio2 | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: minio-minio2 | |
spec: | |
containers: | |
- name: minio-minio2 | |
image: minio/minio | |
imagePullPolicy: Always | |
args: | |
- server | |
- /data | |
env: | |
- name: MINIO_ACCESS_KEY | |
value: "GX82IIOGC12QBMJ45F0Z" | |
- name: MINIO_SECRET_KEY | |
value: "9ux11ga5JMfMmQXCoEPNcM2jij" | |
ports: | |
- containerPort: 9000 | |
--- | |
## Create service of minio fs deployment. | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: minio-minio2 | |
spec: | |
type: NodePort | |
ports: | |
- port: 9000 | |
selector: | |
app: minio-minio2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: minio-minio3 | |
labels: | |
app: minio-minio3 | |
spec: | |
selector: | |
matchLabels: | |
app: minio-minio3 | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: minio-minio3 | |
spec: | |
containers: | |
- name: minio-minio3 | |
image: minio/minio | |
imagePullPolicy: Always | |
args: | |
- server | |
- /data | |
env: | |
- name: MINIO_ACCESS_KEY | |
value: "HX8KIIOGC12QBMJ45F0Z" | |
- name: MINIO_SECRET_KEY | |
value: "9ux41ga5JMfMmQXCoEPNcM2jij" | |
ports: | |
- containerPort: 9000 | |
--- | |
## Create service of minio fs deployment. | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: minio-minio3 | |
spec: | |
type: NodePort | |
ports: | |
- port: 9000 | |
selector: | |
app: minio-minio3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: radio1 | |
labels: | |
app: radio1 | |
spec: | |
selector: | |
matchLabels: | |
app: radio1 | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: radio1 | |
spec: | |
containers: | |
- name: radio1 | |
image: minio/radio:edge | |
volumeMounts: | |
- name: config | |
mountPath: "/etc/radio/" | |
readOnly: true | |
imagePullPolicy: Always | |
args: | |
- server | |
- -C | |
- "/etc/radio/config.yml" | |
ports: | |
- containerPort: 9000 | |
volumes: | |
- name: config | |
secret: | |
secretName: my-secret | |
--- | |
## Create service of minio fs deployment. | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: radio1 | |
spec: | |
type: NodePort | |
ports: | |
- port: 9000 | |
selector: | |
app: radio1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mirror: | |
- local: | |
bucket: radiobucket1 | |
access_key: Q3AM3UQ867SPQQA43P2F | |
secret_key: zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG | |
remote: | |
- bucket: bucket1 | |
endpoint: http://minio-minio1:9000 | |
access_key: TX8mIIOGC12QBMJ45F0Z | |
secret_key: 9ule1ga5JMfMmQXCoEPNcM2jij | |
- bucket: bucket2 | |
endpoint: http://minio-minio2:9000 | |
access_key: GX82IIOGC12QBMJ45F0Z | |
secret_key: 9ux11ga5JMfMmQXCoEPNcM2jij | |
- bucket: bucket3 | |
endpoint: http://minio-minio3:9000 | |
access_key: HX8KIIOGC12QBMJ45F0Z | |
secret_key: 9ux41ga5JMfMmQXCoEPNcM2jij |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment