Ritchie, Frank (fr801x) a16ecc04a5 Minor rook-ceph cleanup
This PS just includes minor changes for consistency and readability.

For consistency, patchesJSON6902 are always specified in
kustomization.yaml as patchesJSON6902 even if they could be specified as
patches. patchesStrategicMerge are always specified as patches.

Change-Id: I96b07838730207984be815e5f8fa8f79f59cebe1
2021-06-18 15:49:02 +00:00

53 lines
1.3 KiB
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: rook-ceph
# Rook CephCluster Custom Resource along with recommended additions.
resources:
- ceph-conf.yaml
- upstream/cluster.yaml
- upstream/toolbox.yaml
# Functions for select Rook Ceph Resources. These resources are
# independent and can be commented out on an individual basis.
- ../../function/rook-cluster/pools
- ../../function/rook-cluster/cephfs
- ../../function/rook-cluster/dashboard/http
- ../../function/rook-cluster/storageclasses
# Resource customizations
patchesJSON6902:
- target:
kind: CephCluster
name: rook-ceph
patch: |-
- op: replace
path: /metadata/name
value: ceph
- op: replace
path: /spec/dashboard/enabled
value: true
- op: replace
path: /spec/dashboard/ssl
value: true
# If you enable ssl for the dashboard, don't forget
# to enable the patch below
- target:
kind: Service
name: rook-ceph-mgr-dashboard
patch: |-
- op: replace
path: /spec/ports
value:
- name: dashboard
port: 8443
protocol: TCP
targetPort: 8443
patches:
- |-
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: rook-ceph
namespace: rook-ceph
spec:
network:
provider: host