github.com/openebs/node-disk-manager@v1.9.1-0.20230225014141-4531f06ffa1e/deploy/yamls/node-disk-operator.yaml (about)

     1  # Create NDM operator deployment
     2  apiVersion: apps/v1
     3  kind: Deployment
     4  metadata:
     5    name: node-disk-operator
     6    namespace: openebs
     7  spec:
     8    replicas: 1
     9    strategy:
    10      type: Recreate
    11    selector:
    12      matchLabels:
    13        name: node-disk-operator
    14    template:
    15      metadata:
    16        labels:
    17          name: node-disk-operator
    18      spec:
    19        serviceAccountName: openebs-maya-operator
    20        containers:
    21        - name: node-disk-operator
    22          image: openebs/node-disk-operator:ci
    23          ports:
    24          - containerPort: 8080
    25            name: liveness
    26          imagePullPolicy: IfNotPresent
    27          env:
    28          - name: WATCH_NAMESPACE
    29            valueFrom:
    30              fieldRef:
    31                fieldPath: metadata.namespace
    32          - name: POD_NAME
    33            valueFrom:
    34              fieldRef:
    35                fieldPath: metadata.name
    36          # the service account of this pod
    37          - name: SERVICE_ACCOUNT
    38            valueFrom:
    39              fieldRef:
    40                fieldPath: spec.serviceAccountName
    41          - name: OPERATOR_NAME
    42            value: "node-disk-operator"
    43          - name: CLEANUP_JOB_IMAGE
    44            value: "openebs/linux-utils:ci"
    45          # OPENEBS_IO_IMAGE_PULL_SECRETS environment variable is used to pass the image pull secrets
    46          # to the cleanup pod launched by NDM operator
    47          #- name: OPENEBS_IO_IMAGE_PULL_SECRETS
    48          #  value: ""
    49          livenessProbe:
    50            httpGet:
    51              path: /healthz
    52              port: 8585
    53            initialDelaySeconds: 15
    54            periodSeconds: 20
    55          readinessProbe:
    56            httpGet:
    57              path: /readyz
    58              port: 8585
    59            initialDelaySeconds: 5
    60            periodSeconds: 10
    61  ---