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

Allow more Service options #7

Open
pulberg opened this issue Feb 2, 2018 · 0 comments
Open

Allow more Service options #7

pulberg opened this issue Feb 2, 2018 · 0 comments

Comments

@pulberg
Copy link

pulberg commented Feb 2, 2018

It would be nice to allow Services to be external without using an Ingress. k8s Services can be configured as a "LoadBalancer", which then creates an external end-point. The current service is configured as "ClusterIP"

"spec": {
    "ports": [
      {
        "protocol": "TCP",
        "port": 7748,
        "targetPort": 80
      }
    ],
    "selector": {
      "app": "test27"
    },
    "clusterIP": "10.43.33.170",
    "type": "ClusterIP",
    "sessionAffinity": "None"
  }

By changing the "type" to "LoadBalancer" you get an external end-point -

"spec": {
    "ports": [
      {
        "protocol": "TCP",
        "port": 7748,
        "targetPort": 80,
        "nodePort": 31813
      }
    ],
    "selector": {
      "app": "test27"
    },
    "clusterIP": "10.43.33.170",
    "type": "LoadBalancer",
    "sessionAffinity": "None",
    "externalTrafficPolicy": "Cluster"
  }
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

No branches or pull requests

1 participant