...

Text file src/edge-infra.dev/config/pallets/sds/kpower/base/daemonset.yaml

Documentation: edge-infra.dev/config/pallets/sds/kpower/base

     1apiVersion: apps/v1
     2kind: DaemonSet
     3metadata:
     4  name: kpower
     5  namespace: kpower
     6  labels:
     7    platform.edge.ncr.com/component: kpower
     8spec:
     9  selector:
    10    matchLabels:
    11      platform.edge.ncr.com/component: kpower
    12  template:
    13    metadata:
    14      labels:
    15        platform.edge.ncr.com/component: kpower
    16    spec:
    17      restartPolicy: Always
    18      serviceAccountName: kpower
    19      priorityClassName: edge-p2-critical-services
    20      nodeSelector:
    21        kubernetes.io/os: linux
    22      containers:
    23      - name: kpower
    24        image: bzl://cmd/sds/kpower:container_push
    25        env:
    26        - name: NODE_NAME
    27          valueFrom:
    28            fieldRef:
    29              fieldPath: spec.nodeName
    30        - name: NAMESPACE_NAME
    31          valueFrom:
    32            fieldRef:
    33              fieldPath: metadata.namespace
    34        - name: MAX_PARALLEL_REBOOTS
    35          value: "1"
    36        resources:
    37          limits:
    38            cpu: "40m"
    39            memory: 40Mi
    40          requests:
    41            cpu: "20m"
    42            memory: 20Mi
    43        volumeMounts:
    44        - name: var-run
    45          mountPath: /mnt/reboot-flag
    46        - name: dbus
    47          mountPath: /run/systemd/private
    48        - name: zynstra-config
    49          mountPath: /mnt/zynstra-config
    50        imagePullPolicy: IfNotPresent
    51        securityContext:
    52          allowPrivilegeEscalation: false
    53          privileged: false
    54      volumes:
    55      - name: config-volume
    56        configMap:
    57          name: reboot-config
    58          defaultMode: 493 #755
    59      - name: dbus
    60        hostPath:
    61          type: Socket
    62          path: /run/systemd/private
    63      - name: script-volume
    64        hostPath:
    65          type: DirectoryOrCreate
    66          path: /usr/local/kured
    67      - name: var-run
    68        hostPath:
    69          type: DirectoryOrCreate
    70          path: /var/run
    71      - name: zynstra-config
    72        hostPath:
    73          type: DirectoryOrCreate
    74          path: /zynstra/config
    75      imagePullSecrets:
    76      - name: edge-docker-pull-secret
    77      tolerations:
    78      - effect: NoSchedule
    79        key: node-role.kubernetes.io/control-plane
    80      - effect: NoSchedule
    81        key: node-role.kubernetes.io/master
    82  updateStrategy:
    83    type: RollingUpdate
    84    rollingUpdate:
    85      maxUnavailable: 1
    86  revisionHistoryLimit: 10

View as plain text