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