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

[Feature Request] Config Sync Usage Examples #5

Open
oeular opened this issue Jul 30, 2022 · 9 comments
Open

[Feature Request] Config Sync Usage Examples #5

oeular opened this issue Jul 30, 2022 · 9 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@oeular
Copy link

oeular commented Jul 30, 2022

Here is my way to install kpt-config-sync,

Create a directory to store the manifest bundle

mkdir -p <MANIFEST_DIR>

Extract the manifest bundle

tar -xzf <MANIFEST_BUNDLE> -C <MANIFEST_DIR>

Apply the manifests to your cluster

kubectl apply -f <MANIFEST_DIR>

BUT Are There any efficient and easy example to verify the kpt-config-syn ?
I need some tips. Thank you !

@oeular
Copy link
Author

oeular commented Aug 1, 2022

@mortent Hi, would you give me some suggestion ?

@oeular
Copy link
Author

oeular commented Aug 2, 2022

ping @justinsb Hello

@mortent
Copy link
Contributor

mortent commented Aug 2, 2022

@oeular Thanks for trying out Config Sync. We are aware that the documentation is very sparse at the moment and we do plan to improve it.

You can look at https://github.com/janetkuo/csmr-examples for some good examples for using Config Sync. When using the OSS version of Config Sync you can ignore any mention of the ConfigManagement resource and any mentions of the monorepo mode and just go straight to using the RootSync and RepoSync resources: https://github.com/janetkuo/csmr-examples#multi-repo-mode

@oeular
Copy link
Author

oeular commented Aug 3, 2022

@mortent Thanks for your tips. Can the Config Sync work on the alone Kubernetes ? I want to try it on the alone kubernetes.

@janetkuo
Copy link
Contributor

janetkuo commented Aug 4, 2022

@oeular yes Config Sync should work on Kubernetes clusters, including KinD.

@karlkfi
Copy link
Contributor

karlkfi commented Aug 5, 2022

Most of the examples we've invested in so far have been for Anthos Config Management in https://github.com/GoogleCloudPlatform/anthos-config-management-samples, but ACM is a higher level abstraction which includes Policy Controller, Config Sync, and an ACM Operator to manage them. Some of the examples in the samples repo work with CS by itself, but some require the rest of ACM.

I would consider this a feature request for a set of Config Sync specific examples, perhaps in an /examples/ or /demos/ dir in this repo, like we've done for kpt and cli-utils.

@karlkfi karlkfi changed the title [HELP] Are There any examples to verify? [Feature Request] Config Sync Usage Examples Aug 5, 2022
@oeular
Copy link
Author

oeular commented Aug 5, 2022

@janetkuo @karlkfi Thanks.
I need some specific examples on Kubernetes(We don't have ACM or Google Cloud).
Now I have installed Config Sync with https://github.com/GoogleContainerTools/kpt-config-sync/releases/download/launch/deployment-blueprint.tar.gz

Actually, I want to install Config Sync as an addon in Kubevela(https://github.com/kubevela/kubevela) for some component.

@mikebz mikebz added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 9, 2022
@tomasaschan
Copy link
Contributor

(I'm piggy-backing on this existing issue instead of filing a new one; if you'd prefer I can file a separate one.)

Is there any docs or an example somewhere of how to use cluster selectors with the OSS manifests? After running make build-oss and copying the manifests (except for dev.yaml which I suppose should probably not have been there...?) into a folder of my own, it seems I can just apply all of them and deploy Config Sync. However, since the ConfigManagement is now out of the picture, I don't find anywhere how to specify the cluster name that then defines which labels etc that are applicable for cluster selectors in my target repositories. How does that work in the OSS version?

@karlkfi
Copy link
Contributor

karlkfi commented Oct 3, 2022

—cluster-name is configured on the reconciler-manager, which in turn configures it on the reconciler containers with an env var: https://github.com/GoogleContainerTools/kpt-config-sync/blob/main/cmd/reconciler-manager/main.go#L42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants