github.com/redhat-appstudio/release-service@v0.0.0-20240507143925-083712697924/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        annotations:
    23          kubectl.kubernetes.io/default-container: manager
    24        labels:
    25          control-plane: controller-manager
    26      spec:
    27        securityContext:
    28          runAsNonRoot: true
    29        containers:
    30        - command:
    31          - /manager
    32          args:
    33          - --leader-elect
    34          image: controller:latest
    35          name: manager
    36          securityContext:
    37            allowPrivilegeEscalation: false
    38            readOnlyRootFilesystem: true
    39          livenessProbe:
    40            httpGet:
    41              path: /healthz
    42              port: 8081
    43            initialDelaySeconds: 15
    44            periodSeconds: 20
    45          readinessProbe:
    46            httpGet:
    47              path: /readyz
    48              port: 8081
    49            initialDelaySeconds: 5
    50            periodSeconds: 10
    51          # TODO(user): Configure the resources accordingly based on the project requirements.
    52          # More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
    53          resources:
    54            limits:
    55              cpu: 500m
    56              memory: 128Mi
    57            requests:
    58              cpu: 10m
    59              memory: 64Mi
    60          env:
    61          - name: DEFAULT_RELEASE_PVC
    62            valueFrom:
    63              configMapKeyRef:
    64                key: DEFAULT_RELEASE_PVC
    65                name: manager-properties
    66                optional: true
    67          - name: DEFAULT_RELEASE_WORKSPACE_NAME
    68            valueFrom:
    69              configMapKeyRef:
    70                key: DEFAULT_RELEASE_WORKSPACE_NAME
    71                name: manager-properties
    72                optional: true
    73          - name: DEFAULT_RELEASE_WORKSPACE_SIZE
    74            valueFrom:
    75              configMapKeyRef:
    76                key: DEFAULT_RELEASE_WORKSPACE_SIZE
    77                name: manager-properties
    78                optional: true
    79          - name: SERVICE_NAMESPACE
    80            valueFrom:
    81              fieldRef:
    82                fieldPath: metadata.namespace
    83        serviceAccountName: controller-manager
    84        terminationGracePeriodSeconds: 10