github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/config/manager/manager.yaml (about)

     1  apiVersion: v1
     2  kind: Namespace
     3  metadata:
     4    labels:
     5      control-plane: controller-manager
     6    name: system
     7  ---
     8  apiVersion: apps/v1
     9  kind: Deployment
    10  metadata:
    11    name: controller-manager
    12    namespace: system
    13    labels:
    14      control-plane: controller-manager
    15  spec:
    16    selector:
    17      matchLabels:
    18        control-plane: controller-manager
    19    replicas: 1
    20    template:
    21      metadata:
    22        labels:
    23          control-plane: controller-manager
    24      spec:
    25        securityContext:
    26          runAsNonRoot: true
    27        containers:
    28        - command:
    29          - /manager
    30          args:
    31          - --leader-elect
    32          image: controller:latest
    33          name: manager
    34          securityContext:
    35            allowPrivilegeEscalation: false
    36            readOnlyRootFilesystem: true
    37          livenessProbe:
    38            httpGet:
    39              path: /healthz
    40              port: 8081
    41            initialDelaySeconds: 15
    42            periodSeconds: 20
    43          readinessProbe:
    44            httpGet:
    45              path: /readyz
    46              port: 8081
    47            initialDelaySeconds: 5
    48            periodSeconds: 10
    49          resources:
    50            limits:
    51              cpu: 100m
    52              memory: 30Mi
    53            requests:
    54              cpu: 100m
    55              memory: 20Mi
    56        serviceAccountName: controller-manager
    57        terminationGracePeriodSeconds: 10