Run a PowerShell script on Azure AKS nodes

Occasional Visitor

I have a PowerShell script that I want to run on some Azure AKS nodes, running windows, to deploy a security tool. There is no Daemonset for this by the software vendor, but instead it is a powershell script. How would I deploy it on these cluster nodes ?

Thanks a million 

 

Del

1 Reply
Hey,

although there could be ways to do this, i would recommend that you dont. The reason is that your AKS setup should not allow execute scripts inside container directly on AKS nodes. This would imply a huge security issue IMO.

I suggest to find a way the execute your script directly on your nodes, for example with PowerShell remoting or any way that suits you.

BR,
Philip