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

How to recreate xpack.fleet.agentPolicies ? #7135

Closed
azhurbilo opened this issue Aug 30, 2023 · 1 comment
Closed

How to recreate xpack.fleet.agentPolicies ? #7135

azhurbilo opened this issue Aug 30, 2023 · 1 comment
Labels
>bug Something isn't working

Comments

@azhurbilo
Copy link

Proposal

Use case. Why is this important?

I have to recreate agentPolicies with new "namespace" as new value of namespace was applied in k8s but in kibana UI I see still old value and I didn't find how to do it.

Bug Report

What did you do?

apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
spec:
  ...
    xpack.fleet.agentPolicies
      - name: Fleet Server on ECK policy
         id: eck-fleet-server

After manual deletion of policies and restart of fleet/kibana pods, nothing happened -> policies were not recreated

What did you expect to see?

policies automatically recreated (synced) based on current kibana config

What did you see instead? Under which circumstances?

policies were not recreated.

as workaround I change policy ID in Kibana and Agent k8s resources and after apply it helps to generate new tokens with new policies

- name: Fleet Server on ECK policy
   id: eck-fleet-server ---> changed to "eck-fleet-server-policy"

Environment

  • ECK version:

    2.9.0

  • Kubernetes information:

    • Cloud: GKE
@botelastic botelastic bot added the triage label Aug 30, 2023
@pebrc pebrc added the >bug Something isn't working label Dec 31, 2024
@botelastic botelastic bot removed the triage label Dec 31, 2024
@pebrc
Copy link
Collaborator

pebrc commented Dec 31, 2024

Did you have is_managed: true set on the policy?

#8125 added this recently to our example manifests as we realised that policies that are not marked as managed are otherwise not updated.

I am closing this as a duplicate of #7290 (please reopen if your case is different)

@pebrc pebrc closed this as completed Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants