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 service should be created as defined in the config.
Actual Behavior
admin@ip-10-10-53-226:~/mobilityware/tf-templates$ terraform plan
8 error(s) occurred:
* kubernetes_service.external-nginx: "spec.0.port.0.target_port": required field is not set
* kubernetes_service.external-nginx: "spec.0.port.1.target_port": required field is not set
* kubernetes_service.external-nginx: "spec.0.port.2.target_port": required field is not set
* kubernetes_service.external-nginx: metadata.0.annotations: "service.beta.kubernetes.io/aws-load-balancer-ssl-cert" is internal Kubernetes annotation
* kubernetes_service.external-nginx: metadata.0.annotations: "service.beta.kubernetes.io/aws-load-balancer-ssl-ports" is internal Kubernetes annotation
* kubernetes_service.internal-nginx: "spec.0.port.0.target_port": required field is not set
* kubernetes_service.internal-nginx: "spec.0.port.1.target_port": required field is not set
* kubernetes_service.internal-nginx: metadata.0.annotations: "service.beta.kubernetes.io/aws-load-balancer-internal" is internal Kubernetes annotation
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
Kubernetes does not require a target_port.
My services work fine when defined in yaml and executed
Note that a Service can map an incoming port to any targetPort. By default the targetPort will be set to the same value as the port field.
Why are the annotations failing?
The text was updated successfully, but these errors were encountered:
shadycuz
changed the title
Service errors when optional param is supplied and fails to set annotation
Service errors when optional param is not supplied and fails to set annotation
Sep 1, 2017
Regarding the annotation issue - it's something we don't support (yet). It is something I plan to look into eventually, but it's non trivial for us to support. See my full explanation at #50 (comment)
Terraform Version
Terraform v0.10.3
Affected Resource(s)
kubernetes_service
Terraform Configuration Files
Expected Behavior
The service should be created as defined in the config.
Actual Behavior
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
Kubernetes does not require a target_port.
My services work fine when defined in yaml and executed
From kubernetes services
Why are the annotations failing?
The text was updated successfully, but these errors were encountered: