Comments (6)
I see your point, I also agree the immediate solution is to keep the name_prefix
and workspace
short. Instead of shortening staging -> stg
, you can shorten or remove kubestack -> kbst
.
The metadata module includes region as part of the cluster name to ensure multi-region. I see two options:
- have a parameter that disables including the region and then leaves it to users to use the
name_prefix
to avoid name collisions. - have a parameter to define the entire
cluster_name
and ignore thename_prefix
,workspace
andregion
default
This is from the top of my head, if it really works will need some more thought and thorough testing. For reference, this is where the "magic" happens: https://github.com/kbst/terraform-kubestack/blob/master/common/metadata/main.tf
from terraform-kubestack.
Maybe an idea here could be to have a name_short
that could be used when specifying a configuration that would be used instead of the metadata.name
That way it could be reusable throughout the module
from terraform-kubestack.
If the issue is only with the service account (I don't know if it is), it would be an option to have the name not just be the cluster name but be, e.g. something with a 7 char hash of the cluster name as a suffix to make it unique.
from terraform-kubestack.
I believe this issue is only on the service account as I did not experience it anywhere else. Would you like me to open a PR?
from terraform-kubestack.
Sure, in that case trying something to keep the SA name below the limit is worth a try. We need to be mindful about the upgrade path for existing clusters though.
from terraform-kubestack.
0.13's new custom validation could also be an option here: https://www.terraform.io/docs/configuration/variables.html#custom-validation-rules
from terraform-kubestack.
Related Issues (20)
- GKE: Allow disabeling Nat Gateways Endpoint Independent mapping
- EKS: Allow setting enable_dns_hostnames for AWS VPCs
- EKS: EC2 volume type HOT 3
- AKS: end_date_relative error on latest azuread terraform module
- GKE: Egress IP Changes on cluster recreate HOT 5
- AKS: disable log analytics HOT 2
- Error using latest azuread provider HOT 4
- GKE: Investigate activating APIs in new accounts
- Deploying clusters into existing environment HOT 3
- azure aks default node pool availability_zones HOT 2
- GKE: Enable cluster Load Balacing - Can't use Container Native Load Balancer in GKE HOT 1
- Bare metal support? HOT 3
- enable private cluster on aks
- How can I set node kernel params on aks? (or any cloud) HOT 1
- EKS: Support labels and tags for default worker nodes HOT 1
- Any plans to support OCI (Oracle Cloud Infrastructure) / OKE (Oracle Kubernetes Engine)? HOT 2
- Cert-Manager Module: Wait for Resources HOT 1
- Deprecation message when running fresh quick-start with EKS
- Add support for kustomize replacements when creating custom-manifest HOT 5
- EKS: Support metadata IMDSv2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-kubestack.