Skip to content

Commit

Permalink
Update swagger with DNSConfig and GPU (#4373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Xu authored and annatisch committed Nov 2, 2018
1 parent 47a559d commit ffc3493
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,10 @@
"description": "The CPU request of this container instance.",
"type": "number",
"format": "double"
},
"gpu": {
"description": "The GPU request of this container instance.",
"$ref": "#/definitions/GpuResource"
}
}
},
Expand All @@ -728,6 +732,38 @@
"description": "The CPU limit of this container instance.",
"type": "number",
"format": "double"
},
"gpu": {
"description": "The GPU limit of this container instance.",
"$ref": "#/definitions/GpuResource"
}
}
},
"GpuResource": {
"description": "The GPU resource.",
"type": "object",
"required": [
"count",
"sku"
],
"properties": {
"count": {
"description": "The count of the GPU resource.",
"type": "integer",
"format": "int32"
},
"sku": {
"type": "string",
"description": "The SKU of the GPU resource.",
"enum": [
"K80",
"P100",
"V100"
],
"x-ms-enum": {
"name": "GpuSku",
"modelAsString": true
}
}
}
},
Expand Down Expand Up @@ -1020,6 +1056,10 @@
"networkProfile": {
"description": "The network profile information for a container group.",
"$ref": "#/definitions/ContainerGroupNetworkProfile"
},
"dnsConfig": {
"description": "The DNS config information for a container group.",
"$ref": "#/definitions/DnsConfiguration"
}
},
"required": [
Expand Down Expand Up @@ -1457,6 +1497,30 @@
}
}
},
"DnsConfiguration": {
"description": "DNS configuration for the container group.",
"type": "object",
"required": [
"nameServers"
],
"properties": {
"nameServers": {
"description": "The DNS servers for the container group.",
"type": "array",
"items": {
"type": "string"
}
},
"searchDomains": {
"description": "The DNS search domains for hostname lookup in the container group.",
"type": "string"
},
"options": {
"description": "The DNS options for the container group.",
"type": "string"
}
}
},
"Resource": {
"type": "object",
"description": "The Resource model definition.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5
"memoryInGB": 1.5,
"gpu": {
"count": 1,
"sku": "K80"
}
}
},
"volumeMounts": [
Expand Down Expand Up @@ -66,6 +70,11 @@
"networkProfile": {
"id": "test-network-profile-id"
},
"dnsConfig": {
"nameServers": [ "1.1.1.1" ],
"searchDomains": "cluster.local svc.cluster.local",
"options": "ndots:2"
},
"imageRegistryCredentials": [],
"ipAddress": {
"ports": [
Expand Down Expand Up @@ -126,7 +135,11 @@
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5
"memoryInGB": 1.5,
"gpu": {
"count": 1,
"sku": "K80"
}
}
},
"volumeMounts": [
Expand Down Expand Up @@ -155,6 +168,11 @@
"workspaceKey": ""
}
},
"dnsConfig": {
"nameServers": [ "1.1.1.1" ],
"searchDomains": "cluster.local svc.cluster.local",
"options": "ndots:2"
},
"imageRegistryCredentials": [],
"ipAddress": {
"ip": "10.0.0.1",
Expand Down Expand Up @@ -212,7 +230,11 @@
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5
"memoryInGB": 1.5,
"gpu": {
"count": 1,
"sku": "K80"
}
}
},
"volumeMounts": [
Expand All @@ -235,6 +257,9 @@
}
}
],
"dnsConfig": {
"nameServers": [ "1.1.1.1" ]
},
"imageRegistryCredentials": [],
"ipAddress": {
"ip": "10.0.0.1",
Expand Down

0 comments on commit ffc3493

Please sign in to comment.