Nomad provider to allow empty services
This commit is contained in:
parent
2c6418e17a
commit
ac1753a614
41 changed files with 3540 additions and 87 deletions
|
@ -0,0 +1,220 @@
|
|||
{
|
||||
"Stop": false,
|
||||
"Region": "global",
|
||||
"Namespace": "default",
|
||||
"ID": "job1",
|
||||
"ParentID": "",
|
||||
"Name": "job1",
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"AllAtOnce": false,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "group1",
|
||||
"Count": 1,
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Migrate": {
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.nomad.service_discovery}",
|
||||
"RTarget": "true",
|
||||
"Operand": "="
|
||||
}
|
||||
],
|
||||
"Scaling": {
|
||||
"ID": "654cb8ee-9c81-4fe8-02a0-2aecdea35ae3",
|
||||
"Type": "horizontal",
|
||||
"Target": {
|
||||
"Job": "job1",
|
||||
"Group": "group1",
|
||||
"Namespace": "default"
|
||||
},
|
||||
"Policy": null,
|
||||
"Min": 0,
|
||||
"Max": 3,
|
||||
"Enabled": true,
|
||||
"CreateIndex": 0,
|
||||
"ModifyIndex": 0
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "task1",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"image": "nginx",
|
||||
"ports": [
|
||||
"http"
|
||||
]
|
||||
},
|
||||
"Env": null,
|
||||
"Services": null,
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
}
|
||||
],
|
||||
"EphemeralDisk": {
|
||||
"Sticky": false,
|
||||
"SizeMB": 300,
|
||||
"Migrate": false
|
||||
},
|
||||
"Meta": null,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Interval": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"Networks": [
|
||||
{
|
||||
"Mode": "",
|
||||
"Device": "",
|
||||
"CIDR": "",
|
||||
"IP": "",
|
||||
"Hostname": "",
|
||||
"MBits": 0,
|
||||
"DNS": null,
|
||||
"ReservedPorts": null,
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "http",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Consul": {
|
||||
"Namespace": ""
|
||||
},
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job1",
|
||||
"TaskName": "",
|
||||
"PortLabel": "http",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Volumes": null,
|
||||
"ShutdownDelay": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"MaxClientDisconnect": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "",
|
||||
"MinHealthyTime": 0,
|
||||
"HealthyDeadline": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Multiregion": null,
|
||||
"Periodic": null,
|
||||
"ParameterizedJob": null,
|
||||
"Dispatched": false,
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Payload": null,
|
||||
"Meta": null,
|
||||
"ConsulToken": "",
|
||||
"ConsulNamespace": "",
|
||||
"VaultToken": "",
|
||||
"VaultNamespace": "",
|
||||
"NomadTokenID": "",
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"Stable": true,
|
||||
"Version": 11,
|
||||
"SubmitTime": 1705690395733241600,
|
||||
"CreateIndex": 493,
|
||||
"ModifyIndex": 9961,
|
||||
"JobModifyIndex": 9955
|
||||
}
|
|
@ -0,0 +1,220 @@
|
|||
{
|
||||
"Stop": false,
|
||||
"Region": "global",
|
||||
"Namespace": "default",
|
||||
"ID": "job2",
|
||||
"ParentID": "",
|
||||
"Name": "job2",
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"AllAtOnce": false,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "group1",
|
||||
"Count": 0,
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Migrate": {
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.nomad.service_discovery}",
|
||||
"RTarget": "true",
|
||||
"Operand": "="
|
||||
}
|
||||
],
|
||||
"Scaling": {
|
||||
"ID": "0ae1d8fa-aa84-0b1b-941f-82dc71bc4664",
|
||||
"Type": "horizontal",
|
||||
"Target": {
|
||||
"Group": "group1",
|
||||
"Namespace": "default",
|
||||
"Job": "job2"
|
||||
},
|
||||
"Policy": null,
|
||||
"Min": 0,
|
||||
"Max": 3,
|
||||
"Enabled": true,
|
||||
"CreateIndex": 9975,
|
||||
"ModifyIndex": 9975
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "task1",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"ports": [
|
||||
"http"
|
||||
],
|
||||
"image": "nginx"
|
||||
},
|
||||
"Env": null,
|
||||
"Services": null,
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
}
|
||||
],
|
||||
"EphemeralDisk": {
|
||||
"Sticky": false,
|
||||
"SizeMB": 300,
|
||||
"Migrate": false
|
||||
},
|
||||
"Meta": null,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Interval": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"Networks": [
|
||||
{
|
||||
"Mode": "",
|
||||
"Device": "",
|
||||
"CIDR": "",
|
||||
"IP": "",
|
||||
"Hostname": "",
|
||||
"MBits": 0,
|
||||
"DNS": null,
|
||||
"ReservedPorts": null,
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "http",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Consul": {
|
||||
"Namespace": ""
|
||||
},
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job2",
|
||||
"TaskName": "",
|
||||
"PortLabel": "http",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Volumes": null,
|
||||
"ShutdownDelay": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"MaxClientDisconnect": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "",
|
||||
"MinHealthyTime": 0,
|
||||
"HealthyDeadline": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Multiregion": null,
|
||||
"Periodic": null,
|
||||
"ParameterizedJob": null,
|
||||
"Dispatched": false,
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Payload": null,
|
||||
"Meta": null,
|
||||
"ConsulToken": "",
|
||||
"ConsulNamespace": "",
|
||||
"VaultToken": "",
|
||||
"VaultNamespace": "",
|
||||
"NomadTokenID": "",
|
||||
"Status": "dead",
|
||||
"StatusDescription": "",
|
||||
"Stable": true,
|
||||
"Version": 10,
|
||||
"SubmitTime": 1705690880440177400,
|
||||
"CreateIndex": 2923,
|
||||
"ModifyIndex": 10048,
|
||||
"JobModifyIndex": 10044
|
||||
}
|
|
@ -0,0 +1,206 @@
|
|||
{
|
||||
"Stop": false,
|
||||
"Region": "global",
|
||||
"Namespace": "default",
|
||||
"ID": "job3",
|
||||
"ParentID": "",
|
||||
"Name": "job3",
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"AllAtOnce": false,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "group1",
|
||||
"Count": 1,
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Migrate": {
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.nomad.service_discovery}",
|
||||
"RTarget": "true",
|
||||
"Operand": "="
|
||||
}
|
||||
],
|
||||
"Scaling": null,
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "task1",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"ports": [
|
||||
"http"
|
||||
],
|
||||
"image": "nginx"
|
||||
},
|
||||
"Env": null,
|
||||
"Services": null,
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
}
|
||||
],
|
||||
"EphemeralDisk": {
|
||||
"Sticky": false,
|
||||
"SizeMB": 300,
|
||||
"Migrate": false
|
||||
},
|
||||
"Meta": null,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Interval": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"Networks": [
|
||||
{
|
||||
"Mode": "",
|
||||
"Device": "",
|
||||
"CIDR": "",
|
||||
"IP": "",
|
||||
"Hostname": "",
|
||||
"MBits": 0,
|
||||
"DNS": null,
|
||||
"ReservedPorts": null,
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "http",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Consul": {
|
||||
"Namespace": ""
|
||||
},
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job3",
|
||||
"TaskName": "",
|
||||
"PortLabel": "http",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Volumes": null,
|
||||
"ShutdownDelay": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"MaxClientDisconnect": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "",
|
||||
"MinHealthyTime": 0,
|
||||
"HealthyDeadline": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Multiregion": null,
|
||||
"Periodic": null,
|
||||
"ParameterizedJob": null,
|
||||
"Dispatched": false,
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Payload": null,
|
||||
"Meta": null,
|
||||
"ConsulToken": "",
|
||||
"ConsulNamespace": "",
|
||||
"VaultToken": "",
|
||||
"VaultNamespace": "",
|
||||
"NomadTokenID": "",
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"Stable": true,
|
||||
"Version": 4,
|
||||
"SubmitTime": 1705690892484556300,
|
||||
"CreateIndex": 2932,
|
||||
"ModifyIndex": 9992,
|
||||
"JobModifyIndex": 9983
|
||||
}
|
|
@ -0,0 +1,206 @@
|
|||
{
|
||||
"Stop": true,
|
||||
"Region": "global",
|
||||
"Namespace": "default",
|
||||
"ID": "job4",
|
||||
"ParentID": "",
|
||||
"Name": "job4",
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"AllAtOnce": false,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "group1",
|
||||
"Count": 1,
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Migrate": {
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.nomad.service_discovery}",
|
||||
"RTarget": "true",
|
||||
"Operand": "="
|
||||
}
|
||||
],
|
||||
"Scaling": null,
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "task1",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"image": "nginx",
|
||||
"ports": [
|
||||
"http"
|
||||
]
|
||||
},
|
||||
"Env": null,
|
||||
"Services": null,
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
}
|
||||
],
|
||||
"EphemeralDisk": {
|
||||
"Sticky": false,
|
||||
"SizeMB": 300,
|
||||
"Migrate": false
|
||||
},
|
||||
"Meta": null,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Interval": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"Networks": [
|
||||
{
|
||||
"Mode": "",
|
||||
"Device": "",
|
||||
"CIDR": "",
|
||||
"IP": "",
|
||||
"Hostname": "",
|
||||
"MBits": 0,
|
||||
"DNS": null,
|
||||
"ReservedPorts": null,
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "http",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Consul": {
|
||||
"Namespace": ""
|
||||
},
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job4",
|
||||
"TaskName": "",
|
||||
"PortLabel": "http",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Volumes": null,
|
||||
"ShutdownDelay": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"MaxClientDisconnect": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "",
|
||||
"MinHealthyTime": 0,
|
||||
"HealthyDeadline": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Multiregion": null,
|
||||
"Periodic": null,
|
||||
"ParameterizedJob": null,
|
||||
"Dispatched": false,
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Payload": null,
|
||||
"Meta": null,
|
||||
"ConsulToken": "",
|
||||
"ConsulNamespace": "",
|
||||
"VaultToken": "",
|
||||
"VaultNamespace": "",
|
||||
"NomadTokenID": "",
|
||||
"Status": "dead",
|
||||
"StatusDescription": "",
|
||||
"Stable": true,
|
||||
"Version": 11,
|
||||
"SubmitTime": 1705690905317339000,
|
||||
"CreateIndex": 3079,
|
||||
"ModifyIndex": 10054,
|
||||
"JobModifyIndex": 10052
|
||||
}
|
|
@ -0,0 +1,299 @@
|
|||
{
|
||||
"Stop": false,
|
||||
"Region": "global",
|
||||
"Namespace": "default",
|
||||
"ID": "job5",
|
||||
"ParentID": "",
|
||||
"Name": "job5",
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"AllAtOnce": false,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "group1",
|
||||
"Count": 1,
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Migrate": {
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.nomad.service_discovery}",
|
||||
"RTarget": "true",
|
||||
"Operand": "="
|
||||
}
|
||||
],
|
||||
"Scaling": {
|
||||
"ID": "56d57f83-7b9e-fbfa-af96-e2c7f5dc698c",
|
||||
"Type": "horizontal",
|
||||
"Target": {
|
||||
"Namespace": "default",
|
||||
"Job": "job5",
|
||||
"Group": "group1"
|
||||
},
|
||||
"Policy": null,
|
||||
"Min": 0,
|
||||
"Max": 3,
|
||||
"Enabled": true,
|
||||
"CreateIndex": 0,
|
||||
"ModifyIndex": 0
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "task1",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"image": "nginx",
|
||||
"ports": [
|
||||
"http"
|
||||
]
|
||||
},
|
||||
"Env": null,
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job5task1",
|
||||
"TaskName": "task1",
|
||||
"PortLabel": "http",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
},
|
||||
{
|
||||
"Name": "task2",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"ports": [
|
||||
"other"
|
||||
],
|
||||
"image": "nginx"
|
||||
},
|
||||
"Env": null,
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job5task2",
|
||||
"TaskName": "task2",
|
||||
"PortLabel": "other",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
}
|
||||
],
|
||||
"EphemeralDisk": {
|
||||
"Sticky": false,
|
||||
"SizeMB": 300,
|
||||
"Migrate": false
|
||||
},
|
||||
"Meta": null,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Interval": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"Networks": [
|
||||
{
|
||||
"Mode": "",
|
||||
"Device": "",
|
||||
"CIDR": "",
|
||||
"IP": "",
|
||||
"Hostname": "",
|
||||
"MBits": 0,
|
||||
"DNS": null,
|
||||
"ReservedPorts": null,
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "http",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
},
|
||||
{
|
||||
"Label": "other",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Consul": {
|
||||
"Namespace": ""
|
||||
},
|
||||
"Services": null,
|
||||
"Volumes": null,
|
||||
"ShutdownDelay": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"MaxClientDisconnect": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "",
|
||||
"MinHealthyTime": 0,
|
||||
"HealthyDeadline": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Multiregion": null,
|
||||
"Periodic": null,
|
||||
"ParameterizedJob": null,
|
||||
"Dispatched": false,
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Payload": null,
|
||||
"Meta": null,
|
||||
"ConsulToken": "",
|
||||
"ConsulNamespace": "",
|
||||
"VaultToken": "",
|
||||
"VaultNamespace": "",
|
||||
"NomadTokenID": "",
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"Stable": true,
|
||||
"Version": 7,
|
||||
"SubmitTime": 1705690918813110300,
|
||||
"CreateIndex": 3095,
|
||||
"ModifyIndex": 10018,
|
||||
"JobModifyIndex": 10008
|
||||
}
|
|
@ -0,0 +1,299 @@
|
|||
{
|
||||
"Stop": false,
|
||||
"Region": "global",
|
||||
"Namespace": "default",
|
||||
"ID": "job6",
|
||||
"ParentID": "",
|
||||
"Name": "job6",
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"AllAtOnce": false,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "group1",
|
||||
"Count": 0,
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Migrate": {
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.nomad.service_discovery}",
|
||||
"RTarget": "true",
|
||||
"Operand": "="
|
||||
}
|
||||
],
|
||||
"Scaling": {
|
||||
"ID": "d18b02ae-5a68-e635-8100-06b110910b5f",
|
||||
"Type": "horizontal",
|
||||
"Target": {
|
||||
"Job": "job6",
|
||||
"Group": "group1",
|
||||
"Namespace": "default"
|
||||
},
|
||||
"Policy": null,
|
||||
"Min": 0,
|
||||
"Max": 3,
|
||||
"Enabled": true,
|
||||
"CreateIndex": 10020,
|
||||
"ModifyIndex": 10020
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "task1",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"image": "nginx",
|
||||
"ports": [
|
||||
"http"
|
||||
]
|
||||
},
|
||||
"Env": null,
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job6task1",
|
||||
"TaskName": "task1",
|
||||
"PortLabel": "http",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
},
|
||||
{
|
||||
"Name": "task2",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"image": "nginx",
|
||||
"ports": [
|
||||
"other"
|
||||
]
|
||||
},
|
||||
"Env": null,
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job6task2",
|
||||
"TaskName": "task2",
|
||||
"PortLabel": "other",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
}
|
||||
],
|
||||
"EphemeralDisk": {
|
||||
"Sticky": false,
|
||||
"SizeMB": 300,
|
||||
"Migrate": false
|
||||
},
|
||||
"Meta": null,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Interval": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"Networks": [
|
||||
{
|
||||
"Mode": "",
|
||||
"Device": "",
|
||||
"CIDR": "",
|
||||
"IP": "",
|
||||
"Hostname": "",
|
||||
"MBits": 0,
|
||||
"DNS": null,
|
||||
"ReservedPorts": null,
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "http",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
},
|
||||
{
|
||||
"Label": "other",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Consul": {
|
||||
"Namespace": ""
|
||||
},
|
||||
"Services": null,
|
||||
"Volumes": null,
|
||||
"ShutdownDelay": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"MaxClientDisconnect": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "",
|
||||
"MinHealthyTime": 0,
|
||||
"HealthyDeadline": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Multiregion": null,
|
||||
"Periodic": null,
|
||||
"ParameterizedJob": null,
|
||||
"Dispatched": false,
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Payload": null,
|
||||
"Meta": null,
|
||||
"ConsulToken": "",
|
||||
"ConsulNamespace": "",
|
||||
"VaultToken": "",
|
||||
"VaultNamespace": "",
|
||||
"NomadTokenID": "",
|
||||
"Status": "dead",
|
||||
"StatusDescription": "",
|
||||
"Stable": true,
|
||||
"Version": 3,
|
||||
"SubmitTime": 1705690931854150700,
|
||||
"CreateIndex": 9941,
|
||||
"ModifyIndex": 10078,
|
||||
"JobModifyIndex": 10074
|
||||
}
|
222
pkg/provider/nomad/fixtures/job_job7_TCP.json
Normal file
222
pkg/provider/nomad/fixtures/job_job7_TCP.json
Normal file
|
@ -0,0 +1,222 @@
|
|||
{
|
||||
"Stop": false,
|
||||
"Region": "global",
|
||||
"Namespace": "default",
|
||||
"ID": "job7",
|
||||
"ParentID": "",
|
||||
"Name": "job7",
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"AllAtOnce": false,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "group1",
|
||||
"Count": 1,
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Migrate": {
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.nomad.service_discovery}",
|
||||
"RTarget": "true",
|
||||
"Operand": "="
|
||||
}
|
||||
],
|
||||
"Scaling": {
|
||||
"ID": "e3b82307-1b7f-5fc6-901a-d9174418461f",
|
||||
"Type": "horizontal",
|
||||
"Target": {
|
||||
"Namespace": "default",
|
||||
"Job": "job7",
|
||||
"Group": "group1"
|
||||
},
|
||||
"Policy": null,
|
||||
"Min": 0,
|
||||
"Max": 3,
|
||||
"Enabled": true,
|
||||
"CreateIndex": 0,
|
||||
"ModifyIndex": 0
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "task1",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"image": "nginx",
|
||||
"ports": [
|
||||
"http"
|
||||
]
|
||||
},
|
||||
"Env": null,
|
||||
"Services": null,
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
}
|
||||
],
|
||||
"EphemeralDisk": {
|
||||
"Sticky": false,
|
||||
"SizeMB": 300,
|
||||
"Migrate": false
|
||||
},
|
||||
"Meta": null,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Interval": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"Networks": [
|
||||
{
|
||||
"Mode": "",
|
||||
"Device": "",
|
||||
"CIDR": "",
|
||||
"IP": "",
|
||||
"Hostname": "",
|
||||
"MBits": 0,
|
||||
"DNS": null,
|
||||
"ReservedPorts": null,
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "http",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Consul": {
|
||||
"Namespace": ""
|
||||
},
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job7",
|
||||
"TaskName": "",
|
||||
"PortLabel": "http",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true",
|
||||
"traefik.tcp.routers.job7.rule=HostSNI(`job7`)",
|
||||
"traefik.tcp.routers.job7.tls.passthrough=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Volumes": null,
|
||||
"ShutdownDelay": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"MaxClientDisconnect": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "",
|
||||
"MinHealthyTime": 0,
|
||||
"HealthyDeadline": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Multiregion": null,
|
||||
"Periodic": null,
|
||||
"ParameterizedJob": null,
|
||||
"Dispatched": false,
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Payload": null,
|
||||
"Meta": null,
|
||||
"ConsulToken": "",
|
||||
"ConsulNamespace": "",
|
||||
"VaultToken": "",
|
||||
"VaultNamespace": "",
|
||||
"NomadTokenID": "",
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"Stable": true,
|
||||
"Version": 1,
|
||||
"SubmitTime": 1705752438438572000,
|
||||
"CreateIndex": 11221,
|
||||
"ModifyIndex": 11238,
|
||||
"JobModifyIndex": 11232
|
||||
}
|
221
pkg/provider/nomad/fixtures/job_job8_UDP.json
Normal file
221
pkg/provider/nomad/fixtures/job_job8_UDP.json
Normal file
|
@ -0,0 +1,221 @@
|
|||
{
|
||||
"Stop": false,
|
||||
"Region": "global",
|
||||
"Namespace": "default",
|
||||
"ID": "job8",
|
||||
"ParentID": "",
|
||||
"Name": "job8",
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"AllAtOnce": false,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "group1",
|
||||
"Count": 1,
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Migrate": {
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.nomad.service_discovery}",
|
||||
"RTarget": "true",
|
||||
"Operand": "="
|
||||
}
|
||||
],
|
||||
"Scaling": {
|
||||
"ID": "3828aaa9-4e16-cde5-cc80-f0cec4a7c82d",
|
||||
"Type": "horizontal",
|
||||
"Target": {
|
||||
"Namespace": "default",
|
||||
"Job": "job8",
|
||||
"Group": "group1"
|
||||
},
|
||||
"Policy": null,
|
||||
"Min": 0,
|
||||
"Max": 3,
|
||||
"Enabled": true,
|
||||
"CreateIndex": 0,
|
||||
"ModifyIndex": 0
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "task1",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"ports": [
|
||||
"http"
|
||||
],
|
||||
"image": "nginx"
|
||||
},
|
||||
"Env": null,
|
||||
"Services": null,
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
}
|
||||
],
|
||||
"EphemeralDisk": {
|
||||
"Sticky": false,
|
||||
"SizeMB": 300,
|
||||
"Migrate": false
|
||||
},
|
||||
"Meta": null,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Interval": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"Networks": [
|
||||
{
|
||||
"Mode": "",
|
||||
"Device": "",
|
||||
"CIDR": "",
|
||||
"IP": "",
|
||||
"Hostname": "",
|
||||
"MBits": 0,
|
||||
"DNS": null,
|
||||
"ReservedPorts": null,
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "http",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Consul": {
|
||||
"Namespace": ""
|
||||
},
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job8",
|
||||
"TaskName": "",
|
||||
"PortLabel": "http",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true",
|
||||
"traefik.udp.routers.job8.service=job8"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Volumes": null,
|
||||
"ShutdownDelay": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"MaxClientDisconnect": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "",
|
||||
"MinHealthyTime": 0,
|
||||
"HealthyDeadline": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Multiregion": null,
|
||||
"Periodic": null,
|
||||
"ParameterizedJob": null,
|
||||
"Dispatched": false,
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Payload": null,
|
||||
"Meta": null,
|
||||
"ConsulToken": "",
|
||||
"ConsulNamespace": "",
|
||||
"VaultToken": "",
|
||||
"VaultNamespace": "",
|
||||
"NomadTokenID": "",
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"Stable": true,
|
||||
"Version": 2,
|
||||
"SubmitTime": 1705753285493029600,
|
||||
"CreateIndex": 11276,
|
||||
"ModifyIndex": 11303,
|
||||
"JobModifyIndex": 11297
|
||||
}
|
220
pkg/provider/nomad/fixtures/job_job9_ScalingEnabled_Stopped.json
Normal file
220
pkg/provider/nomad/fixtures/job_job9_ScalingEnabled_Stopped.json
Normal file
|
@ -0,0 +1,220 @@
|
|||
{
|
||||
"Stop": true,
|
||||
"Region": "global",
|
||||
"Namespace": "default",
|
||||
"ID": "job9",
|
||||
"ParentID": "",
|
||||
"Name": "job9",
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"AllAtOnce": false,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "group1",
|
||||
"Count": 1,
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Migrate": {
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "checks",
|
||||
"MinHealthyTime": 10000000000,
|
||||
"HealthyDeadline": 300000000000
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.nomad.service_discovery}",
|
||||
"RTarget": "true",
|
||||
"Operand": "="
|
||||
}
|
||||
],
|
||||
"Scaling": {
|
||||
"ID": "094d38a7-24cf-d3a4-3a82-cfc50ef7c597",
|
||||
"Type": "horizontal",
|
||||
"Target": {
|
||||
"Group": "group1",
|
||||
"Namespace": "default",
|
||||
"Job": "job9"
|
||||
},
|
||||
"Policy": null,
|
||||
"Min": 0,
|
||||
"Max": 3,
|
||||
"Enabled": true,
|
||||
"CreateIndex": 0,
|
||||
"ModifyIndex": 0
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "task1",
|
||||
"Driver": "docker",
|
||||
"User": "",
|
||||
"Config": {
|
||||
"image": "nginx",
|
||||
"ports": [
|
||||
"http"
|
||||
]
|
||||
},
|
||||
"Env": null,
|
||||
"Services": null,
|
||||
"Vault": null,
|
||||
"Templates": null,
|
||||
"Constraints": null,
|
||||
"Affinities": null,
|
||||
"Resources": {
|
||||
"CPU": 100,
|
||||
"Cores": 0,
|
||||
"MemoryMB": 300,
|
||||
"MemoryMaxMB": 0,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"Networks": null,
|
||||
"Devices": null
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 2,
|
||||
"Interval": 1800000000000,
|
||||
"Delay": 15000000000,
|
||||
"Mode": "fail",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"DispatchPayload": null,
|
||||
"Lifecycle": null,
|
||||
"Meta": null,
|
||||
"KillTimeout": 5000000000,
|
||||
"LogConfig": {
|
||||
"MaxFiles": 10,
|
||||
"MaxFileSizeMB": 10,
|
||||
"Disabled": false
|
||||
},
|
||||
"Artifacts": null,
|
||||
"Leader": false,
|
||||
"ShutdownDelay": 0,
|
||||
"VolumeMounts": null,
|
||||
"ScalingPolicies": null,
|
||||
"KillSignal": "",
|
||||
"Kind": "",
|
||||
"CSIPluginConfig": null,
|
||||
"Identity": null
|
||||
}
|
||||
],
|
||||
"EphemeralDisk": {
|
||||
"Sticky": false,
|
||||
"SizeMB": 300,
|
||||
"Migrate": false
|
||||
},
|
||||
"Meta": null,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Interval": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"Affinities": null,
|
||||
"Spreads": null,
|
||||
"Networks": [
|
||||
{
|
||||
"Mode": "",
|
||||
"Device": "",
|
||||
"CIDR": "",
|
||||
"IP": "",
|
||||
"Hostname": "",
|
||||
"MBits": 0,
|
||||
"DNS": null,
|
||||
"ReservedPorts": null,
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "http",
|
||||
"Value": 0,
|
||||
"To": 80,
|
||||
"HostNetwork": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Consul": {
|
||||
"Namespace": ""
|
||||
},
|
||||
"Services": [
|
||||
{
|
||||
"Name": "job9",
|
||||
"TaskName": "",
|
||||
"PortLabel": "http",
|
||||
"AddressMode": "auto",
|
||||
"Address": "",
|
||||
"EnableTagOverride": false,
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Connect": null,
|
||||
"Meta": null,
|
||||
"CanaryMeta": null,
|
||||
"TaggedAddresses": null,
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
],
|
||||
"Volumes": null,
|
||||
"ShutdownDelay": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"MaxClientDisconnect": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"Stagger": 30000000000,
|
||||
"MaxParallel": 1,
|
||||
"HealthCheck": "",
|
||||
"MinHealthyTime": 0,
|
||||
"HealthyDeadline": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"AutoRevert": false,
|
||||
"AutoPromote": false,
|
||||
"Canary": 0
|
||||
},
|
||||
"Multiregion": null,
|
||||
"Periodic": null,
|
||||
"ParameterizedJob": null,
|
||||
"Dispatched": false,
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Payload": null,
|
||||
"Meta": null,
|
||||
"ConsulToken": "",
|
||||
"ConsulNamespace": "",
|
||||
"VaultToken": "",
|
||||
"VaultNamespace": "",
|
||||
"NomadTokenID": "",
|
||||
"Status": "dead",
|
||||
"StatusDescription": "",
|
||||
"Stable": true,
|
||||
"Version": 3,
|
||||
"SubmitTime": 1705753979676559600,
|
||||
"CreateIndex": 11317,
|
||||
"ModifyIndex": 11346,
|
||||
"JobModifyIndex": 11344
|
||||
}
|
56
pkg/provider/nomad/fixtures/jobs_job1.json
Normal file
56
pkg/provider/nomad/fixtures/jobs_job1.json
Normal file
|
@ -0,0 +1,56 @@
|
|||
[
|
||||
{
|
||||
"ID": "job1",
|
||||
"ParentID": "",
|
||||
"Name": "job1",
|
||||
"Namespace": "default",
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Multiregion": null,
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"Periodic": false,
|
||||
"ParameterizedJob": false,
|
||||
"Stop": false,
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"JobSummary": {
|
||||
"JobID": "job1",
|
||||
"Namespace": "default",
|
||||
"Summary": {
|
||||
"job1": {
|
||||
"Queued": 0,
|
||||
"Complete": 1,
|
||||
"Failed": 0,
|
||||
"Running": 0,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
},
|
||||
"group1": {
|
||||
"Queued": 0,
|
||||
"Complete": 6,
|
||||
"Failed": 1,
|
||||
"Running": 1,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
}
|
||||
},
|
||||
"Children": {
|
||||
"Pending": 0,
|
||||
"Running": 0,
|
||||
"Dead": 0
|
||||
},
|
||||
"CreateIndex": 493,
|
||||
"ModifyIndex": 9909
|
||||
},
|
||||
"CreateIndex": 493,
|
||||
"ModifyIndex": 9961,
|
||||
"JobModifyIndex": 9955,
|
||||
"SubmitTime": 1705690395733241600,
|
||||
"Meta": null
|
||||
}
|
||||
]
|
47
pkg/provider/nomad/fixtures/jobs_job2.json
Normal file
47
pkg/provider/nomad/fixtures/jobs_job2.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
[
|
||||
{
|
||||
"ID": "job2",
|
||||
"ParentID": "",
|
||||
"Name": "job2",
|
||||
"Namespace": "default",
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Multiregion": null,
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"Periodic": false,
|
||||
"ParameterizedJob": false,
|
||||
"Stop": false,
|
||||
"Status": "dead",
|
||||
"StatusDescription": "",
|
||||
"JobSummary": {
|
||||
"JobID": "job2",
|
||||
"Namespace": "default",
|
||||
"Summary": {
|
||||
"group1": {
|
||||
"Queued": 0,
|
||||
"Complete": 6,
|
||||
"Failed": 6,
|
||||
"Running": 0,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
}
|
||||
},
|
||||
"Children": {
|
||||
"Pending": 0,
|
||||
"Running": 0,
|
||||
"Dead": 0
|
||||
},
|
||||
"CreateIndex": 2923,
|
||||
"ModifyIndex": 10051
|
||||
},
|
||||
"CreateIndex": 2923,
|
||||
"ModifyIndex": 10048,
|
||||
"JobModifyIndex": 10044,
|
||||
"SubmitTime": 1705690880440177400,
|
||||
"Meta": null
|
||||
}
|
||||
]
|
47
pkg/provider/nomad/fixtures/jobs_job3.json
Normal file
47
pkg/provider/nomad/fixtures/jobs_job3.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
[
|
||||
{
|
||||
"ID": "job3",
|
||||
"ParentID": "",
|
||||
"Name": "job3",
|
||||
"Namespace": "default",
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Multiregion": null,
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"Periodic": false,
|
||||
"ParameterizedJob": false,
|
||||
"Stop": false,
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"JobSummary": {
|
||||
"JobID": "job3",
|
||||
"Namespace": "default",
|
||||
"Summary": {
|
||||
"group1": {
|
||||
"Queued": 0,
|
||||
"Complete": 1,
|
||||
"Failed": 0,
|
||||
"Running": 1,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
}
|
||||
},
|
||||
"Children": {
|
||||
"Pending": 0,
|
||||
"Running": 0,
|
||||
"Dead": 0
|
||||
},
|
||||
"CreateIndex": 2932,
|
||||
"ModifyIndex": 9989
|
||||
},
|
||||
"CreateIndex": 2932,
|
||||
"ModifyIndex": 9992,
|
||||
"JobModifyIndex": 9983,
|
||||
"SubmitTime": 1705690892484556300,
|
||||
"Meta": null
|
||||
}
|
||||
]
|
47
pkg/provider/nomad/fixtures/jobs_job4.json
Normal file
47
pkg/provider/nomad/fixtures/jobs_job4.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
[
|
||||
{
|
||||
"ID": "job4",
|
||||
"ParentID": "",
|
||||
"Name": "job4",
|
||||
"Namespace": "default",
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Multiregion": null,
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"Periodic": false,
|
||||
"ParameterizedJob": false,
|
||||
"Stop": true,
|
||||
"Status": "dead",
|
||||
"StatusDescription": "",
|
||||
"JobSummary": {
|
||||
"JobID": "job4",
|
||||
"Namespace": "default",
|
||||
"Summary": {
|
||||
"group1": {
|
||||
"Queued": 0,
|
||||
"Complete": 6,
|
||||
"Failed": 0,
|
||||
"Running": 0,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
}
|
||||
},
|
||||
"Children": {
|
||||
"Pending": 0,
|
||||
"Running": 0,
|
||||
"Dead": 0
|
||||
},
|
||||
"CreateIndex": 3079,
|
||||
"ModifyIndex": 10057
|
||||
},
|
||||
"CreateIndex": 3079,
|
||||
"ModifyIndex": 10054,
|
||||
"JobModifyIndex": 10052,
|
||||
"SubmitTime": 1705690905317339000,
|
||||
"Meta": null
|
||||
}
|
||||
]
|
56
pkg/provider/nomad/fixtures/jobs_job5.json
Normal file
56
pkg/provider/nomad/fixtures/jobs_job5.json
Normal file
|
@ -0,0 +1,56 @@
|
|||
[
|
||||
{
|
||||
"ID": "job5",
|
||||
"ParentID": "",
|
||||
"Name": "job5",
|
||||
"Namespace": "default",
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Multiregion": null,
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"Periodic": false,
|
||||
"ParameterizedJob": false,
|
||||
"Stop": false,
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"JobSummary": {
|
||||
"JobID": "job5",
|
||||
"Namespace": "default",
|
||||
"Summary": {
|
||||
"job5": {
|
||||
"Queued": 0,
|
||||
"Complete": 2,
|
||||
"Failed": 0,
|
||||
"Running": 0,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
},
|
||||
"group1": {
|
||||
"Queued": 0,
|
||||
"Complete": 4,
|
||||
"Failed": 0,
|
||||
"Running": 1,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
}
|
||||
},
|
||||
"Children": {
|
||||
"Pending": 0,
|
||||
"Running": 0,
|
||||
"Dead": 0
|
||||
},
|
||||
"CreateIndex": 3095,
|
||||
"ModifyIndex": 10015
|
||||
},
|
||||
"CreateIndex": 3095,
|
||||
"ModifyIndex": 10018,
|
||||
"JobModifyIndex": 10008,
|
||||
"SubmitTime": 1705690918813110300,
|
||||
"Meta": null
|
||||
}
|
||||
]
|
47
pkg/provider/nomad/fixtures/jobs_job6.json
Normal file
47
pkg/provider/nomad/fixtures/jobs_job6.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
[
|
||||
{
|
||||
"ID": "job6",
|
||||
"ParentID": "",
|
||||
"Name": "job6",
|
||||
"Namespace": "default",
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Multiregion": null,
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"Periodic": false,
|
||||
"ParameterizedJob": false,
|
||||
"Stop": false,
|
||||
"Status": "dead",
|
||||
"StatusDescription": "",
|
||||
"JobSummary": {
|
||||
"JobID": "job6",
|
||||
"Namespace": "default",
|
||||
"Summary": {
|
||||
"group1": {
|
||||
"Queued": 0,
|
||||
"Complete": 3,
|
||||
"Failed": 0,
|
||||
"Running": 0,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
}
|
||||
},
|
||||
"Children": {
|
||||
"Pending": 0,
|
||||
"Running": 0,
|
||||
"Dead": 0
|
||||
},
|
||||
"CreateIndex": 9941,
|
||||
"ModifyIndex": 10082
|
||||
},
|
||||
"CreateIndex": 9941,
|
||||
"ModifyIndex": 10078,
|
||||
"JobModifyIndex": 10074,
|
||||
"SubmitTime": 1705690931854150700,
|
||||
"Meta": null
|
||||
}
|
||||
]
|
47
pkg/provider/nomad/fixtures/jobs_job7.json
Normal file
47
pkg/provider/nomad/fixtures/jobs_job7.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
[
|
||||
{
|
||||
"ID": "job7",
|
||||
"ParentID": "",
|
||||
"Name": "job7",
|
||||
"Namespace": "default",
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Multiregion": null,
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"Periodic": false,
|
||||
"ParameterizedJob": false,
|
||||
"Stop": false,
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"JobSummary": {
|
||||
"JobID": "job7",
|
||||
"Namespace": "default",
|
||||
"Summary": {
|
||||
"group1": {
|
||||
"Queued": 0,
|
||||
"Complete": 0,
|
||||
"Failed": 0,
|
||||
"Running": 1,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
}
|
||||
},
|
||||
"Children": {
|
||||
"Pending": 0,
|
||||
"Running": 0,
|
||||
"Dead": 0
|
||||
},
|
||||
"CreateIndex": 11221,
|
||||
"ModifyIndex": 11225
|
||||
},
|
||||
"CreateIndex": 11221,
|
||||
"ModifyIndex": 11238,
|
||||
"JobModifyIndex": 11232,
|
||||
"SubmitTime": 1705752438438572000,
|
||||
"Meta": null
|
||||
}
|
||||
]
|
47
pkg/provider/nomad/fixtures/jobs_job8.json
Normal file
47
pkg/provider/nomad/fixtures/jobs_job8.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
[
|
||||
{
|
||||
"ID": "job8",
|
||||
"ParentID": "",
|
||||
"Name": "job8",
|
||||
"Namespace": "default",
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Multiregion": null,
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"Periodic": false,
|
||||
"ParameterizedJob": false,
|
||||
"Stop": false,
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"JobSummary": {
|
||||
"JobID": "job8",
|
||||
"Namespace": "default",
|
||||
"Summary": {
|
||||
"group1": {
|
||||
"Queued": 0,
|
||||
"Complete": 0,
|
||||
"Failed": 0,
|
||||
"Running": 1,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
}
|
||||
},
|
||||
"Children": {
|
||||
"Pending": 0,
|
||||
"Running": 0,
|
||||
"Dead": 0
|
||||
},
|
||||
"CreateIndex": 11276,
|
||||
"ModifyIndex": 11281
|
||||
},
|
||||
"CreateIndex": 11276,
|
||||
"ModifyIndex": 11303,
|
||||
"JobModifyIndex": 11297,
|
||||
"SubmitTime": 1705753285493029600,
|
||||
"Meta": null
|
||||
}
|
||||
]
|
47
pkg/provider/nomad/fixtures/jobs_job9.json
Normal file
47
pkg/provider/nomad/fixtures/jobs_job9.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
[
|
||||
{
|
||||
"ID": "job9",
|
||||
"ParentID": "",
|
||||
"Name": "job9",
|
||||
"Namespace": "default",
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"NodePool": "default",
|
||||
"Multiregion": null,
|
||||
"Type": "service",
|
||||
"Priority": 50,
|
||||
"Periodic": false,
|
||||
"ParameterizedJob": false,
|
||||
"Stop": true,
|
||||
"Status": "dead",
|
||||
"StatusDescription": "",
|
||||
"JobSummary": {
|
||||
"JobID": "job9",
|
||||
"Namespace": "default",
|
||||
"Summary": {
|
||||
"group1": {
|
||||
"Queued": 0,
|
||||
"Complete": 1,
|
||||
"Failed": 0,
|
||||
"Running": 0,
|
||||
"Starting": 0,
|
||||
"Lost": 0,
|
||||
"Unknown": 0
|
||||
}
|
||||
},
|
||||
"Children": {
|
||||
"Pending": 0,
|
||||
"Running": 0,
|
||||
"Dead": 0
|
||||
},
|
||||
"CreateIndex": 11317,
|
||||
"ModifyIndex": 11349
|
||||
},
|
||||
"CreateIndex": 11317,
|
||||
"ModifyIndex": 11346,
|
||||
"JobModifyIndex": 11344,
|
||||
"SubmitTime": 1705753979676559600,
|
||||
"Meta": null
|
||||
}
|
||||
]
|
20
pkg/provider/nomad/fixtures/service_hello.json
Normal file
20
pkg/provider/nomad/fixtures/service_hello.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
[
|
||||
{
|
||||
"Address": "127.0.0.1",
|
||||
"AllocID": "71a63a80-a98a-93ee-4fd7-73b808577c20",
|
||||
"CreateIndex": 18,
|
||||
"Datacenter": "dc1",
|
||||
"ID": "_nomad-task-71a63a80-a98a-93ee-4fd7-73b808577c20-group-hello-nomad-hello-nomad-http",
|
||||
"JobID": "echo",
|
||||
"ModifyIndex": 18,
|
||||
"Namespace": "default",
|
||||
"NodeID": "6d7f412e-e7ff-2e66-d47b-867b0e9d8726",
|
||||
"Port": 20627,
|
||||
"ServiceName": "hello-nomad",
|
||||
"Tags": [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.hellon.entrypoints=web",
|
||||
"traefik.http.routers.hellon.service=hello-nomad"
|
||||
]
|
||||
}
|
||||
]
|
18
pkg/provider/nomad/fixtures/service_job1.json
Normal file
18
pkg/provider/nomad/fixtures/service_job1.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
{
|
||||
"ID": "_nomad-task-03c7270c-f475-5981-1932-87c0a8a5aa24-group-group1-job1-http",
|
||||
"ServiceName": "job1",
|
||||
"Namespace": "default",
|
||||
"NodeID": "e262ecb6-a7ac-7c3e-4de0-06445559e596",
|
||||
"Datacenter": "dc1",
|
||||
"JobID": "job1",
|
||||
"AllocID": "03c7270c-f475-5981-1932-87c0a8a5aa24",
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"Address": "192.168.1.21",
|
||||
"Port": 29916,
|
||||
"CreateIndex": 5753,
|
||||
"ModifyIndex": 9958
|
||||
}
|
||||
]
|
1
pkg/provider/nomad/fixtures/service_job2.json
Normal file
1
pkg/provider/nomad/fixtures/service_job2.json
Normal file
|
@ -0,0 +1 @@
|
|||
[]
|
18
pkg/provider/nomad/fixtures/service_job3.json
Normal file
18
pkg/provider/nomad/fixtures/service_job3.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
{
|
||||
"ID": "_nomad-task-dd945b55-70fa-0efc-6512-b88fb55ce33f-group-group1-job3-http",
|
||||
"ServiceName": "job3",
|
||||
"Namespace": "default",
|
||||
"NodeID": "e262ecb6-a7ac-7c3e-4de0-06445559e596",
|
||||
"Datacenter": "dc1",
|
||||
"JobID": "job3",
|
||||
"AllocID": "dd945b55-70fa-0efc-6512-b88fb55ce33f",
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"Address": "192.168.1.21",
|
||||
"Port": 29983,
|
||||
"CreateIndex": 9987,
|
||||
"ModifyIndex": 9987
|
||||
}
|
||||
]
|
1
pkg/provider/nomad/fixtures/service_job4.json
Normal file
1
pkg/provider/nomad/fixtures/service_job4.json
Normal file
|
@ -0,0 +1 @@
|
|||
[]
|
18
pkg/provider/nomad/fixtures/service_job5task1.json
Normal file
18
pkg/provider/nomad/fixtures/service_job5task1.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
{
|
||||
"ID": "_nomad-task-a98bac3d-5382-3032-1954-57aff58b20c1-task1-job5task1-http",
|
||||
"ServiceName": "job5task1",
|
||||
"Namespace": "default",
|
||||
"NodeID": "e262ecb6-a7ac-7c3e-4de0-06445559e596",
|
||||
"Datacenter": "dc1",
|
||||
"JobID": "job5",
|
||||
"AllocID": "a98bac3d-5382-3032-1954-57aff58b20c1",
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"Address": "192.168.1.21",
|
||||
"Port": 24542,
|
||||
"CreateIndex": 10013,
|
||||
"ModifyIndex": 10013
|
||||
}
|
||||
]
|
18
pkg/provider/nomad/fixtures/service_job5task2.json
Normal file
18
pkg/provider/nomad/fixtures/service_job5task2.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
{
|
||||
"ID": "_nomad-task-a98bac3d-5382-3032-1954-57aff58b20c1-task2-job5task2-other",
|
||||
"ServiceName": "job5task2",
|
||||
"Namespace": "default",
|
||||
"NodeID": "e262ecb6-a7ac-7c3e-4de0-06445559e596",
|
||||
"Datacenter": "dc1",
|
||||
"JobID": "job5",
|
||||
"AllocID": "a98bac3d-5382-3032-1954-57aff58b20c1",
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
],
|
||||
"Address": "192.168.1.21",
|
||||
"Port": 30165,
|
||||
"CreateIndex": 10014,
|
||||
"ModifyIndex": 10014
|
||||
}
|
||||
]
|
1
pkg/provider/nomad/fixtures/service_job6task1.json
Normal file
1
pkg/provider/nomad/fixtures/service_job6task1.json
Normal file
|
@ -0,0 +1 @@
|
|||
[]
|
1
pkg/provider/nomad/fixtures/service_job6task2.json
Normal file
1
pkg/provider/nomad/fixtures/service_job6task2.json
Normal file
|
@ -0,0 +1 @@
|
|||
[]
|
20
pkg/provider/nomad/fixtures/service_job7.json
Normal file
20
pkg/provider/nomad/fixtures/service_job7.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
[
|
||||
{
|
||||
"ID": "_nomad-task-3e1cc853-f6b1-2c46-6f20-332a6e91794b-group-group1-job7-http",
|
||||
"ServiceName": "job7",
|
||||
"Namespace": "default",
|
||||
"NodeID": "e262ecb6-a7ac-7c3e-4de0-06445559e596",
|
||||
"Datacenter": "dc1",
|
||||
"JobID": "job7",
|
||||
"AllocID": "3e1cc853-f6b1-2c46-6f20-332a6e91794b",
|
||||
"Tags": [
|
||||
"traefik.enable=true",
|
||||
"traefik.tcp.routers.job7.rule=HostSNI(`job7`)",
|
||||
"traefik.tcp.routers.job7.tls.passthrough=true"
|
||||
],
|
||||
"Address": "192.168.1.21",
|
||||
"Port": 22899,
|
||||
"CreateIndex": 11224,
|
||||
"ModifyIndex": 11271
|
||||
}
|
||||
]
|
19
pkg/provider/nomad/fixtures/service_job8.json
Normal file
19
pkg/provider/nomad/fixtures/service_job8.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
[
|
||||
{
|
||||
"ID": "_nomad-task-fffd3d81-66ac-ed6d-d9a1-fc41b2a26d07-group-group1-job8-http",
|
||||
"ServiceName": "job8",
|
||||
"Namespace": "default",
|
||||
"NodeID": "e262ecb6-a7ac-7c3e-4de0-06445559e596",
|
||||
"Datacenter": "dc1",
|
||||
"JobID": "job8",
|
||||
"AllocID": "fffd3d81-66ac-ed6d-d9a1-fc41b2a26d07",
|
||||
"Tags": [
|
||||
"traefik.enable=true",
|
||||
"traefik.udp.routers.job8.service=job8"
|
||||
],
|
||||
"Address": "192.168.1.21",
|
||||
"Port": 24268,
|
||||
"CreateIndex": 11279,
|
||||
"ModifyIndex": 11300
|
||||
}
|
||||
]
|
1
pkg/provider/nomad/fixtures/service_job9.json
Normal file
1
pkg/provider/nomad/fixtures/service_job9.json
Normal file
|
@ -0,0 +1 @@
|
|||
[]
|
18
pkg/provider/nomad/fixtures/service_redis.json
Normal file
18
pkg/provider/nomad/fixtures/service_redis.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
{
|
||||
"Address": "127.0.0.1",
|
||||
"AllocID": "07501480-8175-8071-7da6-133bd1ff890f",
|
||||
"CreateIndex": 46,
|
||||
"Datacenter": "dc1",
|
||||
"ID": "_nomad-task-07501480-8175-8071-7da6-133bd1ff890f-group-redis-redis-redis",
|
||||
"JobID": "echo",
|
||||
"ModifyIndex": 46,
|
||||
"Namespace": "default",
|
||||
"NodeID": "6d7f412e-e7ff-2e66-d47b-867b0e9d8726",
|
||||
"Port": 30826,
|
||||
"ServiceName": "redis",
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
]
|
||||
}
|
||||
]
|
21
pkg/provider/nomad/fixtures/services.json
Normal file
21
pkg/provider/nomad/fixtures/services.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
[
|
||||
{
|
||||
"Namespace": "default",
|
||||
"Services": [
|
||||
{
|
||||
"ServiceName": "redis",
|
||||
"Tags": [
|
||||
"traefik.enable=true"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ServiceName": "hello-nomad",
|
||||
"Tags": [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.hellon.entrypoints=web",
|
||||
"traefik.http.routers.hellon.service=hello-nomad"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue