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

Log rotation configuration. #3049

Open
prakashbalaji opened this issue May 27, 2024 · 1 comment
Open

Log rotation configuration. #3049

prakashbalaji opened this issue May 27, 2024 · 1 comment

Comments

@prakashbalaji
Copy link

Description

I see 2 options to configure log rotations containerLogMaxSize and containerLogMaxFiles in kubernetes documentation. Could someone clarify what is the rightway to pass these settings to kubelet when we are using eks managed node groups.

Screenshot 2024-05-27 at 7 22 35 PM

If your request is for a new feature, please use the Feature request template.

  • [ * ] ✋ I have searched the open/closed issues and my issue is not listed.

⚠️ Note

Before you submit an issue, please perform the following first:

Versions

20.8.5

  • Terraform version:
    1.8.1
  • Provider version(s):
    registry.terraform.io/hashicorp/aws v5.47.0

Reproduction Code [Required]

eks_managed_node_groups = {        
    complete = {

      name            = "${local.environment}-managed-node-groups"
      use_name_prefix = true

      subnet_ids = local.private_subnet_ids

      min_size     = 1
      max_size     = 8
      desired_size = 2

      ami_id                     = var.eks_image_id
      enable_bootstrap_user_data = true

      pre_bootstrap_user_data = <<-EOT
        echo "${local.environment} eks cluster pre bootstrap user data"
      EOT

      post_bootstrap_user_data = <<-EOT
        echo "${local.environment} eks cluster post bootstrap user data"
      EOT

      capacity_type        = "ON_DEMAND"
      force_update_version = true
      instance_types       = ["m5.large"]
      labels = {
        Environment = local.environment
      }

      taints = [
      ]

      update_config = {
        max_unavailable_percentage = 33 # or set `max_unavailable`
      }

      description = "${var.environment_name} managed node groups launch template"

      ebs_optimized           = true
      disable_api_termination = false
      enable_monitoring       = true

      block_device_mappings = {}

      metadata_options = {
        http_endpoint               = "enabled"
        http_tokens                 = "required"
        http_put_response_hop_limit = 2
        instance_metadata_tags      = "disabled"
      }

      create_iam_role              = true
      iam_role_name                = "${var.environment_name}ManagedNodeGroupRole"
      iam_role_use_name_prefix     = false
      iam_role_description         = "${var.environment_name} managed node group role"
      iam_role_tags                = {}
      iam_role_additional_policies = {}

      launch_template_tags = {}

      tags = var.tags
    }
  }

This is more a question than bug.

Steps to reproduce the behavior:

Question instead of bug

Expected behavior

Actual behavior

Terminal Output Screenshot(s)

Additional context

Copy link

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants