Skip to content

Commit

Permalink
Remove fixed namespace from install
Browse files Browse the repository at this point in the history
  • Loading branch information
dvaldivia committed May 18, 2020
1 parent acad2ca commit 67a1c4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,25 @@ MinIO-Operator brings native MinIO, [MCS](https://github.com/minio/mcs), [KES](h

To start MinIO-Operator, use the `minio-operator.yaml` file.

```
kubectl create -f https://raw.githubusercontent.com/minio/minio-operator/master/minio-operator.yaml
```bash
kubectl apply -f https://raw.githubusercontent.com/minio/minio-operator/master/minio-operator.yaml
```

This will create all relevant resources required for the Operator to work.

You could install the MinIO Operator a custom namespace by passing the `-n` flag

```bash
kubectl create namespace minio-operator-ns
kubectl apply -n minio-operator-ns -f https://raw.githubusercontent.com/minio/minio-operator/master/minio-operator.yaml
```

### Create a MinIO instance

Once MinIO-Operator deployment is running, you can create MinIO instances using the below command

```
kubectl create -f https://raw.githubusercontent.com/minio/minio-operator/master/examples/minioinstance.yaml
kubectl apply -f https://raw.githubusercontent.com/minio/minio-operator/master/examples/minioinstance.yaml
```

### Expand a MinIO cluster
Expand Down
9 changes: 0 additions & 9 deletions minio-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
apiVersion: v1
kind: Namespace
metadata:
name: minio-operator-ns
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
Expand Down Expand Up @@ -138,27 +133,23 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: minio-operator-sa
namespace: minio-operator-ns
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: minio-operator-binding
namespace: minio-operator-ns
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: minio-operator-role
subjects:
- kind: ServiceAccount
name: minio-operator-sa
namespace: minio-operator-ns
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: minio-operator
namespace: minio-operator-ns
spec:
replicas: 1
selector:
Expand Down

0 comments on commit 67a1c4f

Please sign in to comment.