...

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

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

     1{{ if (eq .NodeRole "controlplane") -}}
     2apiVersion: v1
     3kind: Pod
     4metadata:
     5  name: etcd-manager
     6  namespace: kube-system
     7  labels:
     8    platform.edge.ncr.com/component: etcd-manager
     9spec:
    10  hostNetwork: true
    11  containers:
    12  - args:
    13    - run
    14    - --kubeconfig=/etc/kubernetes/admin.conf
    15    - --containerd-socket=/run/containerd/containerd.sock
    16    - --controlplane-etcd-host=127.0.0.1
    17    - --controlplane-etcd-port=2379
    18    - --etcd-client-request-timeout=3s
    19    - --etcd-client-initial-backoff=2s
    20    - --etcd-client-backoff-factor=1
    21    - --etcd-client-max-retries=1
    22    - --kube-client-request-timeout=3s
    23    - --kube-client-initial-backoff=2s
    24    - --kube-client-backoff-factor=1
    25    - --kube-client-max-retries=1
    26    - --blocking-kube-client-request-timeout=5s
    27    - --blocking-kube-client-initial-backoff=15s
    28    - --blocking-kube-client-backoff-factor=1
    29    - --blocking-kube-client-max-retries=20
    30    - --max-unhealthy-duration=10m
    31    - --log-level=INFO
    32    image: {{ .Image }}
    33    name: etcd-manager
    34    ports:
    35    - name: metrics
    36      protocol: TCP
    37      containerPort: 9085
    38    resources:
    39      limits:
    40        cpu: "50m"
    41        memory: 100Mi
    42      requests:
    43        cpu: 5m
    44        memory: 35Mi
    45    volumeMounts:
    46    - name: kubernetes
    47      mountPath: /etc/kubernetes
    48    - name: run-containerd
    49      mountPath: /run/containerd
    50    - name: run-systemd
    51      mountPath: /run/systemd
    52    - name: run-etcdmanager
    53      mountPath: /run/etcd-manager
    54  volumes:
    55  - name: kubernetes
    56    hostPath:
    57      type: Directory
    58      path: /etc/kubernetes
    59  - name: run-containerd
    60    hostPath:
    61      type: Directory
    62      path: /run/containerd
    63  - name: run-etcdmanager
    64    hostPath:
    65      type: DirectoryOrCreate
    66      path: /run/etcd-manager
    67  - name: run-systemd
    68    hostPath:
    69      type: Directory
    70      path: /run/systemd
    71{{ end -}}

View as plain text