k8s.io/kubernetes@v1.29.3/test/e2e/testing-manifests/guestbook/legacy/frontend-controller.yaml (about)

     1  apiVersion: v1
     2  kind: ReplicationController
     3  metadata:
     4    name: frontend
     5  spec:
     6    replicas: 3
     7    template:
     8      metadata:
     9        labels:
    10          app: guestbook
    11          tier: frontend
    12      spec:
    13        containers:
    14        - name: php-redis
    15          image: gcr.io/google_samples/gb-frontend:v4
    16          resources:
    17            requests:
    18              cpu: 100m
    19              memory: 100Mi
    20          env:
    21          - name: GET_HOSTS_FROM
    22            value: dns
    23            # If your cluster config does not include a dns service, then to
    24            # instead access environment variables to find service host
    25            # info, comment out the 'value: dns' line above, and uncomment the
    26            # line below:
    27            # value: env
    28          ports:
    29          - containerPort: 80