Skip to content

Commit 98b4d9e

Browse files
committed
add dns_zone field
1 parent 2a9919f commit 98b4d9e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

pages/how-to/deploy/microservice.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,43 @@ spec:
7979
The `clusterRef` field on a service deployment is immutable. If you happen to chose the wrong one, it's not a big deal, but you'll need to delete that ServiceDeployment CRD manually then let the underlying service recreate it from scratch. This can be done in the Plural Kubernetes dashboard UI easily.
8080
{% /callout %}
8181

82+
You will also need to add the `dns_zone` field to the `plural cluster metadata` in `plural.tf`. Set the `dns_zone = "dev.plural.sh"`.
83+
84+
```yaml
85+
resource "plural_cluster" "this" {
86+
handle = var.cluster
87+
name = var.cluster
88+
tags = {
89+
fleet = var.fleet
90+
tier = var.tier
91+
role = "workload"
92+
}
93+
94+
metadata = jsonencode({
95+
iam = {
96+
load_balancer = module.addons.gitops_metadata.aws_load_balancer_controller_iam_role_arn
97+
cluster_autoscaler = module.addons.gitops_metadata.cluster_autoscaler_iam_role_arn
98+
external_dns = module.externaldns_irsa_role.iam_role_arn
99+
}
100+
dns_zone = "dev.plural.sh" # <- make sure to add this field
101+
})
102+
103+
kubeconfig = {
104+
host = module.eks.cluster_endpoint
105+
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
106+
token = data.aws_eks_cluster_auth.cluster.token
107+
}
108+
109+
depends_on = [
110+
module.vpc,
111+
module.addons,
112+
module.ebs_csi_irsa_role,
113+
module.vpc_cni_irsa_role,
114+
module.externaldns_irsa_role
115+
]
116+
}
117+
```
118+
82119
## Push to Deploy
83120

84121
We registered all these manifests under the root `bootstrap` folder a `plural up`-derived management cluster listens to by default, so all you should need to do is either:

0 commit comments

Comments
 (0)