how to configure clusterDomain - cniackz/public GitHub Wiki

Objective:

To configure clusterDomain

Steps:

  1. Download helm chart for Operator from https://github.com/minio/operator/tree/master/helm-releases, example: operator-4.5.8.tgz

  2. Untar file above and Create cluster with kind

  • Example, from operator-4.5.8.tgz to operator folder
  1. Add the environment variable CLUSTER_DOMAIN in file ~/operator/values.yaml by uncommenting it and setting your value:
# Default values for minio-operator.

operator:
  ## Setup environment variables for the Operator
  env:
  #   - name: MINIO_OPERATOR_TLS_ENABLE
  #     value: "off"
  #   - name: MINIO_CONSOLE_TLS_ENABLE
  #     value: "off"
     - name: CLUSTER_DOMAIN
       value: "some-value.net"
  #   - name: WATCHED_NAMESPACE
  #     value: ""
  1. Deploy Operator from where operator folder was downloaded and modified:
cd ~
helm install \
     --namespace minio-operator \
     --create-namespace \
     minio-operator ./operator
  1. Notice how deployment get the value:
    spec:
      containers:
        - name: operator
          image: minio/operator:v4.5.8
          env:
            - name: CLUSTER_DOMAIN
              value: some-value.net
  1. That way operator-tls certificate will be created accordingly:
SAN:
operator, operator.minio-operator.svc, operator.minio-operator.svc.some-value.net, minio-operator-service.minio-operator.svc
  • Notice operator.minio-operator.svc.some-value.net was assigned in the SAN