github.com/docker/compose-on-kubernetes@v0.5.0/internal/controller/testcases/test-ucp-no-dtr.json (about) 1 { 2 "Stack": { 3 "metadata": { 4 "name": "test-no-dtr", 5 "namespace": "default", 6 "selfLink": "/apis/compose.docker.com/v1beta2/namespaces/default/stacks/test-no-dtr", 7 "uid": "195d3b6d-ba7a-11e8-a403-5ac39540ac69", 8 "resourceVersion": "1024", 9 "creationTimestamp": "2018-09-17T13:03:40Z", 10 "annotations": { 11 "stack.compose.docker.com/revision-1": "{\"services\":[{\"name\":\"notag\",\"deploy\":{\"resources\":{},\"placement\":{}},\"image\":\"nginx\",\"ports\":[{\"mode\":\"ingress\",\"target\":80,\"published\":32769,\"protocol\":\"tcp\"}]},{\"name\":\"with-randomport\",\"deploy\":{\"resources\":{},\"placement\":{}},\"image\":\"nginx\",\"ports\":[{\"mode\":\"ingress\",\"target\":80,\"protocol\":\"tcp\"}],\"volumes\":[{\"type\":\"volume\",\"source\":\"test-volume\",\"target\":\"/test-data\"}]},{\"name\":\"with-tag\",\"deploy\":{\"mode\":\"global\",\"resources\":{},\"placement\":{}},\"image\":\"nginx:1.15.3-alpine\",\"ports\":[{\"mode\":\"ingress\",\"target\":80,\"published\":32770,\"protocol\":\"tcp\"}]}]}" 12 } 13 }, 14 "spec": { 15 "services": [ 16 { 17 "name": "notag", 18 "deploy": { 19 "resources": {}, 20 "placement": {} 21 }, 22 "image": "nginx", 23 "ports": [ 24 { 25 "mode": "ingress", 26 "target": 80, 27 "published": 32769, 28 "protocol": "tcp" 29 } 30 ] 31 }, 32 { 33 "name": "with-randomport", 34 "deploy": { 35 "resources": {}, 36 "placement": {} 37 }, 38 "image": "nginx", 39 "ports": [ 40 { 41 "mode": "ingress", 42 "target": 80, 43 "protocol": "tcp" 44 } 45 ] 46 }, 47 { 48 "name": "with-tag", 49 "deploy": { 50 "mode": "global", 51 "resources": {}, 52 "placement": {} 53 }, 54 "image": "nginx:1.15.3-alpine", 55 "ports": [ 56 { 57 "mode": "ingress", 58 "target": 80, 59 "published": 32770, 60 "protocol": "tcp" 61 } 62 ] 63 } 64 ] 65 }, 66 "status": { 67 "phase": "Available", 68 "message": "Stack is started" 69 } 70 }, 71 "Children": { 72 "Deployments": { 73 "default/notag": { 74 "metadata": { 75 "name": "notag", 76 "namespace": "default", 77 "selfLink": "/apis/apps/v1/namespaces/default/deployments/notag", 78 "uid": "197a0726-ba7a-11e8-a33a-0242ac11000e", 79 "resourceVersion": "1031", 80 "generation": 5, 81 "creationTimestamp": "2018-09-17T13:03:41Z", 82 "labels": { 83 "com.docker.service.id": "test-no-dtr-notag", 84 "com.docker.service.name": "notag", 85 "com.docker.stack.namespace": "test-no-dtr" 86 }, 87 "annotations": { 88 "deployment.kubernetes.io/revision": "1" 89 }, 90 "ownerReferences": [ 91 { 92 "apiVersion": "compose.docker.com/v1beta2", 93 "kind": "Stack", 94 "name": "test-no-dtr", 95 "uid": "195d3b6d-ba7a-11e8-a403-5ac39540ac69", 96 "controller": true, 97 "blockOwnerDeletion": true 98 } 99 ] 100 }, 101 "spec": { 102 "replicas": 1, 103 "selector": { 104 "matchLabels": { 105 "com.docker.service.id": "test-no-dtr-notag", 106 "com.docker.service.name": "notag", 107 "com.docker.stack.namespace": "test-no-dtr" 108 } 109 }, 110 "template": { 111 "metadata": { 112 "creationTimestamp": null, 113 "labels": { 114 "com.docker.service.id": "test-no-dtr-notag", 115 "com.docker.service.name": "notag", 116 "com.docker.stack.namespace": "test-no-dtr" 117 } 118 }, 119 "spec": { 120 "containers": [ 121 { 122 "name": "notag", 123 "image": "nginx", 124 "ports": [ 125 { 126 "containerPort": 80, 127 "protocol": "TCP" 128 } 129 ], 130 "resources": {}, 131 "terminationMessagePath": "/dev/termination-log", 132 "terminationMessagePolicy": "File", 133 "imagePullPolicy": "IfNotPresent" 134 } 135 ], 136 "restartPolicy": "Always", 137 "terminationGracePeriodSeconds": 30, 138 "dnsPolicy": "ClusterFirst", 139 "securityContext": {}, 140 "affinity": { 141 "nodeAffinity": { 142 "requiredDuringSchedulingIgnoredDuringExecution": { 143 "nodeSelectorTerms": [ 144 { 145 "matchExpressions": [ 146 { 147 "key": "beta.kubernetes.io/os", 148 "operator": "In", 149 "values": [ 150 "linux" 151 ] 152 }, 153 { 154 "key": "beta.kubernetes.io/arch", 155 "operator": "In", 156 "values": [ 157 "amd64" 158 ] 159 } 160 ] 161 } 162 ] 163 } 164 } 165 }, 166 "schedulerName": "default-scheduler", 167 "tolerations": [ 168 { 169 "key": "com.docker.ucp.manager", 170 "operator": "Exists" 171 } 172 ] 173 } 174 }, 175 "strategy": { 176 "type": "RollingUpdate", 177 "rollingUpdate": { 178 "maxUnavailable": "25%", 179 "maxSurge": "25%" 180 } 181 }, 182 "revisionHistoryLimit": 3, 183 "progressDeadlineSeconds": 600 184 }, 185 "status": { 186 "observedGeneration": 5, 187 "replicas": 1, 188 "updatedReplicas": 1, 189 "readyReplicas": 1, 190 "availableReplicas": 1, 191 "conditions": [ 192 { 193 "type": "Available", 194 "status": "True", 195 "lastUpdateTime": "2018-09-17T13:03:49Z", 196 "lastTransitionTime": "2018-09-17T13:03:49Z", 197 "reason": "MinimumReplicasAvailable", 198 "message": "Deployment has minimum availability." 199 }, 200 { 201 "type": "Progressing", 202 "status": "True", 203 "lastUpdateTime": "2018-09-17T13:03:49Z", 204 "lastTransitionTime": "2018-09-17T13:03:41Z", 205 "reason": "NewReplicaSetAvailable", 206 "message": "ReplicaSet \"notag-d978cdcd5\" has successfully progressed." 207 } 208 ] 209 } 210 }, 211 "default/with-randomport": { 212 "metadata": { 213 "name": "with-randomport", 214 "namespace": "default", 215 "selfLink": "/apis/apps/v1/namespaces/default/deployments/with-randomport", 216 "uid": "65584e50-ba7a-11e8-a33a-0242ac11000e", 217 "resourceVersion": "1030", 218 "generation": 2, 219 "creationTimestamp": "2018-09-17T13:05:48Z", 220 "labels": { 221 "com.docker.service.id": "test-no-dtr-with-randomport", 222 "com.docker.service.name": "with-randomport", 223 "com.docker.stack.namespace": "test-no-dtr" 224 }, 225 "annotations": { 226 "deployment.kubernetes.io/revision": "1" 227 }, 228 "ownerReferences": [ 229 { 230 "apiVersion": "compose.docker.com/v1beta2", 231 "kind": "Stack", 232 "name": "test-no-dtr", 233 "uid": "195d3b6d-ba7a-11e8-a403-5ac39540ac69", 234 "controller": true, 235 "blockOwnerDeletion": true 236 } 237 ] 238 }, 239 "spec": { 240 "replicas": 1, 241 "selector": { 242 "matchLabels": { 243 "com.docker.service.id": "test-no-dtr-with-randomport", 244 "com.docker.service.name": "with-randomport", 245 "com.docker.stack.namespace": "test-no-dtr" 246 } 247 }, 248 "template": { 249 "metadata": { 250 "creationTimestamp": null, 251 "labels": { 252 "com.docker.service.id": "test-no-dtr-with-randomport", 253 "com.docker.service.name": "with-randomport", 254 "com.docker.stack.namespace": "test-no-dtr" 255 } 256 }, 257 "spec": { 258 "containers": [ 259 { 260 "name": "with-randomport", 261 "image": "nginx", 262 "ports": [ 263 { 264 "containerPort": 80, 265 "protocol": "TCP" 266 } 267 ], 268 "resources": {}, 269 "terminationMessagePath": "/dev/termination-log", 270 "terminationMessagePolicy": "File", 271 "imagePullPolicy": "IfNotPresent" 272 } 273 ], 274 "restartPolicy": "Always", 275 "terminationGracePeriodSeconds": 30, 276 "dnsPolicy": "ClusterFirst", 277 "securityContext": {}, 278 "affinity": { 279 "nodeAffinity": { 280 "requiredDuringSchedulingIgnoredDuringExecution": { 281 "nodeSelectorTerms": [ 282 { 283 "matchExpressions": [ 284 { 285 "key": "beta.kubernetes.io/os", 286 "operator": "In", 287 "values": [ 288 "linux" 289 ] 290 }, 291 { 292 "key": "beta.kubernetes.io/arch", 293 "operator": "In", 294 "values": [ 295 "amd64" 296 ] 297 } 298 ] 299 } 300 ] 301 } 302 } 303 }, 304 "schedulerName": "default-scheduler", 305 "tolerations": [ 306 { 307 "key": "com.docker.ucp.manager", 308 "operator": "Exists" 309 } 310 ] 311 } 312 }, 313 "strategy": { 314 "type": "RollingUpdate", 315 "rollingUpdate": { 316 "maxUnavailable": "25%", 317 "maxSurge": "25%" 318 } 319 }, 320 "revisionHistoryLimit": 3, 321 "progressDeadlineSeconds": 600 322 }, 323 "status": { 324 "observedGeneration": 2, 325 "replicas": 1, 326 "updatedReplicas": 1, 327 "readyReplicas": 1, 328 "availableReplicas": 1, 329 "conditions": [ 330 { 331 "type": "Available", 332 "status": "True", 333 "lastUpdateTime": "2018-09-17T13:05:51Z", 334 "lastTransitionTime": "2018-09-17T13:05:51Z", 335 "reason": "MinimumReplicasAvailable", 336 "message": "Deployment has minimum availability." 337 }, 338 { 339 "type": "Progressing", 340 "status": "True", 341 "lastUpdateTime": "2018-09-17T13:05:51Z", 342 "lastTransitionTime": "2018-09-17T13:05:48Z", 343 "reason": "NewReplicaSetAvailable", 344 "message": "ReplicaSet \"with-randomport-6fcbd47cc5\" has successfully progressed." 345 } 346 ] 347 } 348 } 349 }, 350 "Statefulsets": {}, 351 "Daemonsets": { 352 "default/with-tag": { 353 "metadata": { 354 "name": "with-tag", 355 "namespace": "default", 356 "selfLink": "/apis/apps/v1/namespaces/default/daemonsets/with-tag", 357 "uid": "198e7762-ba7a-11e8-a33a-0242ac11000e", 358 "resourceVersion": "771", 359 "generation": 1, 360 "creationTimestamp": "2018-09-17T13:03:41Z", 361 "labels": { 362 "com.docker.service.id": "test-no-dtr-with-tag", 363 "com.docker.service.name": "with-tag", 364 "com.docker.stack.namespace": "test-no-dtr" 365 }, 366 "annotations": { 367 "deprecated.daemonset.template.generation": "1" 368 }, 369 "ownerReferences": [ 370 { 371 "apiVersion": "compose.docker.com/v1beta2", 372 "kind": "Stack", 373 "name": "test-no-dtr", 374 "uid": "195d3b6d-ba7a-11e8-a403-5ac39540ac69", 375 "controller": true, 376 "blockOwnerDeletion": true 377 } 378 ] 379 }, 380 "spec": { 381 "selector": { 382 "matchLabels": { 383 "com.docker.service.id": "test-no-dtr-with-tag", 384 "com.docker.service.name": "with-tag", 385 "com.docker.stack.namespace": "test-no-dtr" 386 } 387 }, 388 "template": { 389 "metadata": { 390 "creationTimestamp": null, 391 "labels": { 392 "com.docker.service.id": "test-no-dtr-with-tag", 393 "com.docker.service.name": "with-tag", 394 "com.docker.stack.namespace": "test-no-dtr" 395 } 396 }, 397 "spec": { 398 "containers": [ 399 { 400 "name": "with-tag", 401 "image": "nginx:1.15.3-alpine", 402 "ports": [ 403 { 404 "containerPort": 80, 405 "protocol": "TCP" 406 } 407 ], 408 "resources": {}, 409 "terminationMessagePath": "/dev/termination-log", 410 "terminationMessagePolicy": "File", 411 "imagePullPolicy": "IfNotPresent" 412 } 413 ], 414 "restartPolicy": "Always", 415 "terminationGracePeriodSeconds": 30, 416 "dnsPolicy": "ClusterFirst", 417 "securityContext": {}, 418 "affinity": { 419 "nodeAffinity": { 420 "requiredDuringSchedulingIgnoredDuringExecution": { 421 "nodeSelectorTerms": [ 422 { 423 "matchExpressions": [ 424 { 425 "key": "beta.kubernetes.io/os", 426 "operator": "In", 427 "values": [ 428 "linux" 429 ] 430 }, 431 { 432 "key": "beta.kubernetes.io/arch", 433 "operator": "In", 434 "values": [ 435 "amd64" 436 ] 437 } 438 ] 439 } 440 ] 441 } 442 } 443 }, 444 "schedulerName": "default-scheduler", 445 "tolerations": [ 446 { 447 "key": "com.docker.ucp.manager", 448 "operator": "Exists" 449 } 450 ] 451 } 452 }, 453 "updateStrategy": { 454 "type": "RollingUpdate", 455 "rollingUpdate": { 456 "maxUnavailable": 1 457 } 458 }, 459 "revisionHistoryLimit": 10 460 }, 461 "status": { 462 "currentNumberScheduled": 1, 463 "numberMisscheduled": 0, 464 "desiredNumberScheduled": 1, 465 "numberReady": 1, 466 "observedGeneration": 1, 467 "updatedNumberScheduled": 1, 468 "numberAvailable": 1 469 } 470 } 471 }, 472 "Services": { 473 "default/notag": { 474 "metadata": { 475 "name": "notag", 476 "namespace": "default", 477 "selfLink": "/api/v1/namespaces/default/services/notag", 478 "uid": "197cd089-ba7a-11e8-a33a-0242ac11000e", 479 "resourceVersion": "691", 480 "creationTimestamp": "2018-09-17T13:03:41Z", 481 "labels": { 482 "com.docker.service.id": "test-no-dtr-notag", 483 "com.docker.service.name": "notag", 484 "com.docker.stack.namespace": "test-no-dtr" 485 }, 486 "ownerReferences": [ 487 { 488 "apiVersion": "compose.docker.com/v1beta2", 489 "kind": "Stack", 490 "name": "test-no-dtr", 491 "uid": "195d3b6d-ba7a-11e8-a403-5ac39540ac69", 492 "controller": true, 493 "blockOwnerDeletion": true 494 } 495 ] 496 }, 497 "spec": { 498 "ports": [ 499 { 500 "name": "headless", 501 "protocol": "TCP", 502 "port": 55555, 503 "targetPort": 55555 504 } 505 ], 506 "selector": { 507 "com.docker.service.id": "test-no-dtr-notag", 508 "com.docker.service.name": "notag", 509 "com.docker.stack.namespace": "test-no-dtr" 510 }, 511 "clusterIP": "None", 512 "type": "ClusterIP", 513 "sessionAffinity": "None" 514 }, 515 "status": { 516 "loadBalancer": {} 517 } 518 }, 519 "default/notag-published": { 520 "metadata": { 521 "name": "notag-published", 522 "namespace": "default", 523 "selfLink": "/api/v1/namespaces/default/services/notag-published", 524 "uid": "197ebe69-ba7a-11e8-a33a-0242ac11000e", 525 "resourceVersion": "694", 526 "creationTimestamp": "2018-09-17T13:03:41Z", 527 "labels": { 528 "com.docker.service.id": "test-no-dtr-notag", 529 "com.docker.service.name": "notag", 530 "com.docker.stack.namespace": "test-no-dtr" 531 }, 532 "ownerReferences": [ 533 { 534 "apiVersion": "compose.docker.com/v1beta2", 535 "kind": "Stack", 536 "name": "test-no-dtr", 537 "uid": "195d3b6d-ba7a-11e8-a403-5ac39540ac69", 538 "controller": true, 539 "blockOwnerDeletion": true 540 } 541 ] 542 }, 543 "spec": { 544 "ports": [ 545 { 546 "name": "32769-tcp", 547 "protocol": "TCP", 548 "port": 80, 549 "targetPort": 80, 550 "nodePort": 32769 551 } 552 ], 553 "selector": { 554 "com.docker.service.id": "test-no-dtr-notag", 555 "com.docker.service.name": "notag", 556 "com.docker.stack.namespace": "test-no-dtr" 557 }, 558 "clusterIP": "10.96.251.71", 559 "type": "NodePort", 560 "sessionAffinity": "None", 561 "externalTrafficPolicy": "Cluster" 562 }, 563 "status": { 564 "loadBalancer": {} 565 } 566 }, 567 "default/with-randomport": { 568 "metadata": { 569 "name": "with-randomport", 570 "namespace": "default", 571 "selfLink": "/api/v1/namespaces/default/services/with-randomport", 572 "uid": "19846b0f-ba7a-11e8-a33a-0242ac11000e", 573 "resourceVersion": "697", 574 "creationTimestamp": "2018-09-17T13:03:41Z", 575 "labels": { 576 "com.docker.service.id": "test-no-dtr-with-randomport", 577 "com.docker.service.name": "with-randomport", 578 "com.docker.stack.namespace": "test-no-dtr" 579 }, 580 "ownerReferences": [ 581 { 582 "apiVersion": "compose.docker.com/v1beta2", 583 "kind": "Stack", 584 "name": "test-no-dtr", 585 "uid": "195d3b6d-ba7a-11e8-a403-5ac39540ac69", 586 "controller": true, 587 "blockOwnerDeletion": true 588 } 589 ] 590 }, 591 "spec": { 592 "ports": [ 593 { 594 "name": "headless", 595 "protocol": "TCP", 596 "port": 55555, 597 "targetPort": 55555 598 } 599 ], 600 "selector": { 601 "com.docker.service.id": "test-no-dtr-with-randomport", 602 "com.docker.service.name": "with-randomport", 603 "com.docker.stack.namespace": "test-no-dtr" 604 }, 605 "clusterIP": "None", 606 "type": "ClusterIP", 607 "sessionAffinity": "None" 608 }, 609 "status": { 610 "loadBalancer": {} 611 } 612 }, 613 "default/with-randomport-random-ports": { 614 "metadata": { 615 "name": "with-randomport-random-ports", 616 "namespace": "default", 617 "selfLink": "/api/v1/namespaces/default/services/with-randomport-random-ports", 618 "uid": "19888cc3-ba7a-11e8-a33a-0242ac11000e", 619 "resourceVersion": "706", 620 "creationTimestamp": "2018-09-17T13:03:41Z", 621 "labels": { 622 "com.docker.service.id": "test-no-dtr-with-randomport", 623 "com.docker.service.name": "with-randomport", 624 "com.docker.stack.namespace": "test-no-dtr" 625 } 626 }, 627 "spec": { 628 "ports": [ 629 { 630 "name": "80-tcp", 631 "protocol": "TCP", 632 "port": 80, 633 "targetPort": 80, 634 "nodePort": 34090 635 } 636 ], 637 "selector": { 638 "com.docker.service.id": "test-no-dtr-with-randomport", 639 "com.docker.service.name": "with-randomport", 640 "com.docker.stack.namespace": "test-no-dtr" 641 }, 642 "clusterIP": "10.96.183.60", 643 "type": "NodePort", 644 "sessionAffinity": "None", 645 "externalTrafficPolicy": "Cluster" 646 }, 647 "status": { 648 "loadBalancer": {} 649 } 650 }, 651 "default/with-tag": { 652 "metadata": { 653 "name": "with-tag", 654 "namespace": "default", 655 "selfLink": "/api/v1/namespaces/default/services/with-tag", 656 "uid": "1990d3a2-ba7a-11e8-a33a-0242ac11000e", 657 "resourceVersion": "713", 658 "creationTimestamp": "2018-09-17T13:03:41Z", 659 "labels": { 660 "com.docker.service.id": "test-no-dtr-with-tag", 661 "com.docker.service.name": "with-tag", 662 "com.docker.stack.namespace": "test-no-dtr" 663 }, 664 "ownerReferences": [ 665 { 666 "apiVersion": "compose.docker.com/v1beta2", 667 "kind": "Stack", 668 "name": "test-no-dtr", 669 "uid": "195d3b6d-ba7a-11e8-a403-5ac39540ac69", 670 "controller": true, 671 "blockOwnerDeletion": true 672 } 673 ] 674 }, 675 "spec": { 676 "ports": [ 677 { 678 "name": "headless", 679 "protocol": "TCP", 680 "port": 55555, 681 "targetPort": 55555 682 } 683 ], 684 "selector": { 685 "com.docker.service.id": "test-no-dtr-with-tag", 686 "com.docker.service.name": "with-tag", 687 "com.docker.stack.namespace": "test-no-dtr" 688 }, 689 "clusterIP": "None", 690 "type": "ClusterIP", 691 "sessionAffinity": "None" 692 }, 693 "status": { 694 "loadBalancer": {} 695 } 696 }, 697 "default/with-tag-published": { 698 "metadata": { 699 "name": "with-tag-published", 700 "namespace": "default", 701 "selfLink": "/api/v1/namespaces/default/services/with-tag-published", 702 "uid": "19b9e74f-ba7a-11e8-a33a-0242ac11000e", 703 "resourceVersion": "739", 704 "creationTimestamp": "2018-09-17T13:03:41Z", 705 "labels": { 706 "com.docker.service.id": "test-no-dtr-with-tag", 707 "com.docker.service.name": "with-tag", 708 "com.docker.stack.namespace": "test-no-dtr" 709 }, 710 "ownerReferences": [ 711 { 712 "apiVersion": "compose.docker.com/v1beta2", 713 "kind": "Stack", 714 "name": "test-no-dtr", 715 "uid": "195d3b6d-ba7a-11e8-a403-5ac39540ac69", 716 "controller": true, 717 "blockOwnerDeletion": true 718 } 719 ] 720 }, 721 "spec": { 722 "ports": [ 723 { 724 "name": "32770-tcp", 725 "protocol": "TCP", 726 "port": 80, 727 "targetPort": 80, 728 "nodePort": 32770 729 } 730 ], 731 "selector": { 732 "com.docker.service.id": "test-no-dtr-with-tag", 733 "com.docker.service.name": "with-tag", 734 "com.docker.stack.namespace": "test-no-dtr" 735 }, 736 "clusterIP": "10.96.13.30", 737 "type": "NodePort", 738 "sessionAffinity": "None", 739 "externalTrafficPolicy": "Cluster" 740 }, 741 "status": { 742 "loadBalancer": {} 743 } 744 } 745 } 746 } 747 }