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

Unpassender Service für Serving-Layer #1

Closed
hey-nicolasklein opened this issue Jan 4, 2021 · 0 comments
Closed

Unpassender Service für Serving-Layer #1

hey-nicolasklein opened this issue Jan 4, 2021 · 0 comments
Assignees
Labels
invalid This doesn't seem right question Further information is requested

Comments

@hey-nicolasklein
Copy link
Contributor

Serving Layer sollte den Standard Service ClusterIP (und nicht LoadBalancer) nutzen. LoadBalancer ist für externe Services, die von außerhalb des Clusters angesprochen werden. Wenn kein spezial Type genannt wird, ists automatisch Cluster-IP. Auch Cluster-IP routet den Traffic zu den verschiedenen Instanzen.

Änderung im Deployment des serving-layer wäre :

[ ... ]
---
apiVersion: v1
kind: Service
metadata:
  name: service-serving-layer-service
spec:
  selector:
    app: service-serving-layer
  ports:
    - protocol: TCP
      port: 8081
      targetPort: 8081

aus der Doku

Kubernetes ServiceTypes allow you to specify what kind of Service you want. The default is ClusterIP.

Type values and their behaviors are:

ClusterIP: Exposes the Service on a cluster-internal IP. Choosing this value makes the Service only reachable from within the cluster. This is the default ServiceType.
NodePort: Exposes the Service on each Node's IP at a static port (the NodePort). A ClusterIP Service, to which the NodePort Service routes, is automatically created. You'll be able to contact the NodePort Service, from outside the cluster, by requesting :.
LoadBalancer: Exposes the Service externally using a cloud provider's load balancer. NodePort and ClusterIP Services, to which the external load balancer routes, are automatically created.

@hey-nicolasklein hey-nicolasklein added invalid This doesn't seem right question Further information is requested labels Jan 4, 2021
@hey-nicolasklein hey-nicolasklein pinned this issue Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants