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

Select between daemonset and deployment #16

Open
jnummelin opened this issue May 13, 2019 · 0 comments
Open

Select between daemonset and deployment #16

jnummelin opened this issue May 13, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jnummelin
Copy link
Contributor

Using a DaemonSet for LB pods means that a given port can be mapped only in single service per cluster. Then again, a daemonset gives maximum availability. When there's lot of nodes in the cluster a daemonset also results in huge list of external addresses in the service status.

It would be nice to allow the user to select between a deployment and daemonset. The only viable way to configure such things is via annotations on the service. I'd propose the following way:

apiVersion: v1
kind: Service
metadata:
  name: echoserver
  annotations:
    akrobateo.kontena.io/type: deployment # or daemonset
spec:
  type: LoadBalancer
  ports:
  - name: echo
    port: 8080
    targetPort: 8080
    protocol: TCP
  selector:
    app: echoserver

@jnummelin jnummelin added the enhancement New feature or request label May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant