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
In the current Kuvel, ReplicaSet is regarded as a LoadBalancer, and load balance is performed to the pods under it. This is inconvenient when you want to load balance across ReplicaSet. In addition, due to the specification of k8s, when ReplicaSet is created under Deployment or StatefulSet, the label of ReplicaSet inherits the label of the Pod, so it is difficult to set that the label is given only to ReplicaSet and not to Pod. This makes the configuration of LoadBalancer difficult.
From 3.0.0, I would like to solve this problem and set up LoadBalancer by Pod's label. The name of the load balancer will be defined as the label value, and players will be load balanced to all pods with the same label value. Due to this change, pods with LoadBalancer specified will always specify a number after preferred-server-name. For example, pods that were previously registered as test-server when replica was 1 will now be registered as test-server-1.
apiVersion: apps/v1kind: Deploymentmetadata:
name: test-deploymentnamespace: minecraftspec:
selector:
matchLabels:
app: testtemplate:
metadata:
labels:
app: testkuvel.azisaba.net/enable-server-discovery: "true"kuvel.azisaba.net/preferred-server-name: "test-server"# will be registered as `test-server-1`kuvel.azisaba.net/load-balancer: "test-server"
The text was updated successfully, but these errors were encountered:
In the current Kuvel, ReplicaSet is regarded as a LoadBalancer, and load balance is performed to the pods under it. This is inconvenient when you want to load balance across ReplicaSet. In addition, due to the specification of k8s, when ReplicaSet is created under Deployment or StatefulSet, the label of ReplicaSet inherits the label of the Pod, so it is difficult to set that the label is given only to ReplicaSet and not to Pod. This makes the configuration of LoadBalancer difficult.
From 3.0.0, I would like to solve this problem and set up LoadBalancer by Pod's label. The name of the load balancer will be defined as the label value, and players will be load balanced to all pods with the same label value. Due to this change, pods with LoadBalancer specified will always specify a number after
preferred-server-name
. For example, pods that were previously registered astest-server
when replica was 1 will now be registered astest-server-1
.The text was updated successfully, but these errors were encountered: