Step: ipi-conf-etcd-on-ramfs

This step creates a machine config for the master nodes to use ramfs for etcd

Container image used for this step: origin/centos:8

origin/centos:8 resolves to an image imported from the specified imagestream tag on the build farm (documentation).

Environment

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
IGNITIONVERSION Parameter[?] ignition version to use for mco. (default: 3.1.0)

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

set -o nounset
set -o errexit
set -o pipefail

cat >> "${SHARED_DIR}/manifest_etcd-on-ramfs-mc.yml" << EOF
kind: MachineConfig
apiVersion: machineconfiguration.openshift.io/v1
metadata:
  name: etcd-on-ramfs
  labels:
    machineconfiguration.openshift.io/role: master
spec:
  config:
    ignition:
      version: "${IGNITIONVERSION}"
    systemd:
      units:
        - contents: |
            [Unit]
            Description=Mount etcd as a ramdisk
            After=ostree-remount.service var.mount
            Before=local-fs.target
            [Mount]
            What=none
            Where=/var/lib/etcd
            Type=tmpfs
            Options=size=2G
            [Install]
            WantedBy=local-fs.target
          name: var-lib-etcd.mount
          enabled: true
EOF

Properties

Property Value Description
Resource requests (cpu) 10m Used in .resources.requests of the pod running this step.
Resource requests (memory) 10Mi Used in .resources.requests of the pod running this step.
Resource limits (memory) 200Mi Used in .resources.limits of the pod running this step.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/ipi/conf/etcd/on-ramfs/ipi-conf-etcd-on-ramfs-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub