-
Notifications
You must be signed in to change notification settings - Fork 0
Modify tenant environment variables
Allan Roger Reid edited this page Aug 2, 2024
·
1 revision
Get current values in secret storage-configuration
kubectl -n ns-1 get secrets storage-configuration -o json | jq .data.\"config.env\" | tr -d '"' | base64 -d
export MINIO_ROOT_USER="minio"
export MINIO_ROOT_PASSWORD="minio123"
export MINIO_STORAGE_CLASS_STANDARD="EC:2"
export MINIO_BROWSER="on"%
Create a new base64-encoded secret
echo 'export MINIO_ROOT_USER="operator"
export MINIO_ROOT_PASSWORD="operator123"
export MINIO_STORAGE_CLASS_STANDARD="EC:2"
export MINIO_BROWSER="on"
export MINIO_LICENSE="eyJhbGc..."' | base64
Create script for new secret
cat << EOF > storage-configuration.yml
apiVersion: v1
data:
config.env: ZXhwb3J0IE1JTklPX1JPT1R...
kind: Secret
metadata:
name: storage-configuration
namespace: ns-1
type: Opaque
EOF
Apply the new secret
kubectl apply -f storage-configuration.yml