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

Deploy nebula operator with ArgoCD #146

Closed
robcinko opened this issue Aug 23, 2022 · 8 comments
Closed

Deploy nebula operator with ArgoCD #146

robcinko opened this issue Aug 23, 2022 · 8 comments

Comments

@robcinko
Copy link

Hi,

we want to deploy nebula operator with CD tool ArgoCD, but we have a problem with specify k8s namespace. In values.yaml file we cant define namespace. Do you have any suggestions how to solve this problem ?

Thank you

@wey-gu
Copy link
Contributor

wey-gu commented Aug 23, 2022

@MegaByte875 could you plz help advise on this?

@robcinko
Copy link
Author

Maybe it can be solved by edit {{ .Values.namespace | default .Release.Namespace }} in _helpers.tpl file.

@wey-gu
Copy link
Contributor

wey-gu commented Aug 24, 2022

Did you try changing the metadata.namespace from its CRD as follow?

apiVersion: apps.nebula-graph.io/v1alpha1
kind: NebulaCluster
metadata:
  name: nebula
  namespace: default # <-----------
spec:
  graphd:

@robcinko
Copy link
Author

Yes, but this what you send is for nebula-cluster for which we can set namespace.
We have a problem with nebula-operator because the only way how to deploy operator is with Helm. This Helm chart is imported into ArgoCD tool and only changes we can do are in values.yaml file, but in this file namespace is not templated :(

@wey-gu
Copy link
Contributor

wey-gu commented Aug 24, 2022

If I understood it correctly, you need the nebula-operator(control plan of nebulacluster, the operator itself) to be running on any namespace other than the default nebula-operator-system, right?

If that is the case, the equivalent call of --namespace in helm CLI in ArgoCD will do the job.

$ helm install nebula-operator nebula-operator/nebula-operator --namespace=nebula-operator-system --version=${chart_version}

ref:

@MegaByte875
Copy link
Contributor

MegaByte875 commented Aug 24, 2022

@robcinko The yaml below is argocd applicaton, the field 'namespace' is specified for deploy the chart

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: sealed-secrets
  namespace: argocd
spec:
  project: default
  source:
    chart: sealed-secrets
    repoURL: https://bitnami-labs.github.io/sealed-secrets
    targetRevision: 1.16.1
    helm:
      releaseName: sealed-secrets
  destination:
    server: "https://kubernetes.default.svc"
    namespace: kubeseal

@robcinko
Copy link
Author

Thank you @wey-gu @MegaByte875 I'm going to try it :)

@MegaByte875
Copy link
Contributor

I will close the issue, please re-open it if you have other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants