Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Set KUBECONFIG in systemd services #234

Merged
merged 2 commits into from
Jul 23, 2021
Merged

Set KUBECONFIG in systemd services #234

merged 2 commits into from
Jul 23, 2021

Conversation

siegfriedweber
Copy link
Member

@siegfriedweber siegfriedweber commented Jul 23, 2021

Fixes #231

Description

The environment variable KUBECONFIG is set in the systemd services. It contains the path to the kubeconfig file which is also used by the Stackable agent.

It is not checked if the service has the permission to access the kubeconfig file and the according certificate and key files.

This feature is not documented because it is not a final solution and should only be used as a workaround.

Review Checklist

  • Code contains useful comments
  • (Integration-)Test cases added (or not applicable)
  • Documentation added (or not applicable)
  • Changelog updated (or not applicable)

The environment variable KUBECONFIG is set in the systemd services. It
contains the path to the kubeconfig file which is also used by the
Stackable agent.
Copy link
Member

@maltesander maltesander left a comment

Choose a reason for hiding this comment

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

LGTM.

@siegfriedweber siegfriedweber merged commit 0b26c65 into main Jul 23, 2021
@siegfriedweber siegfriedweber deleted the export_kubeconfig branch July 23, 2021 11:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export kubeconfig as environment variable to pods
2 participants