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

Show current status of daemonset in karmor install #443

Open
daemon1024 opened this issue Jun 20, 2024 · 3 comments · May be fixed by #450
Open

Show current status of daemonset in karmor install #443

daemon1024 opened this issue Jun 20, 2024 · 3 comments · May be fixed by #450
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@daemon1024
Copy link
Member

When we execute karmor install
It install our helm chart followed up by waiting for KubeArmor to start to verify whether enforcement works or not.

Ideal case this is the behaviour

$ karmor install
🛡	Installed helm release : kubearmor-operator
😄	KubeArmorConfig created
⌚️	This may take a couple of minutes                     
🥳	KubeArmor Snitch Deployed!             
🥳	KubeArmor Daemonset Deployed!             
🥳	Done Checking , ALL Services are running!             
⌚️	Execution Time : 30.608023946s 

🔧	Verifying KubeArmor functionality (this may take upto a minute) /.
        Cluster is Armored Up!

But in some cases, the daemonset creation can get stuck, it may be due to less node resources or incorrect volume mounts

$ karmor install
🛡	Installed helm release : kubearmor-operator
😄	KubeArmorConfig updated
⌚️	This may take a couple of minutes                     
🥳	KubeArmor Snitch Deployed!             
ℹ️	Waiting for Daemonset to start: —          

In that case the CLI forever keeps waiting to start. We should show the current status of Pods when we are waiting for the daemonset to start
Like
Pending
Init
PodInitialising
Running

And similarly show events as well in case there are any error events.

@daemon1024 daemon1024 added enhancement New feature or request help wanted Extra attention is needed labels Jun 20, 2024
@ayushrakesh
Copy link

Hey @daemon1024 I would like to work on this. Please assign this to me.

@ayushrakesh
Copy link

@daemon1024 I want to ask that should I configure the .kube/conf file to run this or any kubernetes related project?

@Manik2708
Copy link
Contributor

Manik2708 commented Jul 23, 2024

@daemon1024 Can you tell me in what cases it is getting stuck? Also should we display the status every time or only when it is stuck?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants