...

Text file src/edge-infra.dev/pkg/sds/ien/k8s/controllers/nodeagent/plugins/staticpodscheduler/templates/manifests/control-plane-guardian.yaml

Documentation: edge-infra.dev/pkg/sds/ien/k8s/controllers/nodeagent/plugins/staticpodscheduler/templates/manifests

     1apiVersion: v1
     2kind: Pod
     3metadata:
     4  name: control-plane-guardian
     5  namespace: kube-system
     6spec:
     7  restartPolicy: Always
     8  hostNetwork: true
     9  initContainers:
    10  - name: control-plane-promoter-installer
    11    image: {{ .ControlPlanePromoterImage }}
    12    args:
    13    - run
    14    volumeMounts:
    15    - name: zynstraconfig
    16      mountPath: /zynstra/config
    17    env:
    18    - name: PROMOTER_DEST_DIRECTORY
    19      value: /zynstra/config/scripts
    20    - name: PROMOTER_DEST_FILE
    21      value: promote-to-control-plane
    22    - name: DEMOTER_DEST_FILE
    23      value: demote-to-worker
    24  containers:
    25  - name: control-plane-guardian
    26    image: {{ .Image }}
    27    args:
    28    - run
    29    - --mac-address={{ .MacAddress }}
    30    ports:
    31    - name: api
    32      protocol: TCP
    33      containerPort: 54321
    34    resources:
    35      limits:
    36        cpu: "20m"
    37        memory: 50Mi
    38    volumeMounts:
    39    - name: kubernetes
    40      mountPath: /etc/kubernetes
    41  volumes:
    42  - name: kubernetes
    43    hostPath:
    44      type: Directory
    45      path: /etc/kubernetes
    46  - name: zynstraconfig
    47    hostPath:
    48      type: Directory
    49      path: /zynstra/config

View as plain text