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

add output variables that will be helpful in module use #65

Open
displague opened this issue Jan 19, 2021 · 1 comment
Open

add output variables that will be helpful in module use #65

displague opened this issue Jan 19, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@displague
Copy link
Member

Modules that depend on this module to create a Kubernetes cluster will need access to the resources created by this module.

The current output variable, Kubernetes_Cluster_Info, has no description (and is not included in the README documentation). This makes it hard to identify what this value is and how it can be used.

Some output variables that would be helpful to have (or to have similar variables):

  • kube config file for accessing the cluster (so the kubernetes or helm provider, etc can be used to add features to the cluster)
  • API addresses of the cluster (v4, v6, so that users can use other DNS providers to assign the address to a name)
  • address of worker nodes per each pool (so that additional ssh providers can be used to lock down the workers or install other tools)
@displague displague added this to the v0.2.0 milestone Feb 18, 2021
@displague displague added the enhancement New feature or request label Feb 18, 2021
@displague
Copy link
Member Author

For example, a user consuming this project as a module may wish to further configure the cluster with more Terraform configuration:

module "multiarch-k8s" {
  source  = "equinix/multiarch-k8s/metal"
  version = "0.1.0"

  auth_token = "..."
  project_id = "..."
}

provider "kubernetes" {
  config_path    = "" # PATH to multiarch-k8s k8s config is not include as an output variable
}

resource "kubernetes_namespace" "example" {
  metadata {
    name = "my-first-namespace"
  }
}

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

No branches or pull requests

1 participant