k8s.io/kubernetes@v1.29.3/test/images/volume/rbd/ceph.conf.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # Copyright 2015 The Kubernetes Authors.
     4  #
     5  # Licensed under the Apache License, Version 2.0 (the "License");
     6  # you may not use this file except in compliance with the License.
     7  # You may obtain a copy of the License at
     8  #
     9  #     http://www.apache.org/licenses/LICENSE-2.0
    10  #
    11  # Unless required by applicable law or agreed to in writing, software
    12  # distributed under the License is distributed on an "AS IS" BASIS,
    13  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  # See the License for the specific language governing permissions and
    15  # limitations under the License.
    16  
    17  #
    18  # Configures /etc/ceph.conf from a template.
    19  #
    20  
    21  echo "
    22  [global]
    23  auth cluster required = none
    24  auth service required = none
    25  auth client required = none
    26  
    27  [mon.a]
    28  host = cephbox
    29  mon addr = $1
    30  
    31  [osd]
    32  osd journal size = 128
    33  journal dio = false
    34  
    35  # allow running on ext4
    36  osd max object name len = 256
    37  osd max object namespace len = 64
    38  
    39  [osd.0]
    40  osd host = cephbox
    41  " > /etc/ceph/ceph.conf
    42