kind:CephFilesystem metadata: name:myfs namespace:rook-ceph spec: # The metadata pool spec. Must use replication. metadataPool: replicated: size:3 # The list of data pool specs. Can use replication or erasure coding. dataPools: - failureDomain:host replicated: size:3 # The metadata service (mds) configuration metadataServer: # The number of active MDS instances activeCount:1 # Whether each active MDS instance will have an active standby with a warm metadata cache for faster failover. # If false, standbys will be available, but will not have a warm cache. activeStandby:true # The affinity rules to apply to the mds deployment placement: # nodeAffinity: # requiredDuringSchedulingIgnoredDuringExecution: # nodeSelectorTerms: # - matchExpressions: # - key: role # operator: In # values: # - mds-node # tolerations: # - key: mds-node # operator: Exists # podAffinity: # podAntiAffinity: # A key/value list of annotations annotations: # key: value resources: # The requests and limits set here, allow the filesystem MDS Pod(s) to use half of one CPU core and 1 gigabyte of memory # limits: # cpu: "500m" # memory: "1024Mi" # requests: # cpu: "500m" # memory: "1024Mi"
apiVersion:apps/v1 kind:Deployment metadata: name:kube-registry namespace:kube-system labels: k8s-app:kube-registry kubernetes.io/cluster-service:"true" spec: replicas:3 selector: matchLabels: k8s-app:kube-registry template: metadata: labels: k8s-app:kube-registry kubernetes.io/cluster-service:"true" spec: containers: - name:registry image:registry:2 imagePullPolicy:Always resources: limits: cpu:100m memory:100Mi env: # Configuration reference: https://docs.docker.com/registry/configuration/ - name:REGISTRY_HTTP_ADDR value::5000 - name:REGISTRY_HTTP_SECRET value:"Ple4seCh4ngeThisN0tAVerySecretV4lue" - name:REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY value:/var/lib/registry volumeMounts: - name:image-store mountPath:/var/lib/registry ports: - containerPort:5000 name:registry protocol:TCP livenessProbe: httpGet: path:/ port:registry readinessProbe: httpGet: path:/ port:registry volumes: - name:image-store flexVolume: driver:ceph.rook.io/rook fsType:ceph options: fsName:myfs# name of the filesystem specified in the filesystem CRD. clusterNamespace:rook-ceph# namespace where the Rook cluster is deployed # by default the path is /, but you can override and mount a specific path of the filesystem by using the path attribute # the path must exist on the filesystem, otherwise mounting the filesystem at that path will fail #path: /some/path/inside/cephfs