Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

second drive for container cache #142

Closed
rmkraus opened this issue Jun 19, 2021 · 1 comment
Closed

second drive for container cache #142

rmkraus opened this issue Jun 19, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@rmkraus
Copy link
Member

rmkraus commented Jun 19, 2021

openshift install create manifests
cat > openshift/98-container-cache.yaml <<EOF
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig    
metadata:            
  labels:         
    machineconfiguration.openshift.io/role: master
  name: 98-container-cache
spec:                             
  config:                                                                             
    ignition:        
      version: 3.1.0                
    storage:                            
      disks:           
      - device: /dev/disk/by-path/pci-0000:00:17.0-ata-7
        wipeTable: True
        partitions:               
        - sizeMiB: 50000
          startMiB: 0                
          label: var-lib-kubelet                                                      
          number: 1  
          wipePartitionEntry: True  
        - sizeMiB: 0                                                                                                                                                         
          startMiB: 0
          label: var-lib-containers
          number: 2
          wipePartitionEntry: True
      filesystems:
        - path: /var/lib/kubelet
          device: /dev/disk/by-partlabel/var-lib-kubelet
          format: xfs
          wipeFilesystem: True
        - path: /var/lib/containers
          device: /dev/disk/by-partlabel/var-lib-containers
          format: xfs
          wipeFilesystem: True
    systemd:
      units:
        - name: var-lib-kubelet.mount
          enabled: true
          contents: |
            [Unit]
            Before=local-fs.target
            [Mount]
            Where=/var/lib/kubelet
            What=/dev/disk/by-partlabel/var-lib-kubelet
            [Install]
            WantedBy=local-fs.target
        - name: var-lib-containers.mount
          enabled: true
          contents: |
            [Unit]
            Before=local-fs.target
            [Mount]
            Where=/var/lib/containers
            What=/dev/disk/by-partlabel/var-lib-containers
            [Install]
            WantedBy=local-fs.target
EOF
openshift create ignition-configs
@rmkraus rmkraus added the enhancement New feature or request label Jun 19, 2021
@rmkraus rmkraus self-assigned this Jul 2, 2021
rmkraus added a commit that referenced this issue Jul 2, 2021
To improve performance, the container working directories should be
moved to a different drive than the etcd and os directories. An option
was added to the configuration to specify a drive to use for this
purpose.

This addresses #142.
rmkraus added a commit that referenced this issue Jul 9, 2021
* Added a container cache disk option.

To improve performance, the container working directories should be
moved to a different drive than the etcd and os directories. An option
was added to the configuration to specify a drive to use for this
purpose.

This addresses #142.

* Changed openshift-installer role to be better ansible.

Changed a shell call to a file call.
@rmkraus
Copy link
Member Author

rmkraus commented Jul 12, 2021

released in 4.7.2

@rmkraus rmkraus closed this as completed Jul 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant