Skip to content

Commit 9167103

Browse files
author
JENNIFER RONDEAU
committed
respond to review comments on Minio and RBAC
Signed-off-by: JENNIFER RONDEAU <[email protected]>
1 parent 43cb97d commit 9167103

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

docs/get-started.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ NOTE: Make sure to check out the appropriate version. We recommend that you chec
2626

2727
### Set up server
2828

29-
These instructions assume that you are running Minio inside your cluster.
29+
These instructions assume that you are running Minio inside your cluster. They should be used for a test environment or to explore Ark only. Service of type `NodePort` is not recommended for production.
30+
31+
1. In `examples/minio/00-minio-deployment.yaml`, change the value of Service `spec.type` from `ClusterIP` to `NodePort`.
3032

3133
1. Start the local storage service. In the root directory of Ark, run:
3234

@@ -37,13 +39,13 @@ These instructions assume that you are running Minio inside your cluster.
3739

3840
1. Get the Minio URL:
3941

40-
- if you're running Minikube
42+
- if you're running Minikube:
4143
4244
```shell
4345
minikube service minio --namespace=heptio-ark --url
4446
```
4547
46-
- in any other environment
48+
- in any other test environment:
4749
4850
1. Get the value of an external IP address or DNS name of any node in your cluster. You must be able to reach this address from the Ark client.
4951
@@ -53,7 +55,9 @@ These instructions assume that you are running Minio inside your cluster.
5355
kubectl -n heptio-ark get svc/minio -o jsonpath='{.spec.ports[0].nodePort}'
5456
```
5557
56-
1. In `examples/minio/05-ark-backupstoragelocation.yaml`, replace NODE_URL_OR_IP:NODE_PORT with the value of the Minio URL.
58+
1. **For Service type `NodePort` only** In `examples/minio/05-ark-backupstoragelocation.yaml`, replace NODE_URL_OR_IP:NODE_PORT with the value of the Minio URL.
59+
60+
1. If you have set up Ingress or a load balancer, SOMETHINGSOMETHING PR 1006
5761
5862
1. Start the server:
5963

docs/rbac.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
By default Ark runs with an RBAC policy of ClusterRole `cluster-admin`. This is to make sure that Ark can back up or restore anything in your cluster. But `cluster-admin` access is wide open -- it gives Ark components access to everything in your cluster. Depending on your environment and your security needs, you should consider whether to configure more restrictive access.
44

5-
More fine-grained access control should also be part of more fine-grained configuration of [namespace-based backups and restores][4].
6-
7-
**Note:** Roles and RoleBindings are associated with a single namespaces, not with an entire cluster. PersistentVolume backups are associated only with an entire cluster. This means that any backups or restores that use a restrictive Role and RoleBinding pair can manage only the resources that belong to the namespace. PersistentVolumes cannot be backed up with more restrictive RBAC policies.
5+
**Note:** Roles and RoleBindings are associated with a single namespaces, not with an entire cluster. PersistentVolume backups are associated only with an entire cluster. This means that any backups or restores that use a restrictive Role and RoleBinding pair can manage only the resources that belong to the namespace. You do not need a wide open RBAC policy to manage PersistentVolumes, however. You can configure a ClusterRole and ClusterRoleBinding that allow backups and restores only of PersistentVolumes, not of all objects in the cluster.
86

97
For more information about RBAC and access control generally in Kubernetes, see the Kubernetes documentation about [access control][1], [managing service accounts][2], and [RBAC authorization][3].
108

examples/minio/00-minio-deployment.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ metadata:
6363
labels:
6464
component: minio
6565
spec:
66-
type: NodePort
66+
# ClusterIP is recommended for production environments
67+
# change to NodePort if needed per documentation,
68+
# but only you run Minio in a test/trial environment, for example with minikube
69+
type: ClusterIP
6770
ports:
6871
- port: 9000
6972
targetPort: 9000

examples/minio/05-ark-backupstoragelocation.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ spec:
2525
config:
2626
region: minio
2727
s3ForcePathStyle: "true"
28-
# get minio URL per documentation
29-
s3Url: NODE_URL_OR_IP:NODE_PORT
28+
s3Url: http://minio.heptio-ark.svc:9000
29+
# OR get minio URL per documentation (comment out previous line)
30+
# s3Url: NODE_URL_OR_IP:NODE_PORT
3031

3132

0 commit comments

Comments
 (0)