how to configure clusterDomain - cniackz/public GitHub Wiki
Objective:
To configure clusterDomain
Steps:
-
Download helm chart for Operator from https://github.com/minio/operator/tree/master/helm-releases, example: operator-4.5.8.tgz
-
Untar file above and Create cluster with kind
- Example, from
operator-4.5.8.tgz
tooperator
folder
- 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: ""
- Deploy Operator from where
operator
folder was downloaded and modified:
cd ~
helm install \
--namespace minio-operator \
--create-namespace \
minio-operator ./operator
- Notice how deployment get the value:
spec:
containers:
- name: operator
image: minio/operator:v4.5.8
env:
- name: CLUSTER_DOMAIN
value: some-value.net
- 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 theSAN