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

[AVM Question/Feedback]: Private cluster example with bastion #117

Open
1 task done
kubebn opened this issue Sep 28, 2024 · 5 comments · May be fixed by #129
Open
1 task done

[AVM Question/Feedback]: Private cluster example with bastion #117

kubebn opened this issue Sep 28, 2024 · 5 comments · May be fixed by #129
Labels
Language: Terraform 🌐 This is related to the Terraform IaC language Type: Question/Feedback 🙋 Further information is requested or just some feedback

Comments

@kubebn
Copy link

kubebn commented Sep 28, 2024

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Description

Hello,

It would be helpful to have an example of a private cluster with a bastion host in the “examples” subfolder. This would serve as a starting point for those unfamiliar with the Azure/AKS ecosystem. If we look at AWS/GKE modules, they provide examples of how this can be managed via Terraform. Thank you.

@kubebn kubebn added Language: Terraform 🌐 This is related to the Terraform IaC language Needs: Triage 🔍 Maintainers need to triage still Type: Question/Feedback 🙋 Further information is requested or just some feedback labels Sep 28, 2024
@zioproto
Copy link
Collaborator

Hello @kubebn
why would you need the Bastion host ?
Are you familiar with "Access a private AKS cluster using the command invoke or Run command feature" ?https://learn.microsoft.com/en-us/azure/aks/access-private-cluster?tabs=azure-cli

@kubebn
Copy link
Author

kubebn commented Sep 29, 2024

Hi @zioproto,

Yes, I am aware of this and have also tried it. However, we noticed that it’s not very practical from the operators’ perspective. Firstly, it takes longer to apply those commands because they create additional pods inside the cluster in order to invoke them. Secondly, cluster administrators prefer to use their own tools to debug and manage clusters when needed, such as k9s, istioctl for mesh debugging, fluxcd, etc. Thirdly, from an automation and security policy perspective, in some cases, we would not be able to have the az cli installed on the agents.

If you believe that the az command better suits those needs, that’s fine. Nevertheless, if you could share documentation, information, or a Terraform example showing how a private cluster can be used with a bastion, it would be greatly appreciated.

@zioproto
Copy link
Collaborator

zioproto commented Oct 1, 2024

Thanks for sharing more context.

While we look into the best way of providing guidance for Bastion in this repository, I would point you to this Azure Sample:
https://github.com/Azure-Samples/private-aks-cluster-terraform-devops

Would the information provided in that Azure Sample help with Bastion ?

Warning

Tagging the AVM Core Team (@Azure/avm-core-team-technical-terraform) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.

Tip

  • To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to.
  • To avoid this rule being (re)triggered, the ""Needs: Triage 🔍" label must be removed as part of the triage process (when the issue is first responded to)!

@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: Response Overdue 🚩 When an issue/PR has not been responded to for X amount of days label Oct 4, 2024
@nellyk nellyk removed Needs: Triage 🔍 Maintainers need to triage still Status: Response Overdue 🚩 When an issue/PR has not been responded to for X amount of days labels Oct 4, 2024
@nellyk nellyk linked a pull request Oct 7, 2024 that will close this issue
@nellyk
Copy link
Member

nellyk commented Oct 7, 2024

@kubebn have a look at this example that created #129 it uses azure bastion. You'll still need to create a vm to connect to run the commands which i haven't created in the terraform file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language: Terraform 🌐 This is related to the Terraform IaC language Type: Question/Feedback 🙋 Further information is requested or just some feedback
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants