k8s.io/kubernetes@v1.29.3/pkg/api/testing/replication_controller_example.json (about)

     1  {
     2      "kind": "ReplicationController",
     3      "apiVersion": "v1",
     4      "metadata": {
     5          "name": "elasticsearch-logging-controller",
     6          "namespace": "default",
     7          "uid": "aa76f162-e8e5-11e4-8fde-42010af09327",
     8          "resourceVersion": "98",
     9          "creationTimestamp": "2015-04-22T11:49:43Z",
    10          "labels": {
    11              "kubernetes.io/cluster-service": "true",
    12              "name": "elasticsearch-logging"
    13          }
    14      },
    15      "spec": {
    16          "replicas": 1,
    17          "selector": {
    18              "name": "elasticsearch-logging"
    19          },
    20          "template": {
    21              "metadata": {
    22                  "creationTimestamp": null,
    23                  "labels": {
    24                      "kubernetes.io/cluster-service": "true",
    25                      "name": "elasticsearch-logging"
    26                  }
    27              },
    28              "spec": {
    29                  "volumes": [
    30                      {
    31                          "name": "es-persistent-storage",
    32                          "hostPath": null,
    33                          "emptyDir": {
    34                              "medium": ""
    35                          },
    36                          "gcePersistentDisk": null,
    37                          "awsElasticBlockStore": null,
    38                          "gitRepo": null,
    39                          "secret": null,
    40                          "nfs": null,
    41                          "iscsi": null,
    42                          "glusterfs": null,
    43                          "quobyte": null
    44                      }
    45                  ],
    46                  "containers": [
    47                      {
    48                          "name": "elasticsearch-logging",
    49                          "image": "registry.k8s.io/elasticsearch:1.0",
    50                          "ports": [
    51                              {
    52                                  "name": "db",
    53                                  "containerPort": 9200,
    54                                  "protocol": "TCP"
    55                              },
    56                              {
    57                                  "name": "transport",
    58                                  "containerPort": 9300,
    59                                  "protocol": "TCP"
    60                              }
    61                          ],
    62                          "resources": {},
    63                          "volumeMounts": [
    64                              {
    65                                  "name": "es-persistent-storage",
    66                                  "mountPath": "/data"
    67                              }
    68                          ],
    69                          "terminationMessagePath": "/dev/termination-log",
    70                          "imagePullPolicy": "IfNotPresent",
    71                          "capabilities": {}
    72                      }
    73                  ],
    74                  "restartPolicy": "Always",
    75                  "dnsPolicy": "ClusterFirst"
    76              }
    77          }
    78      },
    79      "status": {
    80          "replicas": 1
    81      }
    82  }