Commit a37731c4 authored by Kevin Di Lallo's avatar Kevin Di Lallo
Browse files

minio configuration via secret

parent dcccd760
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -97,14 +97,14 @@ repo:
      prometheus:
        # external labels added to prometheus metrics
        external-labels:
          # geographic region where
          region: my-city
          # deployment region (geographic or logical)
          region: idcc
          # function being monitored
          monitor: platform
          monitor: advantedge
          # prometheus environment (dev|prod)
          promenv: prod
          # unique deployment identifier
          replica: my-platform-fqdn
          replica: platform-ip
      # Thanos long-term storage
      thanos:
        # enable Thanos
+3 −3
Original line number Diff line number Diff line
@@ -67,8 +67,8 @@ priorityClassName: ""
## AccessKey and secretKey is generated when not set
## Distributed Minio ref: https://docs.minio.io/docs/distributed-minio-quickstart-guide
##
accessKey: "admin"
secretKey: "password"
accessKey: ""
secretKey: ""
certsPath: "/etc/minio/certs/"
configPathmc: "/etc/minio/mc/"
mountPath: "/export"
@@ -88,7 +88,7 @@ mountPath: "/export"
## All mentioned variables will be ignored in values file.
## .data.accesskey and .data.secretkey are mandatory,
## others depend on enabled status of corresponding sections.
existingSecret: ""
existingSecret: "meep-minio-objstore-config"

## Override the root directory which the minio server should serve from.
## If left empty, it defaults to the value of {{ .Values.mountPath }}
+28 −0
Original line number Diff line number Diff line
#!/bin/bash

# Get full path to script directory
SCRIPT=$(readlink -f "$0")
BASEDIR=$(dirname "$SCRIPT")

echo ""
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo ">> Removing old secrets"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo ""
kubectl delete secret meep-thanos-objstore-config
kubectl delete secret meep-thanos-archive-objstore-config

echo ""
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo ">> Configuring Object Store secrets"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo ""
kubectl create secret generic meep-thanos-objstore-config --from-file=objstore.yml=$BASEDIR/thanos.yaml
kubectl create secret generic meep-thanos-archive-objstore-config --from-file=objstore.yml=$BASEDIR/thanos-archive.yaml

echo ""
echo ">>> Object Store configuration completed"



+4 −0
Original line number Diff line number Diff line
@@ -8,3 +8,7 @@ meep-oauth-github:
meep-oauth-gitlab:
  client-id: "my-gitlab-client-id"
  secret: "my-gitlab-secret"

meep-minio-objstore-config:
  accessKey: "my-access-key"
  secretkey: "my-secret-key"
 No newline at end of file
Loading