D
Dokploy8mo ago
just

How to change endpoint_mode

How change endpoint_mode to dnsrr? I actually dont see this option.
No description
No description
5 Replies
just
justOP7mo ago
is that possible?
Siumauricio
Siumauricio7mo ago
I think it's possible, I just wonder from which section the dnssr belongs. I know there are some interfaces that we don't show them because they are the ones I saw as relevant, but probably that property is there
just
justOP7mo ago
i think this option is in EndpointSpec, i dont see where i can edit it example taken from another service
"UpdateConfig": {
"Parallelism": 2,
"FailureAction": "rollback",
"Monitor": 5000000000,
"MaxFailureRatio": 0,
"Order": "stop-first"
},
"RollbackConfig": {
"Parallelism": 1,
"FailureAction": "pause",
"Monitor": 5000000000,
"MaxFailureRatio": 0,
"Order": "stop-first"
},
"EndpointSpec": {
"Mode": "dnsrr",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 4449,
"PublishedPort": 4449,
"PublishMode": "host"
}
]
}
"UpdateConfig": {
"Parallelism": 2,
"FailureAction": "rollback",
"Monitor": 5000000000,
"MaxFailureRatio": 0,
"Order": "stop-first"
},
"RollbackConfig": {
"Parallelism": 1,
"FailureAction": "pause",
"Monitor": 5000000000,
"MaxFailureRatio": 0,
"Order": "stop-first"
},
"EndpointSpec": {
"Mode": "dnsrr",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 4449,
"PublishedPort": 4449,
"PublishMode": "host"
}
]
}
or in endpoint
"Endpoint": {
"Spec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 4449,
"PublishedPort": 4449,
"PublishMode": "ingress"
}
]
},
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 4449,
"PublishedPort": 4449,
"PublishMode": "ingress"
}
],
"VirtualIPs": [
{
"NetworkID": "mgakslx8wqw4hm047kt6kf6dm",
"Addr": "10.0.0.17/24"
},
{
"NetworkID": "spzbwvlht27ffihjayh9mrbn5",
"Addr": "10.0.5.5/24"
}
]
},
"Endpoint": {
"Spec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 4449,
"PublishedPort": 4449,
"PublishMode": "ingress"
}
]
},
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 4449,
"PublishedPort": 4449,
"PublishMode": "ingress"
}
],
"VirtualIPs": [
{
"NetworkID": "mgakslx8wqw4hm047kt6kf6dm",
"Addr": "10.0.0.17/24"
},
{
"NetworkID": "spzbwvlht27ffihjayh9mrbn5",
"Addr": "10.0.5.5/24"
}
]
},
i wanna edit "Mode" option to dnsrr help
just
justOP7mo ago
And i cant update endpoint mode using command
No description
Siumauricio
Siumauricio7mo ago
sorry for the late reply, I will take a look about this I check and is correct the property mode from endpoint spec are not being exposed I will see if I can add this property!

Did you find this page helpful?