Skip to content

sts testing

Cesar Celis Hernandez edited this page Apr 15, 2024 · 12 revisions

https://github.com/minio/operator/tree/master/examples/kustomization/sts-example

createcluster
installoperator
kubectl -n minio-operator set env deployment/minio-operator OPERATOR_STS_ENABLED=on
kustomize build github.com/minio/operator/examples/kustomization/sts-example/tenant > tenant.yaml
kubectl apply -f tenant.yaml
kustomize build github.com/minio/operator/examples/kustomization/sts-example/sample-data > data.yaml
kubectl apply -f data.yaml
apiVersion: sts.min.io/v1alpha1
kind: PolicyBinding
metadata:
  name: binding-1
  namespace: minio-tenant-1
spec:
  application:
    namespace: sts-client
    serviceaccount: stsclient-sa
  policies:
    - test-bucket-rw
kustomize build github.com/minio/operator/examples/kustomization/sts-example/sample-clients/minio-sdk/python > python.yaml
kubectl apply -f python.yaml
Bucket created successfully `myminio/test-bucket`.
Bucket created successfully `myminio/other-bucket`.
Created policy `test-bucket-rw` successfully.
Clone this wiki locally