* another
* are
* availability
* available
* bootstrap
* boundaries
* ceph
* certificate
* class
* codifies
* consuming
* corrupted
* createor
* csi
* deployments
* exceeded
* execute
* filesystem
* healthiness
* heuristics
* immediately
* insecure
* installed
* isolated
* maintained
* maximum
* minute
* monitor
* new
* nginx
* nonexistent
* not
* occurs
* omitempty
* operator
* orchestration
* persistentvolumes
* placement
* preexisting
* prometheus
* protecting
* provisioner
* purposes
* reconcile
* regex
* related
* requests
* returns
* rubbish
* running
* schedulable
* schedule
* serviceaccount
* simulating
* snapshots
* statement
* static
* tenants
* the
* unavailable
* volumeattachment
* waiting
* with
* wrapper
* zonegroup
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
(cherry picked from commit 6e7b8767f3)
79 lines
2.7 KiB
YAML
79 lines
2.7 KiB
YAML
#################################################################################################################
|
|
# Create a Ceph pool with settings for replication in production environments. A minimum of 3 OSDs on
|
|
# different hosts are required in this example.
|
|
# kubectl create -f nfs.yaml
|
|
#
|
|
# This example is for Ceph v16 and above only. If you are using Ceph v15, see Rook v1.8 examples
|
|
# from the 'release-1.8' branch
|
|
#################################################################################################################
|
|
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephNFS
|
|
metadata:
|
|
name: my-nfs
|
|
namespace: rook-ceph # namespace:cluster
|
|
spec:
|
|
# Settings for the NFS server
|
|
server:
|
|
# The number of active NFS servers
|
|
# Rook supports creating more than one active NFS server, but cannot guarantee high availability
|
|
active: 1
|
|
|
|
# where to run the NFS server
|
|
placement:
|
|
# nodeAffinity:
|
|
# requiredDuringSchedulingIgnoredDuringExecution:
|
|
# nodeSelectorTerms:
|
|
# - matchExpressions:
|
|
# - key: role
|
|
# operator: In
|
|
# values:
|
|
# - nfs-node
|
|
# topologySpreadConstraints:
|
|
# tolerations:
|
|
# - key: nfs-node
|
|
# operator: Exists
|
|
# podAffinity:
|
|
# podAntiAffinity:
|
|
|
|
# A key/value list of annotations to apply to NFS server pods
|
|
annotations:
|
|
# key: value
|
|
|
|
# A key/value list of labels to apply to NFS server pods
|
|
labels:
|
|
# key: value
|
|
|
|
# Resource requests and limits to apply to NFS server pods
|
|
resources:
|
|
# limits:
|
|
# cpu: "500m"
|
|
# memory: "1024Mi"
|
|
# requests:
|
|
# cpu: "500m"
|
|
# memory: "1024Mi"
|
|
|
|
# Set priority class to set to influence the scheduler's pod preemption
|
|
# priorityClassName:
|
|
|
|
# The logging levels: NIV_NULL | NIV_FATAL | NIV_MAJ | NIV_CRIT | NIV_WARN | NIV_EVENT | NIV_INFO | NIV_DEBUG | NIV_MID_DEBUG |NIV_FULL_DEBUG |NB_LOG_LEVEL
|
|
logLevel: NIV_INFO
|
|
# ---
|
|
# # The built-in Ceph pool ".nfs" is used for storing configuration for all CephNFS clusters. If this
|
|
# # shared pool needs to be configured with alternate settings, create this pool (once) with any of
|
|
# # the pool properties. Create this pool before creating any CephNFSes, or else some properties may
|
|
# # not be applied when the pool is created by default. This pool must be replicated.
|
|
# apiVersion: ceph.rook.io/v1
|
|
# kind: CephBlockPool
|
|
# metadata:
|
|
# name: builtin-nfs
|
|
# namespace: rook-ceph # namespace:cluster
|
|
# spec:
|
|
# # The required pool name ".nfs" cannot be specified as a K8s resource name, thus we override
|
|
# # the pool name created in Ceph with this name property
|
|
# name: .nfs
|
|
# failureDomain: host
|
|
# replicated:
|
|
# size: 3
|
|
# requireSafeReplicaSize: true
|