github.com/docker/compose-on-kubernetes@v0.5.0/internal/controller/testcases/d4d-with-statefulset.json (about)

     1  {
     2      "Stack": {
     3          "metadata": {
     4              "name": "d4d-with-statefulset",
     5              "namespace": "default",
     6              "selfLink": "/apis/compose.docker.com/v1beta2/namespaces/default/stacks/d4d-with-statefulset",
     7              "uid": "4a34478c-bbf2-11e8-9cff-00155d0027c4",
     8              "resourceVersion": "723",
     9              "creationTimestamp": "2018-09-19T09:56:33Z"
    10          },
    11          "spec": {
    12              "services": [
    13                  {
    14                      "name": "db",
    15                      "deploy": {
    16                          "resources": {},
    17                          "placement": {}
    18                      },
    19                      "image": "dockerdemos/lab-db",
    20                      "volumes": [
    21                          {
    22                              "type": "volume",
    23                              "source": "test-volume",
    24                              "target": "/test-volume"
    25                          }
    26                      ]
    27                  },
    28                  {
    29                      "name": "web",
    30                      "deploy": {
    31                          "resources": {},
    32                          "placement": {}
    33                      },
    34                      "image": "dockerdemos/lab-web",
    35                      "ports": [
    36                          {
    37                              "mode": "ingress",
    38                              "target": 80,
    39                              "published": 80,
    40                              "protocol": "tcp"
    41                          }
    42                      ]
    43                  },
    44                  {
    45                      "name": "words",
    46                      "deploy": {
    47                          "replicas": 5,
    48                          "resources": {},
    49                          "placement": {}
    50                      },
    51                      "image": "dockerdemos/lab-words"
    52                  }
    53              ]
    54          },
    55          "status": {
    56              "phase": "Available",
    57              "message": "Stack is started"
    58          }
    59      },
    60      "Children": {
    61          "Deployments": {
    62              "default/web": {
    63                  "metadata": {
    64                      "name": "web",
    65                      "namespace": "default",
    66                      "selfLink": "/apis/apps/v1/namespaces/default/deployments/web",
    67                      "uid": "4a5d59bb-bbf2-11e8-bf31-00155d0027c4",
    68                      "resourceVersion": "737",
    69                      "generation": 5,
    70                      "creationTimestamp": "2018-09-19T09:56:33Z",
    71                      "labels": {
    72                          "com.docker.service.id": "d4d-with-statefulset-web",
    73                          "com.docker.service.name": "web",
    74                          "com.docker.stack.namespace": "d4d-with-statefulset"
    75                      },
    76                      "annotations": {
    77                          "deployment.kubernetes.io/revision": "1"
    78                      },
    79                      "ownerReferences": [
    80                          {
    81                              "apiVersion": "compose.docker.com/v1beta2",
    82                              "kind": "Stack",
    83                              "name": "d4d-with-statefulset",
    84                              "uid": "4a34478c-bbf2-11e8-9cff-00155d0027c4",
    85                              "controller": true,
    86                              "blockOwnerDeletion": true
    87                          }
    88                      ]
    89                  },
    90                  "spec": {
    91                      "replicas": 1,
    92                      "selector": {
    93                          "matchLabels": {
    94                              "com.docker.service.id": "d4d-with-statefulset-web",
    95                              "com.docker.service.name": "web",
    96                              "com.docker.stack.namespace": "d4d-with-statefulset"
    97                          }
    98                      },
    99                      "template": {
   100                          "metadata": {
   101                              "creationTimestamp": null,
   102                              "labels": {
   103                                  "com.docker.service.id": "d4d-with-statefulset-web",
   104                                  "com.docker.service.name": "web",
   105                                  "com.docker.stack.namespace": "d4d-with-statefulset"
   106                              }
   107                          },
   108                          "spec": {
   109                              "containers": [
   110                                  {
   111                                      "name": "web",
   112                                      "image": "dockerdemos/lab-web",
   113                                      "ports": [
   114                                          {
   115                                              "containerPort": 80,
   116                                              "protocol": "TCP"
   117                                          }
   118                                      ],
   119                                      "resources": {},
   120                                      "terminationMessagePath": "/dev/termination-log",
   121                                      "terminationMessagePolicy": "File",
   122                                      "imagePullPolicy": "IfNotPresent"
   123                                  }
   124                              ],
   125                              "restartPolicy": "Always",
   126                              "terminationGracePeriodSeconds": 30,
   127                              "dnsPolicy": "ClusterFirst",
   128                              "securityContext": {},
   129                              "affinity": {
   130                                  "nodeAffinity": {
   131                                    "requiredDuringSchedulingIgnoredDuringExecution": {
   132                                      "nodeSelectorTerms": [
   133                                        {
   134                                          "matchExpressions": [
   135                                            {
   136                                              "key": "beta.kubernetes.io/os",
   137                                              "operator": "In",
   138                                              "values": [
   139                                                "linux"
   140                                              ]
   141                                            },
   142                                            {
   143                                              "key": "beta.kubernetes.io/arch",
   144                                              "operator": "In",
   145                                              "values": [
   146                                                "amd64"
   147                                              ]
   148                                            }
   149                                          ]
   150                                        }
   151                                      ]
   152                                    }
   153                                  }
   154                                },
   155                              "schedulerName": "default-scheduler"
   156                          }
   157                      },
   158                      "strategy": {
   159                          "type": "RollingUpdate",
   160                          "rollingUpdate": {
   161                              "maxUnavailable": "25%",
   162                              "maxSurge": "25%"
   163                          }
   164                      },
   165                      "revisionHistoryLimit": 3,
   166                      "progressDeadlineSeconds": 600
   167                  },
   168                  "status": {
   169                      "observedGeneration": 5,
   170                      "replicas": 1,
   171                      "updatedReplicas": 1,
   172                      "readyReplicas": 1,
   173                      "availableReplicas": 1,
   174                      "conditions": [
   175                          {
   176                              "type": "Available",
   177                              "status": "True",
   178                              "lastUpdateTime": "2018-09-19T09:56:40Z",
   179                              "lastTransitionTime": "2018-09-19T09:56:40Z",
   180                              "reason": "MinimumReplicasAvailable",
   181                              "message": "Deployment has minimum availability."
   182                          },
   183                          {
   184                              "type": "Progressing",
   185                              "status": "True",
   186                              "lastUpdateTime": "2018-09-19T09:56:40Z",
   187                              "lastTransitionTime": "2018-09-19T09:56:33Z",
   188                              "reason": "NewReplicaSetAvailable",
   189                              "message": "ReplicaSet \"web-75bbff95b5\" has successfully progressed."
   190                          }
   191                      ]
   192                  }
   193              },
   194              "default/words": {
   195                  "metadata": {
   196                      "name": "words",
   197                      "namespace": "default",
   198                      "selfLink": "/apis/apps/v1/namespaces/default/deployments/words",
   199                      "uid": "4a791af2-bbf2-11e8-bf31-00155d0027c4",
   200                      "resourceVersion": "740",
   201                      "generation": 5,
   202                      "creationTimestamp": "2018-09-19T09:56:34Z",
   203                      "labels": {
   204                          "com.docker.service.id": "d4d-with-statefulset-words",
   205                          "com.docker.service.name": "words",
   206                          "com.docker.stack.namespace": "d4d-with-statefulset"
   207                      },
   208                      "annotations": {
   209                          "deployment.kubernetes.io/revision": "1"
   210                      },
   211                      "ownerReferences": [
   212                          {
   213                              "apiVersion": "compose.docker.com/v1beta2",
   214                              "kind": "Stack",
   215                              "name": "d4d-with-statefulset",
   216                              "uid": "4a34478c-bbf2-11e8-9cff-00155d0027c4",
   217                              "controller": true,
   218                              "blockOwnerDeletion": true
   219                          }
   220                      ]
   221                  },
   222                  "spec": {
   223                      "replicas": 5,
   224                      "selector": {
   225                          "matchLabels": {
   226                              "com.docker.service.id": "d4d-with-statefulset-words",
   227                              "com.docker.service.name": "words",
   228                              "com.docker.stack.namespace": "d4d-with-statefulset"
   229                          }
   230                      },
   231                      "template": {
   232                          "metadata": {
   233                              "creationTimestamp": null,
   234                              "labels": {
   235                                  "com.docker.service.id": "d4d-with-statefulset-words",
   236                                  "com.docker.service.name": "words",
   237                                  "com.docker.stack.namespace": "d4d-with-statefulset"
   238                              }
   239                          },
   240                          "spec": {
   241                              "containers": [
   242                                  {
   243                                      "name": "words",
   244                                      "image": "dockerdemos/lab-words",
   245                                      "resources": {},
   246                                      "terminationMessagePath": "/dev/termination-log",
   247                                      "terminationMessagePolicy": "File",
   248                                      "imagePullPolicy": "IfNotPresent"
   249                                  }
   250                              ],
   251                              "restartPolicy": "Always",
   252                              "terminationGracePeriodSeconds": 30,
   253                              "dnsPolicy": "ClusterFirst",
   254                              "securityContext": {},
   255                              "affinity": {
   256                                  "nodeAffinity": {
   257                                    "requiredDuringSchedulingIgnoredDuringExecution": {
   258                                      "nodeSelectorTerms": [
   259                                        {
   260                                          "matchExpressions": [
   261                                            {
   262                                              "key": "beta.kubernetes.io/os",
   263                                              "operator": "In",
   264                                              "values": [
   265                                                "linux"
   266                                              ]
   267                                            },
   268                                            {
   269                                              "key": "beta.kubernetes.io/arch",
   270                                              "operator": "In",
   271                                              "values": [
   272                                                "amd64"
   273                                              ]
   274                                            }
   275                                          ]
   276                                        }
   277                                      ]
   278                                    }
   279                                  }
   280                                },
   281                              "schedulerName": "default-scheduler"
   282                          }
   283                      },
   284                      "strategy": {
   285                          "type": "RollingUpdate",
   286                          "rollingUpdate": {
   287                              "maxUnavailable": "25%",
   288                              "maxSurge": "25%"
   289                          }
   290                      },
   291                      "revisionHistoryLimit": 3,
   292                      "progressDeadlineSeconds": 600
   293                  },
   294                  "status": {
   295                      "observedGeneration": 5,
   296                      "replicas": 5,
   297                      "updatedReplicas": 5,
   298                      "readyReplicas": 5,
   299                      "availableReplicas": 5,
   300                      "conditions": [
   301                          {
   302                              "type": "Available",
   303                              "status": "True",
   304                              "lastUpdateTime": "2018-09-19T09:56:49Z",
   305                              "lastTransitionTime": "2018-09-19T09:56:49Z",
   306                              "reason": "MinimumReplicasAvailable",
   307                              "message": "Deployment has minimum availability."
   308                          },
   309                          {
   310                              "type": "Progressing",
   311                              "status": "True",
   312                              "lastUpdateTime": "2018-09-19T09:56:50Z",
   313                              "lastTransitionTime": "2018-09-19T09:56:34Z",
   314                              "reason": "NewReplicaSetAvailable",
   315                              "message": "ReplicaSet \"words-6667f65b44\" has successfully progressed."
   316                          }
   317                      ]
   318                  }
   319              }
   320          },
   321          "Statefulsets": {
   322              "default/db": {
   323                  "metadata": {
   324                      "name": "db",
   325                      "namespace": "default",
   326                      "selfLink": "/apis/apps/v1/namespaces/default/statefulsets/db",
   327                      "uid": "4a461a0d-bbf2-11e8-bf31-00155d0027c4",
   328                      "resourceVersion": "721",
   329                      "generation": 1,
   330                      "creationTimestamp": "2018-09-19T09:56:33Z",
   331                      "labels": {
   332                          "com.docker.service.id": "d4d-with-statefulset-db",
   333                          "com.docker.service.name": "db",
   334                          "com.docker.stack.namespace": "d4d-with-statefulset"
   335                      },
   336                      "ownerReferences": [
   337                          {
   338                              "apiVersion": "compose.docker.com/v1beta2",
   339                              "kind": "Stack",
   340                              "name": "d4d-with-statefulset",
   341                              "uid": "4a34478c-bbf2-11e8-9cff-00155d0027c4",
   342                              "controller": true,
   343                              "blockOwnerDeletion": true
   344                          }
   345                      ]
   346                  },
   347                  "spec": {
   348                      "replicas": 1,
   349                      "selector": {
   350                          "matchLabels": {
   351                              "com.docker.service.id": "d4d-with-statefulset-db",
   352                              "com.docker.service.name": "db",
   353                              "com.docker.stack.namespace": "d4d-with-statefulset"
   354                          }
   355                      },
   356                      "template": {
   357                          "metadata": {
   358                              "creationTimestamp": null,
   359                              "labels": {
   360                                  "com.docker.service.id": "d4d-with-statefulset-db",
   361                                  "com.docker.service.name": "db",
   362                                  "com.docker.stack.namespace": "d4d-with-statefulset"
   363                              }
   364                          },
   365                          "spec": {
   366                              "containers": [
   367                                  {
   368                                      "name": "db",
   369                                      "image": "dockerdemos/lab-db",
   370                                      "resources": {},
   371                                      "volumeMounts": [
   372                                          {
   373                                              "name": "test-volume",
   374                                              "mountPath": "/test-volume"
   375                                          }
   376                                      ],
   377                                      "terminationMessagePath": "/dev/termination-log",
   378                                      "terminationMessagePolicy": "File",
   379                                      "imagePullPolicy": "IfNotPresent"
   380                                  }
   381                              ],
   382                              "restartPolicy": "Always",
   383                              "terminationGracePeriodSeconds": 30,
   384                              "dnsPolicy": "ClusterFirst",
   385                              "securityContext": {},
   386                              "affinity": {
   387                                  "nodeAffinity": {
   388                                    "requiredDuringSchedulingIgnoredDuringExecution": {
   389                                      "nodeSelectorTerms": [
   390                                        {
   391                                          "matchExpressions": [
   392                                            {
   393                                              "key": "beta.kubernetes.io/os",
   394                                              "operator": "In",
   395                                              "values": [
   396                                                "linux"
   397                                              ]
   398                                            },
   399                                            {
   400                                              "key": "beta.kubernetes.io/arch",
   401                                              "operator": "In",
   402                                              "values": [
   403                                                "amd64"
   404                                              ]
   405                                            }
   406                                          ]
   407                                        }
   408                                      ]
   409                                    }
   410                                  }
   411                                },
   412                              "schedulerName": "default-scheduler"
   413                          }
   414                      },
   415                      "volumeClaimTemplates": [
   416                          {
   417                              "metadata": {
   418                                  "name": "test-volume",
   419                                  "creationTimestamp": null
   420                              },
   421                              "spec": {
   422                                  "accessModes": [
   423                                      "ReadWriteOnce"
   424                                  ],
   425                                  "resources": {
   426                                      "requests": {
   427                                          "storage": "100Mi"
   428                                      }
   429                                  }
   430                              },
   431                              "status": {
   432                                  "phase": "Pending"
   433                              }
   434                          }
   435                      ],
   436                      "serviceName": "",
   437                      "podManagementPolicy": "OrderedReady",
   438                      "updateStrategy": {
   439                          "type": "RollingUpdate",
   440                          "rollingUpdate": {
   441                              "partition": 0
   442                          }
   443                      },
   444                      "revisionHistoryLimit": 3
   445                  },
   446                  "status": {
   447                      "observedGeneration": 1,
   448                      "replicas": 1,
   449                      "readyReplicas": 1,
   450                      "currentReplicas": 1,
   451                      "currentRevision": "db-799479b8f8",
   452                      "updateRevision": "db-799479b8f8",
   453                      "collisionCount": 0
   454                  }
   455              }
   456          },
   457          "Daemonsets": {},
   458          "Services": {
   459              "default/db": {
   460                  "metadata": {
   461                      "name": "db",
   462                      "namespace": "default",
   463                      "selfLink": "/api/v1/namespaces/default/services/db",
   464                      "uid": "4a553586-bbf2-11e8-bf31-00155d0027c4",
   465                      "resourceVersion": "506",
   466                      "creationTimestamp": "2018-09-19T09:56:33Z",
   467                      "labels": {
   468                          "com.docker.service.id": "d4d-with-statefulset-db",
   469                          "com.docker.service.name": "db",
   470                          "com.docker.stack.namespace": "d4d-with-statefulset"
   471                      },
   472                      "ownerReferences": [
   473                          {
   474                              "apiVersion": "compose.docker.com/v1beta2",
   475                              "kind": "Stack",
   476                              "name": "d4d-with-statefulset",
   477                              "uid": "4a34478c-bbf2-11e8-9cff-00155d0027c4",
   478                              "controller": true,
   479                              "blockOwnerDeletion": true
   480                          }
   481                      ]
   482                  },
   483                  "spec": {
   484                      "ports": [
   485                          {
   486                              "name": "headless",
   487                              "protocol": "TCP",
   488                              "port": 55555,
   489                              "targetPort": 55555
   490                          }
   491                      ],
   492                      "selector": {
   493                          "com.docker.service.id": "d4d-with-statefulset-db",
   494                          "com.docker.service.name": "db",
   495                          "com.docker.stack.namespace": "d4d-with-statefulset"
   496                      },
   497                      "clusterIP": "None",
   498                      "type": "ClusterIP",
   499                      "sessionAffinity": "None"
   500                  },
   501                  "status": {
   502                      "loadBalancer": {}
   503                  }
   504              },
   505              "default/web": {
   506                  "metadata": {
   507                      "name": "web",
   508                      "namespace": "default",
   509                      "selfLink": "/api/v1/namespaces/default/services/web",
   510                      "uid": "4a621131-bbf2-11e8-bf31-00155d0027c4",
   511                      "resourceVersion": "512",
   512                      "creationTimestamp": "2018-09-19T09:56:33Z",
   513                      "labels": {
   514                          "com.docker.service.id": "d4d-with-statefulset-web",
   515                          "com.docker.service.name": "web",
   516                          "com.docker.stack.namespace": "d4d-with-statefulset"
   517                      },
   518                      "ownerReferences": [
   519                          {
   520                              "apiVersion": "compose.docker.com/v1beta2",
   521                              "kind": "Stack",
   522                              "name": "d4d-with-statefulset",
   523                              "uid": "4a34478c-bbf2-11e8-9cff-00155d0027c4",
   524                              "controller": true,
   525                              "blockOwnerDeletion": true
   526                          }
   527                      ]
   528                  },
   529                  "spec": {
   530                      "ports": [
   531                          {
   532                              "name": "headless",
   533                              "protocol": "TCP",
   534                              "port": 55555,
   535                              "targetPort": 55555
   536                          }
   537                      ],
   538                      "selector": {
   539                          "com.docker.service.id": "d4d-with-statefulset-web",
   540                          "com.docker.service.name": "web",
   541                          "com.docker.stack.namespace": "d4d-with-statefulset"
   542                      },
   543                      "clusterIP": "None",
   544                      "type": "ClusterIP",
   545                      "sessionAffinity": "None"
   546                  },
   547                  "status": {
   548                      "loadBalancer": {}
   549                  }
   550              },
   551              "default/web-published": {
   552                  "metadata": {
   553                      "name": "web-published",
   554                      "namespace": "default",
   555                      "selfLink": "/api/v1/namespaces/default/services/web-published",
   556                      "uid": "4a71b6a0-bbf2-11e8-bf31-00155d0027c4",
   557                      "resourceVersion": "530",
   558                      "creationTimestamp": "2018-09-19T09:56:34Z",
   559                      "labels": {
   560                          "com.docker.service.id": "d4d-with-statefulset-web",
   561                          "com.docker.service.name": "web",
   562                          "com.docker.stack.namespace": "d4d-with-statefulset"
   563                      },
   564                      "ownerReferences": [
   565                          {
   566                              "apiVersion": "compose.docker.com/v1beta2",
   567                              "kind": "Stack",
   568                              "name": "d4d-with-statefulset",
   569                              "uid": "4a34478c-bbf2-11e8-9cff-00155d0027c4",
   570                              "controller": true,
   571                              "blockOwnerDeletion": true
   572                          }
   573                      ]
   574                  },
   575                  "spec": {
   576                      "ports": [
   577                          {
   578                              "name": "80-tcp",
   579                              "protocol": "TCP",
   580                              "port": 80,
   581                              "targetPort": 80,
   582                              "nodePort": 32212
   583                          }
   584                      ],
   585                      "selector": {
   586                          "com.docker.service.id": "d4d-with-statefulset-web",
   587                          "com.docker.service.name": "web",
   588                          "com.docker.stack.namespace": "d4d-with-statefulset"
   589                      },
   590                      "clusterIP": "10.108.77.248",
   591                      "type": "LoadBalancer",
   592                      "sessionAffinity": "None",
   593                      "externalTrafficPolicy": "Cluster"
   594                  },
   595                  "status": {
   596                      "loadBalancer": {
   597                          "ingress": [
   598                              {
   599                                  "hostname": "localhost"
   600                              }
   601                          ]
   602                      }
   603                  }
   604              },
   605              "default/words": {
   606                  "metadata": {
   607                      "name": "words",
   608                      "namespace": "default",
   609                      "selfLink": "/api/v1/namespaces/default/services/words",
   610                      "uid": "4a7cc32d-bbf2-11e8-bf31-00155d0027c4",
   611                      "resourceVersion": "536",
   612                      "creationTimestamp": "2018-09-19T09:56:34Z",
   613                      "labels": {
   614                          "com.docker.service.id": "d4d-with-statefulset-words",
   615                          "com.docker.service.name": "words",
   616                          "com.docker.stack.namespace": "d4d-with-statefulset"
   617                      },
   618                      "ownerReferences": [
   619                          {
   620                              "apiVersion": "compose.docker.com/v1beta2",
   621                              "kind": "Stack",
   622                              "name": "d4d-with-statefulset",
   623                              "uid": "4a34478c-bbf2-11e8-9cff-00155d0027c4",
   624                              "controller": true,
   625                              "blockOwnerDeletion": true
   626                          }
   627                      ]
   628                  },
   629                  "spec": {
   630                      "ports": [
   631                          {
   632                              "name": "headless",
   633                              "protocol": "TCP",
   634                              "port": 55555,
   635                              "targetPort": 55555
   636                          }
   637                      ],
   638                      "selector": {
   639                          "com.docker.service.id": "d4d-with-statefulset-words",
   640                          "com.docker.service.name": "words",
   641                          "com.docker.stack.namespace": "d4d-with-statefulset"
   642                      },
   643                      "clusterIP": "None",
   644                      "type": "ClusterIP",
   645                      "sessionAffinity": "None"
   646                  },
   647                  "status": {
   648                      "loadBalancer": {}
   649                  }
   650              }
   651          }
   652      }
   653  }