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

Add fluentd examples #194

Merged
merged 3 commits into from
Feb 10, 2022
Merged

Conversation

zhu733756
Copy link
Member

Signed-off-by: zhu733756 zhu733756@kubesphere.io

Points:

  • convert deployment to sts
  • add fluentd examples

This pr needs to be merged before #192

Signed-off-by: zhu733756 <zhu733756@kubesphere.io>
Signed-off-by: zhu733756 <zhu733756@kubesphere.io>
@@ -163,7 +169,24 @@ func (b *Buffer) Params(_ plugins.SecretLoader) (*params.PluginStore, error) {
}

if b.Path != nil {
ps.InsertPairs("path", *b.Path)
if strings.HasPrefix(*b.Path, "/buffers") {
Copy link
Member Author

Choose a reason for hiding this comment

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

Buffer PVC mounts with /buffers.

@zhu733756 zhu733756 force-pushed the add-fluentd-examples branch 2 times, most recently from f533a64 to fdd6de8 Compare February 10, 2022 07:16
@@ -197,7 +197,7 @@ func (r *FluentdReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
For(&fluentdv1alpha1.Fluentd{}).
Owns(&corev1.ServiceAccount{}).
Owns(&appsv1.Deployment{}).
Owns(&appsv1.StatefulSet{}).
Owns(&corev1.Service{}).
Owns(&corev1.PersistentVolumeClaim{}).
Copy link
Member

Choose a reason for hiding this comment

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

no need to owns PersistentVolumeClaim now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Signed-off-by: zhu733756 <zhu733756@kubesphere.io>
@benjaminhuo benjaminhuo merged commit 5aca56f into fluent:master Feb 10, 2022
@@ -34,6 +34,8 @@ type FluentdSpec struct {
DisableService bool `json:"disableService,omitempty"`
// Numbers of the Fluentd instance
Replicas *int32 `json:"replicas,omitempty"`
// Numbers of the workers in Fluentd instance
Workers *int32 `json:"workers,omitempty"`
Copy link
Member Author

@zhu733756 zhu733756 Feb 10, 2022

Choose a reason for hiding this comment

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

Support multi workers in a single pod.

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

Successfully merging this pull request may close these issues.

None yet

2 participants