k8s.io/kubernetes@v1.29.3/test/e2e/testing-manifests/ingress/nginx/rc.yaml (about)

     1  # nginx ingress controller RC
     2  apiVersion: v1
     3  kind: ReplicationController
     4  metadata:
     5    name: nginx-ingress-controller
     6    labels:
     7      k8s-app: nginx-ingress-lb
     8  spec:
     9    replicas: 1
    10    selector:
    11      k8s-app: nginx-ingress-lb
    12    template:
    13      metadata:
    14        labels:
    15          k8s-app: nginx-ingress-lb
    16          name: nginx-ingress-lb
    17      spec:
    18        terminationGracePeriodSeconds: 0
    19        containers:
    20        - image: registry.k8s.io/ingress-nginx/controller:v0.46.0
    21          args:
    22          - /nginx-ingress-controller
    23          - --election-id=ingress-controller-leader
    24          - --ingress-class=nginx
    25          securityContext:
    26            capabilities:
    27                drop:
    28                - ALL
    29                add:
    30                - NET_BIND_SERVICE
    31            runAsUser: 101
    32            allowPrivilegeEscalation: true
    33          livenessProbe:
    34            httpGet:
    35              path: /healthz
    36              port: 10254
    37              scheme: HTTP
    38            initialDelaySeconds: 30
    39            timeoutSeconds: 5
    40          name: nginx-ingress-lb
    41          # use downward API
    42          env:
    43            - name: POD_NAME
    44              valueFrom:
    45                fieldRef:
    46                  fieldPath: metadata.name
    47            - name: POD_NAMESPACE
    48              valueFrom:
    49                fieldRef:
    50                  fieldPath: metadata.namespace
    51          ports:
    52          - containerPort: 80
    53            hostPort: 80
    54          - containerPort: 443
    55            hostPort: 443