Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support envs #29

Merged
merged 1 commit into from
Jun 18, 2021
Merged

support envs #29

merged 1 commit into from
Jun 18, 2021

Conversation

veezhang
Copy link
Contributor

@veezhang veezhang commented Jun 18, 2021

  • nebula operator
  • nebula cluster
  • support kubernetesClusterDomain

@CLAassistant
Copy link

CLAassistant commented Jun 18, 2021

CLA assistant check
All committers have signed the CLA.

@veezhang veezhang added type/feature req Type: feature request ready-for-testing Progress: ready for the CI test labels Jun 18, 2021
@veezhang
Copy link
Contributor Author

veezhang commented Jun 18, 2021

Create an custom cluster domain kubernetes via kind.

kind create cluster --name domain --config kind-config.yaml

The kind-config.yaml file:

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
kubeadmConfigPatches:
  - |-
    kind: ClusterConfiguration
    networking:
      dnsDomain: "domian.my"
nodes:
  - role: control-plane
  - role: worker
  - role: worker
  - role: worker

Create operator and nebula cluster

helm install nebula-operator ./charts/nebula-operator \
  --namespace nebula-operator-system --create-namespace \
  --set 'image.nebulaOperator.image'=<your_image>\
  --set 'image.nebulaOperator.imagePullPolicy'=Always \
  --set 'kubernetesClusterDomain'=domian.my \
  --set 'controllerManager.env[0].name'=TestEnv1 \
  --set 'controllerManager.env[0].value'=t1 \
  --set 'scheduler.env[0].name'=TestEnv2 \
  --set 'scheduler.env[0].value'=t2

helm install nebula ./charts/nebula-cluster --namespace=default \
  --set 'nameOverride'='nebula' \
  --set 'nebula.storageClassName'=<your_storageclass> \
  --set 'nebula.graphd.env[0].name'=TTT \
  --set 'nebula.graphd.env[0].value'=t3 \
  --set 'nebula.metad.env[0].name'=TTTT \
  --set 'nebula.metad.env[0].value'=t4 \
  --set 'nebula.storaged.env[0].name'=TTTTT \
  --set 'nebula.storaged.env[0].value'=t5

Copy link
Contributor

@MegaByte875 MegaByte875 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MegaByte875 MegaByte875 merged commit 592771a into vesoft-inc:master Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing Progress: ready for the CI test type/feature req Type: feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants