Kubernetes Terraform resources

The resources and data sources of the ews provider for Kubernetes. Setting up the provider: Terraform & OpenTofu.

Resources

  • dcloud_eks_access_entryLets an IAM user, group or role into a Kubernetes cluster as a Kubernetes user and groups. What it may do there comes from dcloud_eks_access_policy_association (or from RBAC bound to its groups). Import with <cluster_id>/<entry_id>.
  • dcloud_eks_access_policy_associationGrants an access entry one of the cluster's access policies, cluster-wide or in namespaces. ClusterAdmin is always cluster-wide. Its id is <cluster_id>/<access_entry_id>/<policy>.
  • dcloud_eks_addonA managed add-on on a cluster: metrics-server, traefik, cert-manager or external-dns, at a version from addon-versions with its typed options in config. Its id is its name. Changing version or config updates it in place; upgrades are never automatic. The DNS add-ons need dns:ChangeRecords on the zones they list. Deleting it keeps its CRDs.
  • dcloud_eks_clusterA Kubernetes cluster whose control plane Deutsche Cloud runs. Add nodes with dcloud_eks_nodegroup. Deleting it also deletes its Service load balancers; it can be restored for 7 days (its PersistentVolumes are kept until then), unless delete_permanently is set.
  • dcloud_eks_nodegroupA node group: compute instances of one server type that join a cluster. Its id is its name. With autoscaling = true the cluster autoscaler changes desired_size: add lifecycle { ignore_changes = [desired_size] } so an apply does not undo it.
  • dcloud_eks_pod_identity_associationLets the pods of one service account act as an IAM role (S3 through any AWS SDK, no stored keys). Needs iam:PassRole on the role.

Data sources

Generated from the provider's schema.