Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples: replace service.beta.kubernetes.io/external-traffic with service.spec.externalTrafficPolicy #1924

Closed
mitjabez opened this issue Jan 18, 2018 · 0 comments · Fixed by #1925

Comments

@mitjabez
Copy link

Kubernetes 1.7+ does not support service.beta.kubernetes.io/external-traffic: OnlyLocal annotation anymore. Instead service.spec.externalTrafficPolicy should be used. static-ip-svc.yaml in the examples should be changed to use the new configuration.

Had a hard time troubleshooting the provided examples, until I came around this piece of documentation:

https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#feature-availability

@aledbf aledbf mentioned this issue Jan 18, 2018
bklang added a commit to bklang/helm-docker-mailserver that referenced this issue May 5, 2020
This makes two changes:
First, it upgrades the syntax to use newer version of the external traffic policy. This is based on testing on my Kubernetes 1.15 cluster, and was discovered from [this reference](kubernetes/ingress-nginx#1924)
Second, it makes the non-load-balancer case switch to Cluster policy, which is necessary to allow the cluster to route NodePort traffic without a Kubernetes load balancer
bklang added a commit to bklang/helm-docker-mailserver that referenced this issue May 6, 2020
This makes two changes:
First, it upgrades the syntax to use newer version of the external traffic policy. This is based on testing on my Kubernetes 1.15 cluster, and was discovered from [this reference](kubernetes/ingress-nginx#1924)
Second, it makes the non-load-balancer case switch to Cluster policy, which is necessary to allow the cluster to route NodePort traffic without a Kubernetes load balancer

Also, fixed tiny whitespace nit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant