You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The affinity rules declared in a terraform kubernetes_deployment are not propagated to the kubernetes deployment object.
After running terraform apply using the example, the deployment gets stuck in waiting for the deployment to start the pod, because it is scheduled on an incompatible node (K8S cluster with mixed windows and linux nodes).
After inspecting the deployed deployment in kubernetes:
kubectl get deployment traefik-deployment -o json
I can see that the affinity rules have not been propagated to the kubernetes deployment configuration.
I can confirm that generating a kubernetes JSON for en equivalent deployment and applying directly using kubernetes does work:
Description
The affinity rules declared in a terraform kubernetes_deployment are not propagated to the kubernetes deployment object.
After running terraform apply using the example, the deployment gets stuck in waiting for the deployment to start the pod, because it is scheduled on an incompatible node (K8S cluster with mixed windows and linux nodes).
After inspecting the deployed deployment in kubernetes:
I can see that the affinity rules have not been propagated to the kubernetes deployment configuration.
I can confirm that generating a kubernetes JSON for en equivalent deployment and applying directly using kubernetes does work:
Running Terraform 1.6.6 and kubectl
Kubectl version:
Client Version: v1.29.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.3
Potential Terraform Configuration
References
Community Note
The text was updated successfully, but these errors were encountered: