k8s.io/kubernetes@v1.29.3/test/e2e/testing-manifests/serviceloadbalancer/haproxyrc.yaml (about)

     1  kind: ReplicationController
     2  apiVersion: v1
     3  metadata:
     4    name: service-loadbalancer
     5    labels:
     6      app: service-loadbalancer
     7      version: v1
     8  spec:
     9    replicas: 1
    10    selector:
    11      app: service-loadbalancer
    12      version: v1
    13    template:
    14      metadata:
    15        labels:
    16          app: service-loadbalancer
    17          version: v1
    18      spec:
    19        containers:
    20        - image: registry.k8s.io/servicelb:0.1
    21          imagePullPolicy: Always
    22          livenessProbe:
    23            httpGet:
    24              path: /healthz
    25              port: 8081
    26              scheme: HTTP
    27            initialDelaySeconds: 30
    28            timeoutSeconds: 5
    29          name: haproxy
    30          ports:
    31          # All http services
    32          - containerPort: 80
    33            hostPort: 80
    34            protocol: TCP
    35          # nginx https
    36          - containerPort: 443
    37            hostPort: 8080
    38            protocol: TCP
    39          # mysql
    40          - containerPort: 3306
    41            hostPort: 3306
    42            protocol: TCP
    43          # haproxy stats
    44          - containerPort: 1936
    45            hostPort: 1936
    46            protocol: TCP
    47          resources: {}
    48          args:
    49          - --tcp-services=mysql:3306,nginxsvc:443