suxess-it / sx-cnp-oss

1 stars 0 forks source link

[pipeline] deploy on metalstack in GitHub action with terraform #149

Open jkleinlercher opened 1 month ago

jkleinlercher commented 1 month ago

https://github.com/metal-stack-cloud/terraform-provider-metal

https://registry.terraform.io/providers/metal-stack-cloud/metal/latest/docs

jkleinlercher commented 3 weeks ago

Authentication:

api key in https://docs.github.com/de/actions/security-guides/using-secrets-in-github-actions

or better

https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect

jkleinlercher commented 3 weeks ago

Github action https://github.com/marketplace/actions/hashicorp-setup-terraform

jkleinlercher commented 3 weeks ago

And how to create a metalstack cluster with terraform see https://github.com/suxess-it/sx-cnp-oss/tree/main/metalstack-resources/tf-project

jkleinlercher commented 3 weeks ago

Get kubeconfig: https://registry.terraform.io/providers/metal-stack-cloud/metal/latest/docs/data-sources/kubeconfig